Reputation: 33
I have two Solr server. The databases every day large amounts of data changes will happen. How I know and automate the problem that, until solr0 adding/commiting/warmuping, while just solr1 serve, and if it is completed, then solr1 adding/commiting/warmuping, and serves the solr0.
Upvotes: 1
Views: 228
Reputation: 421
You might want to consider replication. Set solr0 as your master and solr1 as a slave. Reindex on solr0 and, once it is finished and committed, solr1 will start pulling the new index. If the reindexing load is so significant that solr0 can't serve queries while it is reindexing, you could use something like varnish in front of the Solr servers and mark solr0 as inactive wile indexing. All of this can be automated by writing scripts that query the Solr DIH and replication status endpoints.
Upvotes: 1