And here is the doc on this, FWI:

http://docs.marklogic.com/guide/database-replication/dbrep_intro#id_27654

-Danny

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of vi...@tilaton.fi
Sent: Sunday, September 28, 2014 11:23 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Adding new index to replicated ML servers

Thank you Mike!

Ville

------ Original Message ------
From: "Michael Blakeley" <m...@blakeley.com<mailto:m...@blakeley.com>>
To: "MarkLogic Developer Discussion" 
<general@developer.marklogic.com<mailto:general@developer.marklogic.com>>
Sent: 29.9.2014 9:20:31
Subject: Re: [MarkLogic Dev General] Adding new index to replicated ML servers

Change the replica first, then the master. Each will index independently.

-- Mike

On Sep 28, 2014, at 23:04, vi...@tilaton.fi<mailto:vi...@tilaton.fi> wrote:
I tried to search for the answer, but couldn't find it, I would appreciate if 
any of you could direct me to the correct chunk of documentation to find this 
out:

We have two node ML7 setup where one of the nodes is master and other slave 
using database replication matched by the database name. (This is NOT flexible 
replication)

We execute queries to both hosts 24/7 but obviously write only to the primary 
one.

We often need to add new indexes to the system and the (multi part) question is:

1. Does ML replicate the index definitions between hosts?
2. Does ML replicate the indexes themselves between the hosts?
3. What's the correct procedure to add a new index in this setup?

We currently add the indexes by hand, starting from the slave. We noticed that 
the slave does not initiate automatic reindexing, even though we have 
"reindexer enable" set to true and figured it's better to add the new index to 
slave first so that it will be there when the primary starts reindexing.

So, is it required at all to add the indexes first to slave, or will ML take 
care of the configuration changes via the replication also or does that include 
only data?

Ville
_______________________________________________
General mailing list
General@developer.marklogic.com<mailto:General@developer.marklogic.com>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to