Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is there a way to get the status of all consumers inside a consumer group? #1674

Open
cris2123 opened this issue Apr 9, 2024 · 1 comment

Comments

@cris2123
Copy link

cris2123 commented Apr 9, 2024

Hi team, thanks for all your efforts with this library.

I'm opening a ticket because I couldn't find any relevant information in the documentation鈥攊f it's there, I apologize for the oversight 馃槄.

Essentially, I want to reset the offsets of a topic by a specific timestamp. The documentation mentions fetchTopicOffsetsByTimestamp and setOffsets. However, it has the following warning: "The consumer group must have no running instances when performing the reset". We can easily stop the consumer on our current instance, but is there a way to stop the rest of consumer instances in the consumer group? I was considering sending a disconnection event to a global topic, which would prompt all instances receiving this message to check for any active consumers within the same group. If others are active, just stop the current consumer; if none are active, it would stop and reset the offsets with the methods mentioned above. However, I can't find a way to get the information related to the consumers in a consumer group. Am I missing something, or is this functionality currently not supported?

@edeesis
Copy link

edeesis commented Apr 25, 2024

You can use the describeGroups Admin function to list the group members with their IPs and currently subscriptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants