<@U078Y59KC3B> `pulsar_subscription_msg_drop_rate`...
# ask-ai
s
@RunLLM
pulsar_subscription_msg_drop_rate
is the metric for "The rate of messages dropped on this subscription (message per second)". When and why would messages be dropped?
r
Messages are dropped on a subscription when, for non-persistent topics, there are no consumers available for message delivery. In this case, the broker drops messages instead of retaining them, and the
pulsar_subscription_msg_drop_rate
metric tracks the rate at which this occurs (messages per second) according to NonPersistentSubscriptionStats.java and NonPersistentSubscriptionStatsImpl.java. This behavior is specific to non-persistent topics, as persistent topics retain messages until they are acknowledged or expire. For non-persistent topics, if no consumer is connected, messages are not stored and are immediately dropped, which is reflected in the
msgDropRate
metric. Would you like more detail on how to monitor or interpret this metric? Sources: - NonPersistentSubscriptionStats.java - NonPersistentSubscriptionStatsImpl.java 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.