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.
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.
Can we add in the descriptoin the original problem fro findbugs ? It is not clear what we are going to fix.
@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?
The build is green. It addressed the issues.
https://issues.apache.org/jira/browse/ZOOKEEPER-3196
@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.
@eolivelli @lvfangmin PTAL.
@tumativ Sorry for the delay, are u still working on this patch?