Hi,
I am running Dgraph in minikube using dgraph-ha.yaml file having pod replicas 3 for alphas and zeros.
It’s a single node cluster setup, running 3 pods of alpha statefulsets and 3 pods of zeros statefulsets with persistent volume template pointing to different directories.
Is it possible to run this configuration on a single node cluster setup?
Will these 3 alpha pods create a alpha group and as well as 3 zeros create a zero group and where to mention the replica- settings?
Is container command section required for both zero and alpha spec in yaml file:
command:
- bash
- “-c”
- |
set -ex
[[ hostname
=~ -([0-9]+)$ ]] || exit 1
ordinal=${BASH_REMATCH[1]}
idx=$(($ordinal + 1))
if [[ $ordinal -eq 0 ]]; then
exec dgraph zero --my=$(hostname -f):5080 --raft=“idx=$idx” --replicas 3
else
exec dgraph zero --my=$(hostname -f):5080 --peer dgraph-zero-0.dgraph-zero.${POD_NAMESPACE}.svc.cluster.local:5080 --raft=“idx=$idx” --replicas 3
fi