Bug report criteria
What happened?
In the ETCD cluster I tested, the lease renew rate is 1500/s, arm64 CPU, and the CPU usage of the leader node increased by 20%.
This problem is because of this modification
|
if !s.ensureLeadership() { |
We conducted rigorous tests, including checking pprof, collecting metrics, deleting that line of code and recompiling etcd, and confirmed that this was the reason for the CPU increase.
What did you expect to happen?
It may not be necessary to add leader confirmation in lease renew.
Or using a more performant method.
How can we reproduce it (as minimally and precisely as possible)?
Sending many lease update requests to the ETCD cluster, v3.5.11 version CPU will increase a lot.
Anything else we need to know?
No response
Etcd version (please run commands below)
v3.5.11
Etcd configuration (command line flags or environment variables)
Details
paste your configuration here
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
Details
$ etcdctl member list -w table
# paste output here
$ etcdctl --endpoints=<member list> endpoint status -w table
# paste output here
Relevant log output
No response
Bug report criteria
What happened?
In the ETCD cluster I tested, the lease renew rate is 1500/s, arm64 CPU, and the CPU usage of the leader node increased by 20%.
This problem is because of this modification
etcd/server/etcdserver/v3_server.go
Line 288 in bb701b9
We conducted rigorous tests, including checking pprof, collecting metrics, deleting that line of code and recompiling etcd, and confirmed that this was the reason for the CPU increase.
What did you expect to happen?
It may not be necessary to add leader confirmation in lease renew.
Or using a more performant method.
How can we reproduce it (as minimally and precisely as possible)?
Sending many lease update requests to the ETCD cluster, v3.5.11 version CPU will increase a lot.
Anything else we need to know?
No response
Etcd version (please run commands below)
v3.5.11
Etcd configuration (command line flags or environment variables)
Details
paste your configuration here
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
Details
Relevant log output
No response