[
https://issues.apache.org/jira/browse/ZOOKEEPER-4979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Khanas reassigned ZOOKEEPER-4979:
--------------------------------------
Assignee: Ivan Khanas
> Provide Metric for Maximum Ephemeral Node Path Length per Session
> -----------------------------------------------------------------
>
> Key: ZOOKEEPER-4979
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4979
> Project: ZooKeeper
> Issue Type: Improvement
> Reporter: Minwoo Kang
> Assignee: Ivan Khanas
> Priority: Minor
>
> h4. Background
> Currently, ZooKeeper handles the deletion of ephemeral nodes on closeSession
> by processing a session-based delete transaction, rather than creating a
> separate delete transaction for each znode.
> If a session with a large number of ephemeral nodes is closed, the resulting
> transaction can exceed the jute.maxbuffer limit, causing errors.
> h4. Problem
> * When closing sessions with many ephemeral nodes, the delete transaction
> size may exceed {{{}jute.maxbuffer{}}}, resulting in "unreasonable length"
> errors and potential ZooKeeper failures.
> * ZooKeeper currently provides metrics for the number and size of ephemeral
> nodes, but does not provide metrics for the total path length of ephemeral
> nodes created by each session.
> * As a result, operators have difficulty estimating an appropriate value for
> {{jute.maxbuffer}} and cannot proactively monitor for related issues.
> h4. Improvement Suggestion
> * Provide a metric for the total path length of ephemeral nodes created by
> each session.
> * It is not necessary to provide this information for all sessions;
> reporting only the session with the largest total path length would be
> sufficient.
> * This metric would help operators determine a reasonable value for
> jute.maxbuffer and prevent related failures.
> h4. Reference
> Similar issues: https://issues.apache.org/jira/browse/ZOOKEEPER-4916,
> https://issues.apache.org/jira/browse/ZOOKEEPER-4306
--
This message was sent by Atlassian Jira
(v8.20.10#820010)