Recently we've been running migration and we see a lot of errors with
elasticsearch, after sometime it just doesn't accept any more connections.
All I see in the logs is:
Caused by: java.io.FileNotFoundException:
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/4/index/_6t86.fdx
(Too many open files)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:233)
at
org.apache.lucene.store.FSDirectory$FSIndexInput.(FSDirectory.java:409)
at
org.apache.lucene.store.NIOFSDirectory$NIOFSIndexInput.(NIOFSDirectory.java:123)
at
org.apache.lucene.store.NIOFSDirectory.openInput(NIOFSDirectory.java:80)
at
org.apache.lucene.store.RateLimitedFSDirectory.openInput(RateLimitedFSDirectory.java:99)
at
org.elasticsearch.index.store.Store$StoreDirectory.openInput(Store.java:436)
at
org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader.(CompressingStoredFieldsReader.java:98)
at
org.apache.lucene.codecs.compressing.CompressingStoredFieldsFormat.fieldsReader(CompressingStoredFieldsFormat.java:113)
at
org.apache.lucene.index.SegmentCoreReaders.(SegmentCoreReaders.java:147)
at
org.apache.lucene.index.SegmentReader.(SegmentReader.java:56)
at
org.apache.lucene.index.ReadersAndLiveDocs.getReader(ReadersAndLiveDocs.java:121)
at
org.apache.lucene.index.ReadersAndLiveDocs.getReadOnlyClone(ReadersAndLiveDocs.java:218)
at
org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:96)
at
org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:369)
at
org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:111)
at
org.apache.lucene.search.SearcherManager.(SearcherManager.java:89)
at
org.elasticsearch.index.engine.robin.RobinEngine.buildSearchManager(RobinEngine.java:1412)
at
org.elasticsearch.index.engine.robin.RobinEngine.start(RobinEngine.java:271)
... 7 more
[2013-09-05 05:52:11,722][WARN ][cluster.action.shard ] [Slave] sending
failed shard for [verbose][4], node[mFU1CeLwSr6sa4Jb0sqZpQ], [R],
s[INITIALIZING], reason [Failed to start shard, message
[RecoveryFailedException[[verbose][4]: Recovery failed from
[Master][4Zno5nzmQFqdh_o5TbGf5A][inet[/10.223.12.31:9300]]{master=true}
into
[Slave][mFU1CeLwSr6sa4Jb0sqZpQ][inet[/10.223.12.32:9300]]{master=false}];
nested:
RemoteTransportException[[Master][inet[/10.223.12.31:9300]][index/shard/recovery/startRecovery]];
nested: RecoveryEngineException[[verbose][4] Phase[2] Execution failed];
nested:
RemoteTransportException[[Slave][inet[/10.223.12.32:9300]][index/shard/recovery/prepareTranslog]];
nested: EngineCreationFailureException[[verbose][4] failed to open reader
on writer]; nested:
FileNotFoundException[/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/4/index/_6t86.fdx
(Too many open files)]; ]]
FileNotFoundException[/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/4/index/_6t86.fdx
(Too many open files)]; ]]
The ulimit in production machines are 65535 and when I try to do lsof -a -p
, I see something like this:
6291457
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/3/translog/translog-1369668960033
java 21548 kailashnath 848r REG 8,17 1941 10010832
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/3/index/_536h_es090_0.pos
java 21548 kailashnath 849r REG 8,17 15174 9971253
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdk.nvd
java 21548 kailashnath 850r REG 8,17 114071 9971246
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdk_es090_0.doc
java 21548 kailashnath 851r REG 8,17 2090 10010846
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/3/index/_536h_es090_0.pay
java 21548 kailashnath 852r REG 8,17 606 10010847
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/3/index/_536h_es090_0.tim
java 21548 kailashnath 853r REG 8,17 855 10010690
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/3/index/_536h.fdt
java 21548 kailashnath 854r REG 8,17 899 9970974
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mda.fdx
java 21548 kailashnath 855r REG 8,17 47 10010689
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/3/index/_536h.fdx
java 21548 kailashnath 856r REG 8,17 162098 10010696
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578p_es090_0.pos
java 21548 kailashnath 857r REG 8,17 34 10010702
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578p_es090_0.pay
java 21548 kailashnath 858r REG 8,17 391138 10010703
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578p_es090_0.tim
java 21548 kailashnath 859r REG 8,17 389565 10010694
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578p.fdt
java 21548 kailashnath 860r REG 8,17 158 10010693
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578p.fdx
java 21548 kailashnath 861r REG 8,17 400 10010915
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578q.nvd
java 21548 kailashnath 862r REG 8,17 1183 10010905
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578q_es090_0.doc
java 21548 kailashnath 863r REG 8,17 2578 10010906
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578q_es090_0.pos
java 21548 kailashnath 864r REG 8,17 34 10010907
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578q_es090_0.pay
java 21548 kailashnath 865r REG 8,17 517 10010912
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578q_es090_0.tim
java 21548 kailashnath 866r REG 8,17 590 10010692
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578q.fdt
java 21548 kailashnath 867r REG 8,17 45 10010691
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/users/1/index/_578q.fdx
java 21548 kailashnath 869r REG 8,17 412 9971197
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/1/index/_9w36.nvd
java 21548 kailashnath 870r REG 8,17 4116 9971130
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/1/index/_9w36_es090_0.doc
java 21548 kailashnath 871r REG 8,17 4306 9971133
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/1/index/_9w36_es090_0.pos
java 21548 kailashnath 872r REG 8,17 34 9971191
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/1/index/_9w36_es090_0.pay
java 21548 kailashnath 873r REG 8,17 13628 9971192
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/1/index/_9w36_es090_0.tim
java 21548 kailashnath 874r REG 8,17 19938 9971127
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/1/index/_9w36.fdt
java 21548 kailashnath 875r REG 8,17 55 9971117
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/1/index/_9w36.fdx
java 21548 kailashnath 876r REG 8,17 136468 9971247
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdk_es090_0.pos
java 21548 kailashnath 877r REG 8,17 34 9971248
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdk_es090_0.pay
java 21548 kailashnath 878r REG 8,17 235767 9971249
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdk_es090_0.tim
java 21548 kailashnath 879r REG 8,17 670494 9971245
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdk.fdt
java 21548 kailashnath 880r REG 8,17 736 9971244
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdk.fdx
java 21548 kailashnath 881r REG 8,17 424 9971270
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdl.nvd
java 21548 kailashnath 882r REG 8,17 4285 9971242
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdl_es090_0.doc
java 21548 kailashnath 883r REG 8,17 4441 9971243
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdl_es090_0.pos
java 21548 kailashnath 884r REG 8,17 34 9971264
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdl_es090_0.pay
java 21548 kailashnath 885r REG 8,17 14708 9971266
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdl_es090_0.tim
java 21548 kailashnath 886r REG 8,17 21322 9971060
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdl.fdt
java 21548 kailashnath 887r REG 8,17 54 9971059
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/2/index/_4mdl.fdx
java 21548 kailashnath 889r REG 8,17 16262 9970705
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/3/index/_9wdr.nvd
java 21548 kailashnath 890r REG 8,17 155969 9970687
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/3/index/_9wdr_es090_0.doc
java 21548 kailashnath 910r REG 8,17 159939 9970689
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/3/index/_9wdr_es090_0.pos
java 21548 kailashnath 911r REG 8,17 34 9970690
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/3/index/_9wdr_es090_0.pay
java 21548 kailashnath 912r REG 8,17 341259 9970693
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/3/index/_9wdr_es090_0.tim
java 21548 kailashnath 913r REG 8,17 821871 9970644
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/3/index/_9wdr.fdt
java 21548 kailashnath 914r REG 8,17 804 9970641
/opt/isystem/dbs/elasticsearch/Projectplace/nodes/0/indices/verbose/3/index/_9wdr.fdx
Not sure what is the issue
/K
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.