marklogicml-gradle

Master forest on host-1, replicas on other remaining hosts in ml-gradle?


I have configured 5 node cluster lets say (h1, h2, h3, h4, h5)

I want to create a database content with one forest content-1 on h1 and 4 replicas on h2,h3,h4,h5.

Is this possible by using some ml-gradle property or I have to define custom json for the same?

enter image description here

-r- specifies replica.


Solution

  • Try the instructions at https://github.com/marklogic-community/ml-gradle/wiki/Creating-forests.

    It sounds like you'd want mlForestsPerHost=content,1 and mlDatabaseNamesAndReplicaCounts=content,4.