You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Jie Huang (Jira)" <ji...@apache.org> on 2020/01/08 16:35:00 UTC
[jira] [Created] (ZOOKEEPER-3682) Stop initializing new SSL
connection if ZK server is shutting down
Jie Huang created ZOOKEEPER-3682:
------------------------------------
Summary: Stop initializing new SSL connection if ZK server is shutting down
Key: ZOOKEEPER-3682
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3682
Project: ZooKeeper
Issue Type: Improvement
Components: server
Reporter: Jie Huang
Fix For: 3.6.0
ZK keeps accepting new connections while it's being shut down then immediately close them when it finds out that the ZK server is not running. It's not a big deal before SSL is enabled since creating TCP connections is relatively cheap.
With SSL being widely enabled, creating SSL connections involves handshake that takes non-trivial CPU time, which is wasted since the connections are closed right after.
This JIRA is going to stop initializing TLS handshake if the zkServer is not serving to save resources.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)