Configuring failover - marklogic/ml-gradle GitHub Wiki
See the failover example project for an example of how to configure failover - i.e. forest replicas - for any primary forest, including the out-of-the-box forests such as Security, Schemas, and App-Services.
The Management API for forests also allows for easy configuration of replicas for your application's forests.