1

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.

Dixit Singla
  • 2,540
  • 3
  • 24
  • 39
  • Four replicas seems like overkill. That's a lot of additional overhead and storage. You typically won't have a need for that many. – Mads Hansen Mar 15 '20 at 12:39
  • 1
    In the question I have mentioned content DB but in actual I am doing it for `schemas` and `triggers` DB – Dixit Singla Mar 17 '20 at 05:15

1 Answers1

4

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.

Mads Hansen
  • 63,927
  • 12
  • 112
  • 147
rjrudin
  • 2,108
  • 9
  • 7
  • `mlForestsPerHost=content,1` and `mlDatabaseNamesAndReplicaCounts=content,4` this config is not working. output is 1 forest on each node and 4 replicas on search node. – Dixit Singla Mar 17 '20 at 05:15
  • I think I understand now - you only want one primary forest total, correct? Try setting mlDatabasesWithForestsOnOneHost=content. – rjrudin Mar 18 '20 at 12:49
  • `mlDatabasesWithForestsOnOneHost` this one does the job. Thanks. – Dixit Singla Mar 25 '20 at 06:42