GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Shared subscription: backlog drains and partition ack rate spikes on one pod restart, but consumer ack/QPS stay flat (Pulsar 3.0.14) · apache/pulsar · Discussion #26971

Shared subscription: backlog drains and partition ack rate spikes on one pod restart, but consumer ack/QPS stay flat (Pulsar 3.0.14) #26971

Answered by lhotari
raushantutu asked this question in Q&A
Shared subscription: backlog drains and partition ack rate spikes on one pod restart, but consumer ack/QPS stay flat (Pulsar 3.0.14) #26971
@raushantutu raushantutu
Oct 17, 2026 · 1 comment
Answered by lhotari Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

raushantutu
Oct 17, 2026

Environment

Pulsar / client: 3.0.14
Subscription type: Shared
DeadLetterPolicy enabled with maxRedeliverCount, failures via negativeAcknowledge
Multiple consumers (pods) on the same subscription; partitioned topic

What we observed
On some partitions, backlog (lag), unacked messages, and redelivery rate climb and stay high for a long time.
During that sticky period:

  • Partition produce rate ≈ partition ack rate (no sustained produce−ack gap)
  • Application consumption / request rate stays roughly constant (tracks normal traffic, not the redelivery storm)
  • Consumer-side health looks fine: executor queue, threads, latency, app ack/nack rates look normal (nack stays low)

Then we restart one consumer pod (out of many). After that:

  • Backlog drains sharply (near zero)
  • Unacked drops only partially (e.g. ~80k → ~50k, not to ~0)
  • Redelivery rate collapses
  • Application consumption rate does not increase during the drain
  • Partition broker msg_ack_rate rises while lag is draining
  • Application ack rate does not rise in the same way (fleet and per-pod)
  • So broker partition ack/backlog move at restart time, but our consumer metrics do not show a matching ack/consume spike.

Questions

  • Who / what is draining the backlog in this scenario, if consumer QPS and app ack rate do not increase?
  • Who is generating the extra acks on that partition (broker msg_ack_rate), if they are not reflected in our consumer ack metrics?
  • Is this expected with Shared + ackTimeout / nack / consumer disconnect (e.g. cursor vs unacked accounting), or does it look like a known broker/client accounting issue on consumer remove/reconnect?

Happy to share metric graphs (backlog, unacked, redeliver, rate_out, broker ack vs app ack, consumer count) for the window.

Metrics:
1.) rate_in vs rate_out vs redeliver_rate vs ack rate on topic

Screenshot 2026-10-18 at 11 10 32 AM

mostly lag coming from partition-5 at this time.

2.) Ack rate by partition

Screenshot 2026-10-18 at 11 14 01 AM

During lag drain , we can see spike for only partition-5

3.) Unacked mssg for partition-5

Screenshot 2026-10-18 at 11 16 18 AM

4.) Backlog on partition-5
Screenshot 2026-10-18 at 11 18 57 AM

5.) pulsar_subscription_blocked_on_unacked_messages{subscription="$subscription", topic=~"$topic_regex"}
Screenshot 2026-10-18 at 11 20 28 AM

6.) Consumer fleet consume rate
Screenshot 2026-10-18 at 11 22 36 AM

No such increase in this graph during the period of lag drain

7.) consumer side [ ack vs request vs nack ]

Screenshot 2026-10-18 at 11 24 52 AM

No increase in ack rate from consumers also at that time

You must be logged in to vote
All reactions
Answered by lhotari Oct 18, 2026

Pulsar 3.0.x is no longer supported and doesn't get fixes. Please upgrade to a supported version (currently 4.0.x and 5.0.x).

View full answer

Replies: 1 comment

Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

lhotari
Oct 18, 2026
Collaborator

Pulsar 3.0.x is no longer supported and doesn't get fixes. Please upgrade to a supported version (currently 4.0.x and 5.0.x).

You must be logged in to vote
All reactions
0 replies
Answer selected by lhotari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
@raushantutu @lhotari
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.