[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2018-02-01 Thread afine
Github user afine commented on the issue: https://github.com/apache/zookeeper/pull/415 @phunt I think this is ready to merge. Just waiting on your +1. ---

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2018-02-01 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @phunt @afine Do you think this PR is ready to committed before the Dropwizard one? ---

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-12-18 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @phunt I asked around quickly: HBase - own library (looks like they've started to use dropwizard somehow) HDFS - Hadoop Metrics2 (included in hadoop-common) Kafka - Yammer (dropwizard

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-12-15 Thread phunt
Github user phunt commented on the issue: https://github.com/apache/zookeeper/pull/415 > One approach (which this PR tries to follow) is to expose basic values which can be sampled by a more sophisticated monitoring tool. Average, sliding window, etc. can be implemented in there.

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-12-15 Thread phunt
Github user phunt commented on the issue: https://github.com/apache/zookeeper/pull/415 > Do you think it's worth merging this PR and refactor it in a separate one to use that lib? I'd say, let's consider it separately. There's probably some work to do to identify what we

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-12-15 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @phunt I added proposal stats to 'mntr' command output as requested. In the meantime I found the following metrics lib which could be useful and easily integrated into Zookeeper:

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-12-14 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @phunt That's a perfectly valid point Pat, I've been asked about it several times before. Therefore I added some more comments to the parent Jira of monitoring, please take a look at the

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-12-13 Thread phunt
Github user phunt commented on the issue: https://github.com/apache/zookeeper/pull/415 This seems like a reasonable addition (see below). I like the refactorings (kudos). The code seems fine. I do have a couple questions though. 1) this information should also be added to

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-12-11 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @phunt @afine are u happy with the change? ---

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-12-05 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @phunt do you think we can commit this patch? ---

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-12-04 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @afine @phunt Findbugs issues have been resolved. Please review & commit. ---

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-11-21 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @afine You're not missing anything, I didn't add jetty support to this patch intentionally, because afaik jetty is not supported in 3.4. So the plan is to keep this patch compatible with all

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-11-18 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @phunt 4lw changes have been added. @afine please start the review over, because so many things have been changed since you approved it. For some weird reason I cannot get a green

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-11-16 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @phunt Sorry, I've completely forgotten about it. I believe the easiest would be to add proposal stats to 'stat' 4lw in this patch, so that it could be easily applied to all major branches.

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-11-16 Thread phunt
Github user phunt commented on the issue: https://github.com/apache/zookeeper/pull/415 What's the plan re my other comment > We try to keep jmx, 4lw and jetty interfaces (new in 3.5) in lock step wrt the metrics they provide. ---

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-11-16 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @phunt I've added capability of resetting proposal statistics as well as unit tests for LeaderBean class. ---

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-11-15 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @phunt Thanks for looking into this. I'll include the reset capability into this patch as suggested. ---

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-11-15 Thread phunt
Github user phunt commented on the issue: https://github.com/apache/zookeeper/pull/415 I didn't look at this in much depth yet but one obvious things struck me - you are missing the reset capability. See how we handle latency tracking in the beans. We try to keep jmx, 4lw

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-11-11 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @afine Thanks for approving. I've added the same byte array verification to the other unit test too. Also squashed everything into single commit. Ready to merge. ---

[GitHub] zookeeper issue #415: ZOOKEEPER-2939: Added last/min/max proposal size JMX b...

2017-11-09 Thread anmolnar
Github user anmolnar commented on the issue: https://github.com/apache/zookeeper/pull/415 @afine Take a look at please the latest commit, I've added verification of the byte array itself to serializeRequest() unit test. I'm not 100% sure it's needed, but it might makes sense this