Thanks Erick, I got your point. As per you, Solr will not go down due to “performance warning” and no need to change the maxdoc value. You talked about number of searchers but in solrconfig.xml there is only 2.[<maxWarmingSearchers>2</maxWarmingSearchers>]
In production, we have 27 collection, 2 shards and 2 replicas and 3 zoo keepers and more than 30000 documents indexed within a 10 minutes. How can I know how many searchers are open at the specific time? As per my understanding, solr searcher will open when soft or hard commit. Am I right? And my commit time below <autoCommit> <maxTime>600000</maxTime> <maxDocs>20000</maxDocs> <openSearcher>false</openSearcher> </autoCommit> <autoSoftCommit> <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime> </autoSoftCommit> I do not write any code for opening the solr index searcher and can not find any error related that. My all collection has same configuration mean same hard and soft commit time for all 27 collection. is it any issue if on same time two or more collections will come for hard commit? Below, again send more and accurate log details. Shard-1 Log :: -------------- 2019-04-08 12:54:01.395 INFO (commitScheduler-102-thread-1) [c:collection1 s:shard1 r:core_node1 x:collection1] o.a.s.u.DirectUpdateHandler2 start commit{,optimize=false,openSearcher=false,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false} 2019-04-08 12:54:01.395 INFO (commitScheduler-118-thread-1) [c:collection2 s:shard1 r:core_node1 x:collection2] o.a.s.u.DirectUpdateHandler2 start commit{,optimize=false,openSearcher=false,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false} 2019-04-08 12:54:01.395 INFO (commitScheduler-110-thread-1) [c:collection3 s:shard1 r:core_node1 x:collection3] o.a.s.u.DirectUpdateHandler2 start commit{,optimize=false,openSearcher=false,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false} 2019-04-08 12:54:01.394 INFO (commitScheduler-109-thread-1) [c:collection4 s:shard1 r:core_node1 x:collection4] o.a.s.u.DirectUpdateHandler2 start commit{,optimize=false,openSearcher=false,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false} 2019-04-08 12:54:01.394 INFO (commitScheduler-99-thread-1) [c:collection5 s:shard1 r:core_node1 x:collection5] o.a.s.u.DirectUpdateHandler2 start commit{,optimize=false,openSearcher=false,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false} 2019-04-08 12:54:01.405 ERROR (updateExecutor-2-thread-36358-processing-http:////10.101.111.80:8983//solr//product x:product r:core_node1 n:10.102.119.85:8983_solr s:shard1 c:product) [c:product s:shard1 r:core_node1 x:product] o.a.s.u.StreamingSolrClients error org.apache.solr.common.SolrException: Service Unavailable request: http://10.101.111.80:8983/solr/product/update?update.distrib=FROMLEADER&distrib.from=http%3A%2F%2F10.102.119.85%3A8983%2Fsolr%2Fproduct%2F&wt=javabin&version=2 at org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.sendUpdateStream(ConcurrentUpdateSolrClient.java:320) at org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.run(ConcurrentUpdateSolrClient.java:185) at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$22(ExecutorUtil.java:229) at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$$Lambda$3/30175207.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Shard-1-replica-1 Log :: -------------- 2019-04-08 12:54:01.294 ERROR (qtp1239731077-1022464) [c:product s:shard1 r:core_node3 x:product] o.a.s.u.p.DistributedUpdateProcessor Request says it is coming from leader, but we are the leader: update.distrib=FROMLEADER&distrib.from=http://10.102.119.85:8983/solr/product/&wt=javabin&version=2 2019-04-08 12:54:01.294 INFO (qtp1239731077-1022464) [c:product s:shard1 r:core_node3 x:product] o.a.s.u.p.LogUpdateProcessorFactory [product] webapp=/solr path=/update params={update.distrib=FROMLEADER&distrib.from=http://10.102.119.85:8983/solr/product/&wt=javabin&version=2}{} 0 0 2019-04-08 12:54:01.295 ERROR (qtp1239731077-1022464) [c:product s:shard1 r:core_node3 x:product] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: Request says it is coming from leader, but we are the leader at org.apache.solr.update.processor.DistributedUpdateProcessor.doDefensiveChecks(DistributedUpdateProcessor.java:621) at org.apache.solr.update.processor.DistributedUpdateProcessor.setupRequest(DistributedUpdateProcessor.java:392) at org.apache.solr.update.processor.DistributedUpdateProcessor.setupRequest(DistributedUpdateProcessor.java:320) at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:679) at org.apache.solr.update.processor.LogUpdateProcessorFactory$LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:103) at org.apache.solr.handler.loader.JavabinLoader$1.update(JavabinLoader.java:97) at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$1.readOuterMostDocIterator(JavaBinUpdateRequestCodec.java:179) at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$1.readIterator(JavaBinUpdateRequestCodec.java:135) at org.apache.solr.common.util.JavaBinCodec.readVal(JavaBinCodec.java:274) at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec$1.readNamedList(JavaBinUpdateRequestCodec.java:121) at org.apache.solr.common.util.JavaBinCodec.readVal(JavaBinCodec.java:239) at org.apache.solr.common.util.JavaBinCodec.unmarshal(JavaBinCodec.java:157) at org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec.unmarshal(JavaBinUpdateRequestCodec.java:186) at org.apache.solr.handler.loader.JavabinLoader.parseAndLoadDocs(JavabinLoader.java:107) at org.apache.solr.handler.loader.JavabinLoader.load(JavabinLoader.java:54) at org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:97) at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:69) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:156) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2036) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:657) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:464) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:257) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) at org.eclipse.jetty.server.Server.handle(Server.java:518) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572) at java.lang.Thread.run(Thread.java:745) After this one by one all collection got down and We can not identify that why this ERROR came and what is meaning of that error. In Production my version zookeeper : 3.4.6 java : 8 solrj : 5.2.0 Please guide me... ________________________________ From: Erick Erickson <erickerick...@gmail.com> Sent: Wednesday, April 10, 2019 8:35 PM To: solr-user@lucene.apache.org Subject: Re: Shard and replica went down in Solr 6.1.0 Solr will not go down due to “performance warning”. All that means is that you’re opening too many searchers in a short time. If you’re somehow opening a huge number of searchers, then maybe but IIRC you can’t really open more than two. And don’t think you can “fix” this by upping maxWarmingSearchers, that’ll only make the problem worse as every new searcher chews up memory that’s kept until the old searcher is done with outstanding requests. Which is weird because with those settings you shouldn’t be opening _any_ new searchers. So my guess is that some external client is doing that and this is usually an anti-pattern. Don’t do it, please. Just set your soft commit to what you need and leave it at that. As long as possible. Here are all the gory details: https://lucidworks.com/2013/08/23/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/ I’d also not bother with maxDocs, that’s much less predictable than just setting a reasonable time for autocommit, a minute or two is usually reasonable especially when openSearcher is false. Not sure what’s really generating that error, take a look at all your other Solr logs to see if there’s a cause. Best, Erick > On Apr 10, 2019, at 5:21 AM, vishal patel <vishalpatel200...@outlook.com> > wrote: > > I have 2 shards and 2 replicas of Solr 6.1.0. one shard and one replica went > down and I got below ERROR > > 2019-04-08 12:54:01.469 INFO (commitScheduler-131-thread-1) [c:products > s:shard1 r:core_node1 x:product1] o.a.s.s.SolrIndexSearcher Opening > [Searcher@24b9127f[product1] main] > 2019-04-08 12:54:01.468 INFO (commitScheduler-110-thread-1) [c:product2 > s:shard1 r:core_node1 x:product2] o.a.s.c.SolrDeletionPolicy > SolrDeletionPolicy.onCommit: commits: num=2 > commit{dir=G:\SolrCloud\solr1\server\solr\product2\data\index.20180412060518798,segFN=segments_he5,generation=22541} > commit{dir=G:\SolrCloud\solr1\server\solr\product2\data\index.20180412060518798,segFN=segments_he6,generation=22542} > 2019-04-08 12:54:01.556 INFO (commitScheduler-110-thread-1) [c:product2 > s:shard1 r:core_node1 x:product2] o.a.s.c.SolrDeletionPolicy newest commit > generation = 22542 > 2019-04-08 12:54:01.465 WARN (commitScheduler-136-thread-1) [c:product3 > s:shard1 r:core_node1 x:product3] o.a.s.c.SolrCore [product3] PERFORMANCE > WARNING: Overlapping onDeckSearchers=2 > > 2019-04-08 12:54:01.534 ERROR > (updateExecutor-2-thread-36358-processing-http:////10.101.111.80:8983//solr//product3 > x:product3 r:core_node1 n:10.102.119.85:8983_solr s:shard1 c:product3) > [c:product3 s:shard1 r:core_node1 x:product3] o.a.s.u.StreamingSolrClients > error > org.apache.solr.common.SolrException: Service Unavailable > > request: > http://10.101.111.80:8983/solr/product3/update?update.distrib=FROMLEADER&distrib.from=http%3A%2F%2F10.102.119.85%3A8983%2Fsolr%2Fproduct3%2F&wt=javabin&version=2 > at > org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.sendUpdateStream(ConcurrentUpdateSolrClient.java:320) > at > org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.run(ConcurrentUpdateSolrClient.java:185) > at > org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$22(ExecutorUtil.java:229) > at > org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$$Lambda$3/30175207.run(Unknown > Source) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > > Note : product1,product2 and product3 are my collection. > > In my solrconfig.xml > <autoCommit> > <maxTime>600000</maxTime> > <maxDocs>20000</maxDocs> > <openSearcher>false</openSearcher> > </autoCommit> > > <autoSoftCommit> > <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime> > </autoSoftCommit> > <maxWarmingSearchers>2</maxWarmingSearchers> > > There are many documents committed at that time and I found out so many > commitScheduler threads in Log. > Solr went down due to warn PERFORMANCE WARNING: Overlapping onDeckSearchers=2 > is it possible? > Need to update my autoCommit or maxWarmingSearchers? > > Sent from Outlook<http://aka.ms/weboutlook>