Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upBad performance after enabling etcd authentication. #5840
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
gradywang
Jul 1, 2016
In addition, I found that before enabling etcd auth, I can start 10k etcd clients to watch a key in etcd, but after enabling etcd auth, it does not, when the number of watched etcd clients reach to 300, then etcd leader cpu usage will reach to 99.6%, and all etcd client operation does not work, and I found some errors in etcd log:
......
2016-07-01 09:16:34.120567 W | etcdserver: server is likely overloaded
2016-07-01 09:16:35.257437 W | etcdserver: failed to send out heartbeat on time (deadline exceeded for 936.918092ms)
2016-07-01 09:16:35.257471 W | etcdserver: server is likely overloaded
2016-07-01 09:16:35.257477 W | etcdserver: failed to send out heartbeat on time (deadline exceeded for 936.914383ms)
2016-07-01 09:16:35.257482 W | etcdserver: server is likely overloaded
2016-07-01 09:16:36.082682 W | etcdserver: failed to send out heartbeat on time (deadline exceeded for 625.246459ms)
2016-07-01 09:16:36.082711 W | etcdserver: server is likely overloaded
2016-07-01 09:16:36.082717 W | etcdserver: failed to send out heartbeat on time (deadline exceeded for 625.239833ms)
2016-07-01 09:16:36.082721 W | etcdserver: server is likely overloaded
2016-07-01 09:16:36.655453 W | etcdserver: failed to send out heartbeat on time (deadline exceeded for 372.770696ms)
2016-07-01 09:16:36.655484 W | etcdserver: server is likely overloaded
2016-07-01 09:16:36.655490 W | etcdserver: failed to send out heartbeat on time (deadline exceeded for 372.773088ms)
2016-07-01 09:16:36.655495 W | etcdserver: server is likely overloaded
......
......
gradywang
commented
Jul 1, 2016
|
In addition, I found that before enabling etcd auth, I can start 10k etcd clients to watch a key in etcd, but after enabling etcd auth, it does not, when the number of watched etcd clients reach to 300, then etcd leader cpu usage will reach to 99.6%, and all etcd client operation does not work, and I found some errors in etcd log:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
xiang90
Jul 1, 2016
Contributor
this is a long time issue. and this issue is a dup with #3223. You can check that issue for more information. We will probably get this "fixed" by 3.1.
|
this is a long time issue. and this issue is a dup with #3223. You can check that issue for more information. We will probably get this "fixed" by 3.1. |
xiang90
closed this
Jul 1, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
gradywang
commented
Jul 1, 2016
|
@xiang90 Thanks for your reply. |
gradywang commentedJul 1, 2016
I tested that etcd has a bad performance after enabling authentication, my test steps as below:
Install etcd(v2.3.6) cluster with three nodes by following steps:
Test steps:
Monitor the cpu usage on the etcd leader node (ETCD_NODE1) and run the test script to insert 10k key-value pairs into etcd:
Then enable the etcd authentication and test again:
Test results:
Refer to above results, before enabling etcd authentication, insert 10k key-value(1KB each value) pairs into etcd will take about 69s and the average cpu usage is 10.3%, but after enabling etcd auth, it needs to take about 1174s, and the average cpu usage reach to 26.6%. Cloud anyone tell me why etcd has such a different performance after enabling auth? Can I do something for optimization?
Append the test script initETCD.sh as below: