Problem is setting up multinode cluster

(Mohana Bhattacharya) #1

I am trying to setup a . multinode cluster (3 zero and 3 alpha nodes)

First peer configuration below
Zero configuration
ExecStart=/usr/local/bin/dgraph zero -o 1 --my <vm_ip>:5081 --replicas 3 --peer <zero_ip>:5080 --bindall=true --idx 2 --wal /var/run/dgraph/zw

Alpha configuration
ExecStart=/usr/local/bin/dgraph alpha --my <vm_ip>:7081 --lru_mb 2048 --zero <zero_ip>:5080 -p /var/run/dgraph/p -w /var/run/dgraph/w

My logs
Error while joining cluster: rpc error: code = DeadlineExceeded desc = context deadline exceeded

My ratel stops functioning and i cannot load the schema or make a query.
Can anyone help me regarding this.

Thank you.

Set up dgraph cluster manually
(Aman Mangal) #2

This might help Set up dgraph cluster manually

(Mohana Bhattacharya) #3

Also, another error is

Error: rpc error: code = Unavailable desc = all SubConns are in TransientFailure,…ection refused

(Michel Conrado) #4

You are not using the -o flag here ^ - Also the zero must have the port offset, 5081. Because you used the flag -o 1 when starting the zero instance.

Fix the commands, start from scratch and you’re good to go.