Error Creating Multiple Alphas


(Kashesha) #1

Hi,

I have a zero running on 5080. I was able to run an alpha with:

dgraph alpha --lru_mb 2048 --zero localhost:5080

which works fine. I’m now trying to run another alpha and am using the command:

dgraph alpha --lru_mb 2048 --zero localhost:5080 -o 1.

This gives the error:

Error while creating badger KV WAL store

runtime.goexit

/usr/local/go/src/runtime/asm_amd64.s:1337

Please let me know how to correct this!

Thanks!


(Michel Conrado) #2

Change the command to:
dgraph alpha --lru_mb 2048 --zero localhost:5080 --my localhost:7081 -o 1.

Make sure that each instance has its own path/volume/storage.


(Kashesha) #3

I managed to get a second alpha running with:

dgraph alpha --lru_mb 2048 --zero localhost:5080 --my localhost:7081 -o 1 -p 1 -w 2

Just confirming that this is a sensible command.