zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nkalmar <...@git.apache.org>
Subject [GitHub] zookeeper pull request #501: ZOOKEEPER-3019 add metric for slow fsyncs count
Date Thu, 12 Apr 2018 10:06:25 GMT
GitHub user nkalmar opened a pull request:


    ZOOKEEPER-3019 add metric for slow fsyncs count

    Added metric to count fsyncWarningThresholdMS exceed in FileTxnLog.commit(). Both jmx
bean and Command can be used to get the stat.
    Also updated the python standalone client and documentation.
    Tested the py script, i.e.:
    src/contrib/monitoring/check_zookeeper.py -o cacti -s "localhost:2181" -k zk_num_alive_connections
    rc/contrib/monitoring/check_zookeeper.py -o cacti -s "localhost:2181" -k zk_fsync_threshold_exceed_count
    mntr command now returns:
    zk_version	3.6.0-SNAPSHOT-13c9f899ff62be6a2eacb28e522d06703f1dab08, built on 04/04/2018
12:09 GMT
    zk_avg_latency	0
    zk_max_latency	0
    zk_min_latency	0
    zk_packets_received	7
    zk_packets_sent	6
    zk_num_alive_connections	1
    zk_outstanding_requests	0
    zk_server_state	standalone
    zk_znode_count	5
    zk_watch_count	0
    zk_ephemerals_count	0
    zk_approximate_data_size	44
    zk_open_file_descriptor_count	61
    zk_max_file_descriptor_count	10240
    zk_fsync_threshold_exceed_count	0

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nkalmar/zookeeper ZOOKEEPER-3019

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #501
commit 8b575c879d45f28a34670bcb20cc4fd196dee008
Author: Norbert Kalmar <nkalmar@...>
Date:   2018-04-11T15:24:09Z

    ZOOKEEPER-3019 add metric to track slow fsyncs count + update py script and docs



View raw message