Master/Slave Setup


I’d like to set up a cluster with M write (or read/write) nodes and N read-only nodes (N>M). Could someone point me in the right direction on resources on how to do this?

Thanks in advance.


You can use the flag

--mutations string   
Set mutation mode to allow, disallow, or strict. (default "allow")

BTW, The concept of “master slaver” doesn’t exist in Dgraph. But for what you wanna do you can do it setting that flag to “disallow”. It will be “read-only”.

$ dgraph alpha -h | grep mutation