-
-
Notifications
You must be signed in to change notification settings - Fork 62
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snuba-subscription-consumer-events doesn't process events #6029
Comments
Same problem |
can you be more precise? you are mentioning three different topics in one bugreport, and one of them ( |
not sure that it was a direct result of scaling up |
how many partitions does each topic have? I remember some issues where |
|
Are you saying that snuba is not consuming any events? Or are you saying that the commit log topic isn't being consumed? Or both? If snuba is not consuming events, then no messages will be published to the commit log. The commit log is a topic that records progress of the snuba event consumer for alerting purposes. Additionally, the subscription scheduler consumer (which consumes the commit log) waits for a message on every partition in the parent topic (snuba events) before advancing. So if your volume is low and you aren't receiving errors on all 20 partitions, then that consumer will never move forward. |
@onewland I have lags on topics above, it means that there is data, but no one process this messages and |
Errors (which use the events topic) are partitioned by project_id. The subscriptions system which powers alerting will only advance the observed system time if messages are received on all partitions with sufficient timestamps (one of the design goals of the system is to be able to distinguish between data not yet ingested and empty time regions). My guess is that you don't have incoming traffic on all topics, and therefore the subscription system will never schedule subscriptions (consuming the commit log topic) because it cannot with confidence determine that it is "caught up" on all ingestion. To test this hypothesis, try running this command on your Kafka broker:
replacing I think you probably only want one or two partitions on errors and snuba-events for this to function properly (unless you have a lot of projects that regularly receive error events). |
Closing this issue based on the @onewland's comment above. It does not look like a product issue. |
Environment
snuba-
Steps to Reproduce
not sure how to reproduce it, but I increased partitions in
ingest-events
topic.I had a problem with
KeyError
which was fixed by adding this in config:TOPIC_PARTITION_COUNTS = { "ingest-events": 20, "events": 20, // didn't increase partitions in this topic, but see that it scaled to ingest-events partition amount }
and now it's not crashing, I tried to enable debug logs, but don't see any activity in service and according on Kafka Lag it doesn't do anything, I have lag on
snuba-commit-log
topic and also onevents
insnuba-events-subscriptions-consumers
group. Right now I have no any errors or so, butevents
topic doesn't have consumers andsnuba-commit-log
does, but lag is increasing on both topics.Expected Result
Have no any lags on topics and events processing
Actual Result
Have lags on
events
andsnuba-commit-log
topics insnuba-events-subscriptions-consumers
groupThe text was updated successfully, but these errors were encountered: