Do keep in mind though that your index will have to have any documents that have not yet been replicated added to the promoted slave. The easy to do this is just re-index documents from a "safe" point. If you're using time-based deltas, this is just some time interval "far enough in the past to guarantee you won't have lost results", which usually something like autocommit_inerval + replication_polling_interval + fudge_factor
And you're then relying ont he uniqueKey to overwrite documents if necessary. Best Erick On Wed, Aug 10, 2011 at 5:04 PM, Akshay <akm...@gmail.com> wrote: > Yes you can promote a slave to be master refer > http://wiki.apache.org/solr/SolrReplication#enable.2BAC8-disable_master.2BAC8-slave_in_a_node > > In AWS one can use an elastic IP(http://aws.amazon.com/articles/1346) to > refer to the master and this can be assigned to slaves as they assume the > role of master(in case of failure). All slaves will then refer to this new > master and there will be no need to regenerate data. > > Automation of this maybe possible through CloudWatch alarm-actions. I don't > know of any available example automation scripts. > > Cheers > Akshay. > > On Wed, Aug 10, 2011 at 9:08 PM, Matt Shields <m...@mattshields.org> wrote: > >> If I were to build a master with multiple slaves, is it possible to promote >> a slave to be the new master if the original master fails? Will all the >> slaves pickup right where they left off, or any time the master fails will >> we need to completely regenerate all the data? >> >> If this is possible, are there any examples of this being automated? >> Especially on Win2k3. >> >> Matthew Shields >> Owner >> BeanTown Host - Web Hosting, Domain Names, Dedicated Servers, Colocation, >> Managed Services >> www.beantownhost.com >> www.sysadminvalley.com >> www.jeeprally.com >> >> >> >> On Mon, Aug 8, 2011 at 5:34 PM, <mboh...@yahoo.com> wrote: >> >> > Matthew, >> > >> > Here's another resource: >> > >> > >> http://www.lucidimagination.com/blog/2010/02/01/solr-shines-through-the-cloud-lucidworks-solr-on-ec2/ >> > >> > >> > Michael Bohlig >> > Lucid Imagination >> > >> > >> > >> > ----- Original Message ---- >> > From: Matt Shields <m...@mattshields.org> >> > To: solr-user@lucene.apache.org >> > Sent: Mon, August 8, 2011 2:03:20 PM >> > Subject: Example Solr Config on EC2 >> > >> > I'm looking for some examples of how to setup Solr on EC2. The >> > configuration I'm looking for would have multiple nodes for redundancy. >> > I've tested in-house with a single master and slave with replication >> > running in Tomcat on Windows Server 2003, but even if I have multiple >> > slaves >> > the single master is a single point of failure. Any suggestions or >> example >> > configurations? The project I'm working on is a .NET setup, so ideally >> I'd >> > like to keep this search cluster on Windows Server, even though I prefer >> > Linux. >> > >> > Matthew Shields >> > Owner >> > BeanTown Host - Web Hosting, Domain Names, Dedicated Servers, Colocation, >> > Managed Services >> > www.beantownhost.com >> > www.sysadminvalley.com >> > www.jeeprally.com >> > >> > >> >