-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore(blobby): penalize non-batched traffic for overflow detection #21607
Conversation
Seems likely related? |
@@ -597,7 +598,9 @@ describe.each([[true], [false]])('ingester with consumeOverflow=%p', (consumeOve | |||
describe( | |||
'overflow detection', | |||
consumeOverflow | |||
? () => {} // Skip these tests when running with consumeOverflow (it's disabled) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new eslint rule
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea!
I don't have a good fell for whether 1MB each is low or high, it sounds like you think it may not be high enough? If so that seems like a safer bet to start. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the |
This PR was closed due to lack of activity. Feel free to reopen if it's still relevant. |
@xvello I assume you saw this, but just in case. Or maybe it's left unmerged on purpose? |
Should be merged indeed, was not sure about the value to set though. |
Problem
Sessions from very old posthog-js versions can still slow down a partition without triggering overflow, because they emit one message per event, instead of batching them together.
Batching was implemented in PostHog/posthog-js#694, released as v1.68.2 in 2023. Default batching settings are a linger of 2 seconds, or a size of 900kib
Changes
OverflowManager
has a newminPerCall
property. Calls toobserve
consume at least this quantityDoes this work well for both Cloud and self-hosted?
How did you test this code?