Skip to content

[Improvement][Server] Change the registry session timeout #6660

@caishunfeng

Description

@caishunfeng

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

Now the default registry timeout is 1s, which is short for zk, and it will be reset a negotiated timeout by zk server, because zk.minSessionTimeout = 2 * tickTimeout and zk.maxSessionTimeout = 20 * tickTimeout.

I think the default session timeout param should be improved to control by client better, not only for zk.
Now the defaule hearbeat interval is 10s, So maybe the registry session timeout should set to 30s.
BTW, Curator.DEFAULT_SESSION_TIMEOUT_MS = 60 * 1000 and Curator.DEFAULT_CONNECTION_TIMEOUT_MS = 15 * 1000.

Use case

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions