Search code examples
cluster-computingmarklogicfailoverreindex

MarkLogic Re-indexing in progress & Forest replicas changeover


MarkLogic 9.0.8.2

We have configured MarkLogic cluster (3 nodes) as follows PF - primary forest, RF - replica forest

Host1: PF01 RF02 RF03 Host2: PF02 RF01 RF03 Host3: PF03 RF01 RF02

In normal scenario, when we see database status page, PF should be in "open" state and and everything else will be "wait replicating" state.

Now due to some reason, state of RF01 and RF02 became in "open" state, so that means all load is now on Host3

Reindexing is in progress.

Now question is while reindexing is in progress, can we restart RF01-2 & RF02-2, so that PF01 and PF02 are again in "open" state?

Are there any best practices we should follow for forest restart?


Solution

  • I believe, you should wait until your re-indexing is complete. Once the re-indexing is completed you can flip back forests. As re-indexing started when master was in open state its possible that some documents might not be synced in master forests and re-indexing completed or failed. Those documents might get missed.