MarkLogic Server 11.0 Product Documentation
xdmp.shutdown

xdmp.shutdown(
   hostIDs as (Number|String)[],
   reason as String,
   [failover as Boolean]
) as null

Summary

Shutdown servers on hosts.

Parameters
hostIDs A sequence of host IDs, or empty sequence for the local host.
reason Prepositional phrase describing the reason to shutdown.
failover True if other hosts in the cluster should take over the replica forests. False if not specified.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-shutdown

Example

xdmp.shutdown(null, "for software upgrade", true);
Powered by MarkLogic Server | Terms of Use | Privacy Policy