-
Notifications
You must be signed in to change notification settings - Fork 66
Forest replica setup #408
Comments
You need to declare an extra forest, and refer to that. E.g |
Got it working with one replica - Thanks @grtjn But I need to create 2 replica forests (one on each other node) This configuration creates 2 replica forests but on the same host. Also I am using the same ml-config.xml on several environments in dev I don't really need to create forest replica (not a cluster). Any suggestion to use the same ml-config.xml but generate replica forest only on clustered environment? <assignments xmlns="http://marklogic.com/xdmp/assignments" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://marklogic.com/xdmp/assignments assignments.xsd">
<assignment>
<forest-name>@ml.content-db-rep1</forest-name>
@ml.forest-data-dir-xml
</assignment>
<assignment>
<forest-name>@ml.content-db-rep2</forest-name>
@ml.forest-data-dir-xml
</assignment>
<assignment>
<forest-name>@ml.content-db</forest-name>
<replica-names>
<replica-name>@ml.content-db-rep1</replica-name>
<replica-name>@ml.content-db-rep2</replica-name>
</replica-names>
@ml.forest-data-dir-xml
</assignment>
</assignments> |
See PR #384, that contains everything you are looking for.. :) |
I think we can close this one. Agree? |
I realize that this is an older thread. Did you run into any problems wiping your database using this configuration? I'm seeing the following using the latest dev branch: $ ml local wipe |
Using ml 1.7.2-dev.
Looking for ml-config.xml sample to setup forest replica for cluster 3 hosts, 2 forest per host
Properties defined:
forest-data-dir=/forest-data
content-forests-per-host=2
In ml-config.xml:
According to this comment replica name should point to forest name.
#361 (comment)
The text was updated successfully, but these errors were encountered: