You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feat] Add topic stats and metrics for observing message replay behavior and Key_Shared filtering/blocking behavior #23205
release/blockerIndicate the PR or issue that should block the release until it gets resolvedtype/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
However, this isn't currently exposed in the subscription stats.
This counter was added as part of Otel changes in #22693 .
There's also an ack counter that was added:
release/blockerIndicate the PR or issue that should block the release until it gets resolvedtype/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Activity
lhotari commentedon Aug 22, 2024
It seems that PIP-282 added some subscription stats in #21953 that improve observability of Key_Shared.
lhotari commentedon Aug 22, 2024
There's already a counter for message redelivery:
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Consumer.java
Lines 959 to 961 in 77b6378
However, this isn't currently exposed in the subscription stats.
This counter was added as part of Otel changes in #22693 .
There's also an ack counter that was added:
pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Consumer.java
Lines 955 to 957 in 77b6378
I think that it would be a non-breaking change to expose these in stats which wouldn't necessarily require a PIP.
lhotari commentedon Oct 4, 2024
PIP-379: Key_Shared Draining Hashes for Improved Message Ordering covers observability.
lhotari commentedon Oct 14, 2024
#23224 implemented
msgInReplay/pulsar_subscription_in_replay.lhotari commentedon Oct 14, 2024
#23429 adds observability for PIP-379 Key_Shared implementation.
drainingHashesCount,drainingHashesClearedTotal,drainingHashesUnackedMessagesanddrainingHasheslhotari commentedon Oct 14, 2024
Closing this as resolved with #23224 and #23429 in PIP-379 implementation.