-
Notifications
You must be signed in to change notification settings - Fork 93
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
ref(replays): increase chunking limit to 15MB #2032
Conversation
relay-server/src/actors/store.rs
Outdated
// Max message size is 1MB. | ||
let max_message_size = 1000 * 1000; | ||
// Max message size is 15MB. | ||
let max_message_size = 1000 * 150000; |
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.
Shouldn't this be:
let max_message_size = 1000 * 150000; | |
let max_message_size = 1000 * 15000; |
if you want to have 15mb?
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.
Could we also introduce the configuration option for this and not hardcode it?
08e0171
to
fb5fc3d
Compare
CHANGELOG.md
Outdated
@@ -47,6 +47,7 @@ Metrics: | |||
- Remove global service registry. ([#2022](https://github.com/getsentry/relay/pull/2022)) | |||
- Apply schema validation to all topics in local development. ([#2013](https://github.com/getsentry/relay/pull/2013)) | |||
- Lower default max compressed replay recording segment size to 10 MiB. ([#2031](https://github.com/getsentry/relay/pull/2031)) | |||
- Increase chunking limit to 15MB for replay recordings. ([#2032](https://github.com/getsentry/relay/pull/2032)) |
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.
Please, merge master in, and move this record to the Unreleased
section.
fb5fc3d
to
405b4b6
Compare
After merging getsentry/relay#2032, we've observed that we are no longer processing chunked messages (as intended). We can remove the logic for this as it is no longer used.
After merging #2032, we can confirm via our metrics that we no longer hit this logic, as we reject payloads over 10 MiB and set our chunking limit to 15 MiB. _#skip-changelog_ Co-authored-by: Tor <tor.saebjoernsen@sentry.io>
We were previously chunking kafka messages on the replay recording topic to 1 MiB. We are aiming to eliminate this chunking as it requires us to maintain a redis cluster / constrains us to in-order processing. Other infra at Sentry has successfully experimented with larger kafka messages, so we feel this is safe.
With #2031 this should pretty much mean we no longer chunk any messages. We can remove the chunking logic once this is confirmed after deploy.
We chose 15MiB as the limit, as we're eventually going to combine the replay event with the replay recording, and will want some extra headroom for this in addition to our 10 MiB recording limit.
Depends on ops increasing our kafka payload size limit first.