Class FateLegacyJMXMetrics

  • All Implemented Interfaces:
    FateLegacyJMXMetricsMBean, Metrics

    public class FateLegacyJMXMetrics
    extends Object
    implements Metrics, FateLegacyJMXMetricsMBean
    Basic implementation of fate metrics that publish to JMX when legacy metrics enabled. For logging in addition to JMX, use the hadoop metrics2 implementation. The measurement type and values provided are:
    • gauge - current count of FATE transactions in progress
    • gauge - last zookeeper id that modified FATE root path to provide estimate of fate transaction liveliness
    • counter - the number of zookeeper connection errors since process started.
    Implementation notes:

    The fate operation estimate is based on zookeeper Stat structure and the property of pzxid. From the zookeeper developer's guide: pzxid is "The zxid of the change that last modified children of this znode." The pzxid should then change each time a FATE transaction is created or deleted - and the zookeeper id (zxid) is expected to continuously increase because the zookeeper id is used by zookeeper for ordering operations.