Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pulsar-broker] configure maxMsgReplDelayInSeconds for each repl-cluster #8409

Merged
merged 1 commit into from
Oct 31, 2020

Conversation

rdhabalia
Copy link
Contributor

Motivation

maxMsgReplDelayInSeconds is useful metrics for replicator n/w monitoring and we should have it in namespace-metrics for each colo. We have added max delay across all replication-clusters in #2983 but it will be more useful and make-sense to add at each colo for monitoring purpose.

Result

After fix it should appear in namespace-replicator stats

./pulsar-admin broker-stats monitoring-metrics -i

{
    "metrics": {
        "brk_max_replication_delay_second": 0.0,
        "brk_repl_is_connected": 1,
        "brk_repl_out_rate": 0.03857322653872893,
        "brk_repl_out_tp_rate": 0.23143935923237358,
        "brk_replication_backlog": 0.0
    },
    "dimensions": {
        "from_cluster": "r1",
        "namespace": "pulsar/ns",
        "to_cluster": "r3"
    }
}

@rdhabalia
Copy link
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui codelipenghui added this to the 2.7.0 milestone Oct 31, 2020
@codelipenghui codelipenghui merged commit bf17c93 into apache:master Oct 31, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
…che#8409)

### Motivation
`maxMsgReplDelayInSeconds` is useful metrics for replicator n/w monitoring and we should have it in namespace-metrics for each colo. We have added max delay across all replication-clusters in apache#2983 but it will be more useful and make-sense to add at each colo for monitoring purpose.

### Result
After fix it should appear in namespace-replicator stats
```
./pulsar-admin broker-stats monitoring-metrics -i

{
    "metrics": {
        "brk_max_replication_delay_second": 0.0,
        "brk_repl_is_connected": 1,
        "brk_repl_out_rate": 0.03857322653872893,
        "brk_repl_out_tp_rate": 0.23143935923237358,
        "brk_replication_backlog": 0.0
    },
    "dimensions": {
        "from_cluster": "r1",
        "namespace": "pulsar/ns",
        "to_cluster": "r3"
    }
}
```
flowchartsman pushed a commit to flowchartsman/pulsar that referenced this pull request Nov 17, 2020
…che#8409)

### Motivation
`maxMsgReplDelayInSeconds` is useful metrics for replicator n/w monitoring and we should have it in namespace-metrics for each colo. We have added max delay across all replication-clusters in apache#2983 but it will be more useful and make-sense to add at each colo for monitoring purpose.

### Result
After fix it should appear in namespace-replicator stats
```
./pulsar-admin broker-stats monitoring-metrics -i

{
    "metrics": {
        "brk_max_replication_delay_second": 0.0,
        "brk_repl_is_connected": 1,
        "brk_repl_out_rate": 0.03857322653872893,
        "brk_repl_out_tp_rate": 0.23143935923237358,
        "brk_replication_backlog": 0.0
    },
    "dimensions": {
        "from_cluster": "r1",
        "namespace": "pulsar/ns",
        "to_cluster": "r3"
    }
}
```
@rdhabalia rdhabalia deleted the repl_delay branch November 24, 2020 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants