-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assign forests over multiple mount points #324
Comments
This sounds fun to work on - everything will be done in ml-app-deployer - but adding "help wanted" just in case someone else thinks it'd be interesting too and would like to do it. |
@paul-hoehne How would you want use properties to specify the different data directories to use? This lists all the current properties for forest directories - https://github.com/marklogic-community/ml-gradle/wiki/Property-reference#database-and-forest-properties I think we'd need a double-delimited string here, e.g.:
|
@paul-hoehne Do you envision that the mount points would be the same on each host? |
@paul-hoehne Assuming 3 hosts, with the 3 mount directories you specified; and 2 forests per directory per host (so 18 forests total); and then 2 replicas per primary (so 36 replicas); does this look like the correct list of 54 hosts? I think it fits your requirements. host1:/mldata1:Documents-1 host1:/mldata1:Documents-2 host1:/mldata2:Documents-3 host1:/mldata2:Documents-4 host1:/mldata3:Documents-5 host1:/mldata3:Documents-6 host2:/mldata1:Documents-7 host2:/mldata1:Documents-8 host2:/mldata2:Documents-9 host2:/mldata2:Documents-10 host2:/mldata3:Documents-11 host2:/mldata3:Documents-12 host3:/mldata1:Documents-13 host3:/mldata1:Documents-14 host3:/mldata2:Documents-15 host3:/mldata2:Documents-16 host3:/mldata3:Documents-17 host3:/mldata3:Documents-18 |
+1 |
This will be supported by the mlDatabaseDataDirectories property, which now supports multiple data directories per host. |
Let's assume the following situation. On a cluster of 3 hosts, there are 3 mount-points. For example, Host 1, 2 and 3 (H1, H2, and H3) each have mounts /mldata1, /mldata2, and /mldata3 (M1, M2, and M3). For example, each mount is a separate GP2 filesystem on AWS. The forest assignment policy should multiplex the forests on hosts with the following constraints:
For example, H1 has mounts M1, M2, and M3. With two forests per mount point, that should imply M1 has forests F1 and F2, M2 has forests F3 and F4 and M4 should have forests M5 and M6. H2 (which has Forests F7-F12), would also be spread over its three mounts, etc.
The replica for H1, M1, F1 might be on H2, M2. the replicat for H1, M1, F2 might be on H3, M3. The replicat for H1, M2, F3 might be on H1, M1. The replica for H1, M2, F4 might be on H3, M1, etc.
The text was updated successfully, but these errors were encountered: