Hy Dgraph community,
We want to set up a cluster manually. We have 6 centOS machines and want 3 zero with 6 alpha.
We have following questions:
How can we add replicas?
How can we add peers?
How can we connect alpha and zero
For now we have following configurations according to this post https://computingforgeeks.com/install-dgraph-on-centos-ubuntu/
Configuration for zero:
cat <<EOF | sudo tee /etc/systemd/system/dgraph.service
[Unit]
Description=dgraph.io data server
Wants=network.target
After=network.target dgraph-zero.service
Requires=dgraph-zero.service
[Service]
Type=simple
ExecStart=/usr/local/bin/dgraph alpha --lru_mb 2048 -p /var/run/dgraph/p -w /var/run/dgraph/w
StandardOutput=journal
StandardError=journal
User=dgraph
Group=dgraph
[Install]
WantedBy=multi-user.target
Configuration for alpha
[Unit]
Description=dgraph.io zero server
Wants=network.target
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/dgraph zero --wal /var/run/dgraph/zw
StandardOutput=journal
StandardError=journal
User=dgraph
Group=dgraph
[Install]
WantedBy=multi-user.target
RequiredBy=dgraph.service
EOF
Unfortunately we got this error main process exited, code=exited, status=2/INVALIDARGUMENT
Thank you in advance