Skip to content

Commit 693b423

Browse files
committed
Updating docs for failover project example
#214 Added docs about role ordering Slimming down README
1 parent e968312 commit 693b423

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,3 @@ how different resources can be configured.
4646

4747
Finally, if you run into trouble, you can either submit an issue to this project or try asking a question
4848
[on stackoverflow with marklogic as a tag](http://stackoverflow.com/questions/tagged/marklogic).
49-
50-
Can I use ml-gradle with Roxy?
51-
=========
52-
You bet! Starting with version 2.2.0, you can use "gradle mlWatch" to automatically load new/modified modules into the
53-
modules database of your Roxy application, and ml-gradle will substitute tokens based on Roxy properties as well.
54-
See [Loading modules in a Roxy project](https://github.com/rjrudin/ml-gradle/wiki/Loading-modules-on-a-Roxy-project) for more information.
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
This project shows an example of configuring replica forests for the out-of-the-box databases that are typically worth
2-
enabling failover.
2+
enabling failover. See https://github.com/marklogic-community/ml-gradle/wiki/Property-reference for more properties
3+
for configuring the replica forests that are created.
34

45
Note that you'll need to run this against a cluster with at least two nodes (failover requires three nodes, but you
56
only need two nodes to see how ml-gradle will create replica forests).
6-
7+
8+
For complete control of primary and replica forests, check out
9+
the [custom forests and replicas](../custom-forests-and-replicas-project) project.

examples/failover-project/gradle.properties

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ mlRestPort=8013
44
mlUsername=admin
55
mlPassword=admin
66

7-
# The following configuration property lets you easily define how many replicas you want of the forests
8-
# for each database. For more precise control over forests and replicas, look into DeployCustomForestsCommand
9-
# and DeployCustomForestsTask.
10-
#mlDatabaseNamesAndReplicaCounts=Security,2,Schemas,1,Meters,1,App-Services,1
7+
# mlDatabaseNamesAndReplicaCounts lets you easily configure the number of replica forests you want for each primary
8+
# forest attached to a given database.
9+
10+
# This example shows configuring multiple default databases with replicas.
11+
# mlDatabaseNamesAndReplicaCounts=Security,2,Schemas,1,Meters,1,App-Services,1
12+
13+
# This example shows configuring the database created by this project with replicas. You can of course configure the
14+
# number of primary forests you want for the content database too.
1115
mlContentForestsPerHost=1
12-
mlDatabaseNamesAndReplicaCounts=failover-example-content,1
16+
mlDatabaseNamesAndReplicaCounts=failover-example-content,1

examples/role-project/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
This project shows how to create a role that refers to itself. See the
22
src/main/ml-config/security/roles directory for more information.
3+
4+
As of version 2.9.0, you don't need to do anything special now. ml-gradle will detect that a role refers to itself,
5+
and it will deploy the role twice - once without its role dependencies, and again with its role dependencies.
6+
7+
In version 2.9.0, ml-gradle will also figure out what order to deploy roles in - no need to order them yourself via
8+
their filenames.

0 commit comments

Comments
 (0)