forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pulsar-broker] capture managed-ledger add-latency (apache#4419)
### Motivation With apache#4290 , now broker has capability to capture e2e publish latency since publish-request arrives till it completes. now, we can capture bk-client latency to find out exact break down for broker to bookie latency. Right now broker does capture ml-add latency but ml-add-latency starts timer as soon as add-ops inserted into queue which also adds waiting time at the queue and doesn't give correct broker to bookie latency. ### Modification To capture broker to bookie latency: start ml-add-ops latency timer when bk-add entry request initiates. ### Result with this change: broker is able to provide bookie-persistent latency. It will add additional metrics: `brk_ml_LedgerAddEntryLatencyBuckets` ``` "brk_ml_AddEntryErrors": 0.0, "brk_ml_AddEntryLatencyBuckets_0.0_0.5": 0.0, "brk_ml_AddEntryLatencyBuckets_0.5_1.0": 0.0, "brk_ml_AddEntryLatencyBuckets_1.0_5.0": 0.0, "brk_ml_AddEntryLatencyBuckets_10.0_20.0": 0.0, "brk_ml_AddEntryLatencyBuckets_100.0_200.0": 0.0, "brk_ml_AddEntryLatencyBuckets_20.0_50.0": 0.0, "brk_ml_AddEntryLatencyBuckets_200.0_1000.0": 0.0, "brk_ml_AddEntryLatencyBuckets_5.0_10.0": 0.0, "brk_ml_AddEntryLatencyBuckets_50.0_100.0": 0.0, "brk_ml_AddEntryLatencyBuckets_OVERFLOW": 0.0, "brk_ml_AddEntryMessagesRate": 0.0, "brk_ml_AddEntrySucceed": 0.0, "brk_ml_EntrySizeBuckets_0.0_128.0": 0.0, "brk_ml_EntrySizeBuckets_1024.0_2084.0": 0.0, "brk_ml_EntrySizeBuckets_102400.0_1232896.0": 0.0, "brk_ml_EntrySizeBuckets_128.0_512.0": 0.0, "brk_ml_EntrySizeBuckets_16384.0_102400.0": 0.0, "brk_ml_EntrySizeBuckets_2084.0_4096.0": 0.0, "brk_ml_EntrySizeBuckets_4096.0_16384.0": 0.0, "brk_ml_EntrySizeBuckets_512.0_1024.0": 0.0, "brk_ml_EntrySizeBuckets_OVERFLOW": 0.0, "brk_ml_LedgerAddEntryLatencyBuckets_0.0_0.5": 0.0, "brk_ml_LedgerAddEntryLatencyBuckets_0.5_1.0": 0.0, "brk_ml_LedgerAddEntryLatencyBuckets_1.0_5.0": 0.0, "brk_ml_LedgerAddEntryLatencyBuckets_10.0_20.0": 0.0, "brk_ml_LedgerAddEntryLatencyBuckets_100.0_200.0": 0.0, "brk_ml_LedgerAddEntryLatencyBuckets_20.0_50.0": 0.0, "brk_ml_LedgerAddEntryLatencyBuckets_200.0_1000.0": 0.0, "brk_ml_LedgerAddEntryLatencyBuckets_5.0_10.0": 0.0, "brk_ml_LedgerAddEntryLatencyBuckets_50.0_100.0": 0.0, "brk_ml_LedgerAddEntryLatencyBuckets_OVERFLOW": 0.0, ```
- Loading branch information
Showing
8 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters