On Tue, May 19, 2009 at 3:48 AM, Jian Han Guo <jian...@gmail.com> wrote: > Hi, > > Occasionally, we want to build our indexes from scratch, and during this > period we want our search continue to work. Here are the steps that I think > will do it > > 1. on all slaves: disable replication > 2. on master: stop the server > 3. on master: delete all the documents > 4. on master: restart the server > 5. on master: index all documents > 6. on slaves: enable replication > > The only problem is: step 1 and 6. We may schedule any time to rebuild > indexes and it is an automated process. It is possible to let the master to > disable replication on all slaves, but then we have to discover all the > slaves automatically, also exceptions may happen, e.g. a slave may be down > at the time and then restarted later on. Anyhow it becomes an unreliable > process. So I am thinking of somehow disabling replication on the master > side during reindex, i.e. set a state on master so that any request for > replication will be ignored. That all the steps described above will be on > master side only. > > Is that possible? > > By the way, I am talking about solr 1.4. I looked at how 1.3 works, and > noticed that in 1.3 there is a way to disable replication on master side: > shutdown rsyncd, so I guess it would be nice to have something equivalent in > solr 1.4. > > > Thanks, > > Jianhan >
Makes sense. you can raise an issue -- ----------------------------------------------------- Noble Paul | Principal Engineer| AOL | http://aol.com