Skip to main content

MarkLogic Server on Kubernetes

Deploy a MarkLogic cluster with multiple groups

To deploy a MarkLogic cluster with multiple groups (for example, separate E and D nodes), either the bootstrapHostName and group.name must be configured in the values.yaml file, or the values provided for these configurations must be set using the --set flag while installing Helm Charts. For example, if you want to create a MarkLogic cluster with three nodes in a dnode group and two nodes in an enode group, start with this Helm command:

helm install dnode-group marklogic/marklogic --set group.name=dnode --set replicaCount=3 -n <release-namespace>

Once the deployment is complete, a MarkLogic cluster with three hosts will be running. To add the enode group and nodes to the cluster, the bootstrapHostName must be set to join the existing MarkLogic cluster. The first host in the other group can be used. For this example, set bootstrapHostName to dnode-group-marklogic-0.dnode-group-marklogic-headless.default.svc.cluster.local with this command:

helm install enode-group marklogic/marklogic --set group.name=enode --set replicaCount=2 --set bootstrapHostName=dnode-group-marklogic-0.dnode-group-marklogic-headless.default.svc.cluster.local-n <release-namespace>

Once the deployment is complete, there will be a new "enode" group with two hosts in the MarkLogic cluster. Each MarkLogic group will have its own chart release. In the example, both dnode groups and enode groups have a chart release.  Each group can be handled separately.