Skip to content

Commit

Permalink
Updating docs for failover project example
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed Aug 2, 2017
1 parent a95c03d commit 45209b0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 5 additions & 2 deletions examples/failover-project/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
This project shows an example of configuring replica forests for the out-of-the-box databases that are typically worth
enabling failover.
enabling failover. See https://github.com/marklogic-community/ml-gradle/wiki/Property-reference for more properties
for configuring the replica forests that are created.

Note that you'll need to run this against a cluster with at least two nodes (failover requires three nodes, but you
only need two nodes to see how ml-gradle will create replica forests).


For complete control of primary and replica forests, check out
the [custom forests and replicas](../custom-forests-and-replicas-project) project.
14 changes: 9 additions & 5 deletions examples/failover-project/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ mlRestPort=8013
mlUsername=admin
mlPassword=admin

# The following configuration property lets you easily define how many replicas you want of the forests
# for each database. For more precise control over forests and replicas, look into DeployCustomForestsCommand
# and DeployCustomForestsTask.
#mlDatabaseNamesAndReplicaCounts=Security,2,Schemas,1,Meters,1,App-Services,1
# mlDatabaseNamesAndReplicaCounts lets you easily configure the number of replica forests you want for each primary
# forest attached to a given database.

# This example shows configuring multiple default databases with replicas.
# mlDatabaseNamesAndReplicaCounts=Security,2,Schemas,1,Meters,1,App-Services,1

# This example shows configuring the database created by this project with replicas. You can of course configure the
# number of primary forests you want for the content database too.
mlContentForestsPerHost=1
mlDatabaseNamesAndReplicaCounts=failover-example-content,1
mlDatabaseNamesAndReplicaCounts=failover-example-content,1

0 comments on commit 45209b0

Please sign in to comment.