Hello,

I'm considering writing some XQuery to automatically update the configuration 
of a cluster where one host has died and you want to replace it with a new one.
We already have scripts in place that automatically configure the new host, and 
join it to the cluster.
The bit we're missing is updating the forests, to make it so the forests that 
were previously on the now-dead host are instead on the replacement host.
I'm imagining a new script/endpoint that would be something like:

/move-forests?old-host=dead-host.domain.com&new-host=replacement-host.domain.com

It looks like it should be fairly straightforward to do using existing admin: 
functions, something like:

 - for each database, 
    - for each forest
       - if on dead host
       - copy to new host and delete from dead host

 - delete dead host

Does this sound reasonable?
Has anybody done this kind of thing?
Any gotchas, etc?

Thanks,
John 

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to