Dgraph : v21.03.2
Can zero receive a large number of concurrent requests?
When I request 2000 golang dgraph clients at the same time, an error will be reported:
| I0923 07:27:26.107110 21 groups.go:974] Zero leadership changed. Renewing oracle delta stream.
alpha | E0923 07:27:26.114641 21 groups.go:950] Error in oracle delta stream. Error: rpc error: code = Canceled desc = context canceled
alpha | I0923 07:27:27.055365 21 groups.go:906] Leader idx=0x1 of group=1 is connecting to Zero for txn updates
alpha | I0923 07:27:27.057208 21 groups.go:918] Got Zero leader: zero:5080
alpha | I0923 07:27:45.545474 21 groups.go:974] Zero leadership changed. Renewing oracle delta stream.
alpha | E0923 07:27:45.546338 21 groups.go:950] Error in oracle delta stream. Error: rpc error: code = Canceled desc = context canceled
zero | I0923 07:27:52.145471 22 raft.go:779] Skipping creating a snapshot. Num groups: 1, Num checkpoints: 0
alpha | I0923 07:27:54.369813 21 groups.go:656] No healthy Zero leader found. Trying to find a Zero leader...
zero | I0923 07:27:54.526362 22 zero.go:445] Got connection request: cluster_info_only:true
zero | I0923 07:27:54.526847 22 zero.go:470] Connected: cluster_info_only:true
alpha | I0923 07:27:54.601908 21 groups.go:702] Found connection to leader: zero:5080
alpha | I0923 07:27:54.756200 21 groups.go:656] No healthy Zero leader found. Trying to find a Zero leader...
alpha | I0923 07:27:54.756414 21 groups.go:906] Leader idx=0x1 of group=1 is connecting to Zero for txn updates
alpha | I0923 07:27:54.757984 21 groups.go:656] No healthy Zero leader found. Trying to find a Zero leader...
zero | I0923 07:27:55.006103 22 zero.go:445] Got connection request: cluster_info_only:true
zero | I0923 07:27:55.007376 22 zero.go:470] Connected: cluster_info_only:true
zero | I0923 07:27:55.008304 22 zero.go:445] Got connection request: cluster_info_only:true
zero | I0923 07:27:55.009045 22 zero.go:470] Connected: cluster_info_only:true
alpha | I0923 07:27:55.091298 21 groups.go:702] Found connection to leader: zero:5080
alpha | I0923 07:27:55.091722 21 groups.go:918] Got Zero leader: zero:5080
alpha | I0923 07:27:55.164677 21 groups.go:702] Found connection to leader: zero:5080