Skip to content

Key_Shared consumer scale behavior with a partitioned topic #22912

Answered by lhotari
niriven asked this question in Q&A
Discussion options

You must be logged in to vote

It's pretty much possible that everything is working as expected. Investigating this is also a learning journey for myself.

I assume when I ack all of the key-0 messages it will re-balance appropriately?

If this wouldn't happen, then this would be a bug.

The downside of Key_Shared subscriptions is the limited observability of the subscriptions. It might be hard to detect that delivery is paused because there are too many unacknowledged messages.

There are some tools. partitioned-stats and partitioned-stats-internal create a JSON file with some useful information:

pulsar-admin topics partitioned-stats -etb --per-partition persistent://public/default/my-topic > stats.json
pulsar-admin top…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@niriven
Comment options

@lhotari
Comment options

@lhotari
Comment options

Answer selected by niriven
@niriven
Comment options

@lhotari
Comment options

@lhotari
Comment options

@lhotari
Comment options

Comment options

You must be logged in to vote
1 reply
@lhotari
Comment options

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