Re: Using two repeater to rapidly switching Master and Slave (Replication)?

2012-04-23 Thread Jeevanandam

On 23-04-2012 10:28 am, A Vorderegger wrote:

This setup would be highly convenient and perfect for the purpose of
failing over the Master role however it does not work for me. 
Resolving
http://slave_host:port/solr/replication?command=enablepoll I am met 
with:
ERRORNo slave 
configured
no matter what order I enable polling / replication in. I am 
confident that
I have setup my solrconfig.xml file exactly as described. Could you 
please
further describe how this setup is successfully achieved? Thanks in 
advance



can you please share your repeater configuration (just replication 
handler definition)?


It looks like, on slave host; master is enabled.

and on master executing enablepoll command, will result into



0
2

ERROR
No slave configured



-Jeevanandam


Re: Using two repeater to rapidly switching Master and Slave (Replication)?

2012-03-14 Thread stockii
Did your configuration works ?

i have the same issue and i dont know if it works...

i have 2 servers. each with 2 solr instances (one for updates other for
searching) now i need replication from solr1 to solr2. but what the hell do
solr if master crashed ???



-
--- System 

One Server, 12 GB RAM, 2 Solr Instances, 8 Cores, 
1 Core with 45 Million Documents other Cores < 200.000

- Solr1 for Search-Requests - commit every Minute  - 5GB Xmx
- Solr2 for Update-Request  - delta every Minute - 4GB Xmx
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Using-two-repeater-to-rapidly-switching-Master-and-Slave-Replication-tp3089653p3826234.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Using two repeater to rapidly switching Master and Slave (Replication)?

2011-06-21 Thread Erick Erickson
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  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 false.
>
> 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?
>


Using two repeater to rapidly switching Master and Slave (Replication)?

2011-06-21 Thread Mark Schoy
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 false.

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?