It should, but there are a couple of issues. 1> you have to make your remaining slaves poll the new master for index updates. 2> your indexing process has to be pointed the new master (if it's external) 3> you have to make sure anything you've indexed to the master that has NOT been replicated to the new master gets re-indexed. This is often done by just re-indexing everything from, say, an hour before the master crashed.
Best Erick On Tue, Jun 21, 2011 at 3:44 AM, Mark Schoy <hei...@gmx.de> wrote: > Hi, > > I have an idea how to switching master and slave in case of one server > is crashing: > > Setting up two server as repeater but disabling master and slave > config on both with <str name="enable">false</str>. > > Now you can dynamically disable and enable master or slave option by url: > > enable / disable replication on master: > http://master_host:port/solr/replication?command=disablereplication > http://master_host:port/solr/replication?command=enablereplication > > enable / disable polling on slave: > http://slave_host:port/solr/replication?command=disablepoll > http://slave_host:port/solr/replication?command=enablepoll > > Does this work? >