zookeeper icon indicating copy to clipboard operation
zookeeper copied to clipboard

ZOOKEEPER-3196. Maintain the configuration will be used by server stabilizer.It can be overridden based on the server type and the server system internals.

Open tumativ opened this issue 8 years ago • 7 comments

https://issues.apache.org/jira/browse/ZOOKEEPER-3196

Maintain the configuration will be used by server stabilizer. It can be overridden based on the server type and the server system internals.

-Avoid calculating the globalOutstandingLimit for every request as it is not going to be changed for every request.

-we are reading globalOutstandingLimit from the system property and parsing the value at every call of shouldThrottle. So it can be taken from config. It will act as the cache.

tumativ avatar Nov 21 '18 13:11 tumativ

Can we add in the descriptoin the original problem fro findbugs ? It is not clear what we are going to fix.

eolivelli avatar Nov 21 '18 13:11 eolivelli

@tumativ Given that this is not a straight revert of the failing patch, would you please create a Jira and explain the reasoning in that?

anmolnar avatar Nov 21 '18 14:11 anmolnar

The build is green. It addressed the issues.

tumativ avatar Nov 21 '18 14:11 tumativ

https://issues.apache.org/jira/browse/ZOOKEEPER-3196

tumativ avatar Nov 21 '18 14:11 tumativ

@tumativ Please rebase this patch if you're still working on it. Currently the implementation is flooding the logs with messages like this:

2019-05-07 16:03:58,679 [myid:1] - INFO  [NIOWorkerThread-5:FollowerZooKeeperServer@137] - Override zookeeper.globalOutstandingLimit to 500
2019-05-07 16:03:58,682 [myid:1] - INFO  [CommitProcWorkThread-2:FollowerZooKeeperServer@137] - Override zookeeper.globalOutstandingLimit to 500
2019-05-07 16:03:58,685 [myid:1] - INFO  [NIOWorkerThread-8:FollowerZooKeeperServer@137] - Override zookeeper.globalOutstandingLimit to 500
2019-05-07 16:03:58,687 [myid:1] - INFO  [CommitProcWorkThread-2:FollowerZooKeeperServer@137] - Override zookeeper.globalOutstandingLimit to 500
2019-05-07 16:03:58,691 [myid:1] - INFO  [NIOWorkerThread-11:FollowerZooKeeperServer@137] - Override zookeeper.globalOutstandingLimit to 500
2019-05-07 16:03:58,693 [myid:1] - INFO  [CommitProcWorkThread-2:FollowerZooKeeperServer@137] - Override zookeeper.globalOutstandingLimit to 500
2019-05-07 16:03:58,696 [myid:1] - INFO  [NIOWorkerThread-14:FollowerZooKeeperServer@137] - Override zookeeper.globalOutstandingLimit to 500
2019-05-07 16:03:58,698 [myid:1] - INFO  [CommitProcWorkThread-2:FollowerZooKeeperServer@137] - Override zookeeper.globalOutstandingLimit to 500

I'd like to commit this.

anmolnar avatar May 07 '19 14:05 anmolnar

@eolivelli @lvfangmin PTAL.

anmolnar avatar May 07 '19 14:05 anmolnar

@tumativ Sorry for the delay, are u still working on this patch?

anmolnar avatar Jun 14 '19 21:06 anmolnar