Re: Disable leaders in SolrCloud mode
On 5/16/2016 6:29 PM, Li Ding wrote: > This happened when the second time I'm performing restart. But after that, > every time this collection is stuck at here. If I restart the leader node > as well, the core can get out of the recovering state > > On Mon, May 16, 2016 at 5:00 PM, Li Dingwrote: >> This is for restart solr with 1000 collections. I created an environment >> with 1023 collections today All collections are empty. During repeated >> restart test, one of the cores are marked as "recovering" and stuck there >> for ever. The solr is 4.6.1 and we have 3 zk hosts and 8 solr hosts, here >> is the relevant logs: SolrCloud does not handle that many collections very well, especially with a lot of them per server. After I did some experimentation with a lot more collections than you have, I opened this issue: https://issues.apache.org/jira/browse/SOLR-7191 The stability and scalability gets a little bit better with each new release, but when you push it too far, it does not work well. How many Solr instances are in your cloud? If you want good performance and stability with a thousand collections, you'll probably need a lot of servers, so each server is only handling a relatively small number of cores. I do not have any precise information about how many cores (shard replicas) is too many for one server. You should make that number as small as you can. Upgrading Solr *might* help with this situation, but really I think you'll need to either run fewer collections or run more instances. You might be able to run multiple Solr instances per server, but if you do that, be sure that you don't give all your memory to java. Enough memory must be available to the operating system for caching the important parts of your index. Thanks, Shawn
Re: Disable leaders in SolrCloud mode
This happened when the second time I'm performing restart. But after that, every time this collection is stuck at here. If I restart the leader node as well, the core can get out of the recovering state On Mon, May 16, 2016 at 5:00 PM, Li Dingwrote: > Hi Anshum, > > This is for restart solr with 1000 collections. I created an environment > with 1023 collections today All collections are empty. During repeated > restart test, one of the cores are marked as "recovering" and stuck there > for ever. The solr is 4.6.1 and we have 3 zk hosts and 8 solr hosts, here > is the relevant logs: > > ---This is the logs for the core stuck at "recovering" > > INFO - 2016-05-16 22:47:04.984; org.apache.solr.cloud.ZkController; > publishing core=test_collection_112_shard1_replica2 state=down > > INFO - 2016-05-16 22:47:05.999; org.apache.solr.core.SolrCore; > [test_collection_112_shard1_replica2] CLOSING SolrCore > org.apache.solr.core.SolrCore@1e48619 > > INFO - 2016-05-16 22:47:06.001; org.apache.solr.core.SolrCore; > [test_collection_112_shard1_replica2] Closing main searcher on request. > > INFO - 2016-05-16 22:47:06.001; > org.apache.solr.core.CachingDirectoryFactory; looking to close /mnt > /solrcloud_latest/solr/test_collection_112_shard1_replica2/data/index >
Re: Disable leaders in SolrCloud mode
Hi Anshum, This is for restart solr with 1000 collections. I created an environment with 1023 collections today All collections are empty. During repeated restart test, one of the cores are marked as "recovering" and stuck there for ever. The solr is 4.6.1 and we have 3 zk hosts and 8 solr hosts, here is the relevant logs: ---This is the logs for the core stuck at "recovering" INFO - 2016-05-16 22:47:04.984; org.apache.solr.cloud.ZkController; publishing core=test_collection_112_shard1_replica2 state=down INFO - 2016-05-16 22:47:05.999; org.apache.solr.core.SolrCore; [test_collection_112_shard1_replica2] CLOSING SolrCore org.apache.solr.core.SolrCore@1e48619 INFO - 2016-05-16 22:47:06.001; org.apache.solr.core.SolrCore; [test_collection_112_shard1_replica2] Closing main searcher on request. INFO - 2016-05-16 22:47:06.001; org.apache.solr.core.CachingDirectoryFactory; looking to close /mnt /solrcloud_latest/solr/test_collection_112_shard1_replica2/data/index
Re: Disable leaders in SolrCloud mode
I think you are approaching the problem all wrong. This seems, what is described as an x-y problem (https://people.apache.org/~hossman/#xyproblem). Can you tell us more about : * What's your setup like? SolrCloud - Version, number of shards, is there any custom code, etc. * Did you start seeing this more recently? If so, what did you change? To already answer your question, there is no way in SolrCloud to disable or remove the concept of 'leaders'. However, there would be other ways to fix your setup, and get rid of the issues you are facing once you share more details. On Mon, May 16, 2016 at 12:33 PM, Li Dingwrote: > Hi all, > > We have an unique scenario where we don't need leaders in every collection > to recover from failures. The indexing never changes. But we have faced > problems where either zk marked a core as down while the core is fine in > non-distributed query or during restart, the core never comes up. My > question is that is there any simple way to disable those leaders and > leaders election in SolrCloud, We do use multi-shard and distributed > queries. But with our unique situation, we don't need leaders to maintain > the correct status of the index. So if we can get rid of that part, our > solr restart will be more robust. > > Any suggestions will be appreciated. > > Thanks, > > Li > -- Anshum Gupta