You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Dong Lin (JIRA)" <ji...@apache.org> on 2015/06/17 00:58:00 UTC

[jira] [Created] (KAFKA-2280) Measurement of bytesInRate and bytesOutRate in BrokerTopicMetrics should be consistent

Dong Lin created KAFKA-2280:
-------------------------------

             Summary: Measurement of bytesInRate and bytesOutRate in BrokerTopicMetrics should be consistent
                 Key: KAFKA-2280
                 URL: https://issues.apache.org/jira/browse/KAFKA-2280
             Project: Kafka
          Issue Type: Bug
            Reporter: Dong Lin


There is inconsistency in the way bytesInRate and bytesOutRate is measured in Kafka -- when the follower fetches bytes from the leader, the leader's bytesOutRate is increased but follower's bytesInRate is not.

Ideally we should disambiguate between the two (i.e., replication traffic and
client traffic). But doing that changes the API in the sense that other applications (e.g. iGraph) will need to read from different metric names. For example, we will need to remove bytesInRate and bytesOutRate, and add clientBytesInRate, clientBytesOutRate, replicationBytesInRate, and replicationBytesOutRate.

The easiest solution is to include replication traffic in BrokerTopicMetrics.bytesInRate. It is probably consistent with what users will expect from bytesInRate. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)