marklogic / ml-gradle

Gradle plugin for automating everything involving MarkLogic
Other
72 stars 78 forks source link

Incorporate Host Zone in properties-driven forest creation to ensure HA #635

Closed hansenmc closed 1 year ago

hansenmc commented 1 year ago

The properties-driven forest creation currently does not take into account the Host Zone when generating the HA replica forests and assignment.

For customers deployed across multiple data centers, for instance in multiple AWS Availability Zones, it is best to ensure that an HA replica forest is assigned to a host that is in a different Zone. This helps ensure HA if an entire Zone were to be lost. The remaining 2/3 of the cluster would have open replicas and the cluster could remain operational.

This is a common requirement and a best practice that we should look to support and make it easier to achieve.

Several users have asked about how to do this in ml-gradle:

rjrudin commented 1 year ago

Going to leave this here in case it's been linked to, but re-opening it in ml-app-deployer - https://github.com/marklogic-community/ml-app-deployer/issues/461