Thank you for the reply.
What you mean with “switching Leader in live loading”?
I found the error after new leader had elected while live loading.
I think this is triggered by high load condition.
Here is the log around the error but I modified little bit, combined and add node name each line.
How many Alphas instances do you have? why “-idx=1001”? do you have more then 1001 Alphas?
I have 3 Alphas.
- node1: Zero idx:1, Alpha idx:1001
- node2: Zero idx:2, Alpha idx:1002
- node3: Zero idx:3, Alpha idx:1003
Please don’t use “-b 2000” as you’re using “–badger.vlog=disk” I think you may have hdd storages, so do you have less performance. This may cause issues increasing the value of batch. Let it default or try to use SSDs or NVMe.
The reason why I used -b 2000
is to know how Dgraph behave in high load situation.
However I will use --badger.vlog=mmap
and don’t use -b 2000
in normal operation.
I believed --badger.vlog=disk
gives me more safety because vlog is WAL and it must be flushed to storages in RDBMS like PostgreSQL.
Can you share your specs?
on GCP:
n1-standard-2 (vCPU x 2, RAM 7.5 GB), Standard disk (it should be HDD, not SSD)