marklogicmarklogic-10ml-gradle

Setting total number of Marklogic forests for a database in ml-gradle


I'm currently working on configuring the resources like databases and app servers for an application using ml-gradle.These configurations would be deployed to ML10 environment.

I have a content database and there are nine hosts in the environment. I have set the ml-gradle property mlContentForestsPerHost=1 ,so it is creating 9 forests in total for the content database.

But I need only 5 forests in total for my content database to be created.

Is there a way to do it via any ml-gradle property or this can be achieved using json forest config only?

Please share your thoughts.


Solution

  • See https://github.com/marklogic-community/ml-gradle/wiki/Creating-forests#properties-driven - specifically mlDatabaseHosts or possibly mlDatabaseGroups.