Skip to content

ZOOKEEPER-5015: Add admin server command to shed client connections by percentage#2352

Open
li4wang wants to merge 1 commit intoapache:masterfrom
li4wang:ZOOKEEPER-5015
Open

ZOOKEEPER-5015: Add admin server command to shed client connections by percentage#2352
li4wang wants to merge 1 commit intoapache:masterfrom
li4wang:ZOOKEEPER-5015

Conversation

@li4wang
Copy link
Contributor

@li4wang li4wang commented Jan 28, 2026

This PR added a new admin server command to gracefully shed client connections by percentage for load management and maintenance operations.

  • added a ShedConnectionsCommand to the Commands class
  • added ShedConnections() API to ServerCnxnFactorty to shed connections based on percentage and probability
  • added tests

@li4wang li4wang force-pushed the ZOOKEEPER-5015 branch 5 times, most recently from 93659de to 44a7acf Compare February 26, 2026 13:26
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

we should also update the documentation

…y percentage

Author: Li Wang<liwang@apple.com>
@li4wang
Copy link
Contributor Author

li4wang commented Feb 27, 2026

@eolivelli thanks a lot for reviewing the PR and providing feedback. I've updated the documentation to include the shed_connections command. Would you mind taking a quick Look at it? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants