-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
receive: Add per-each-write limit to the allowed number of samples #3963
Conversation
…t Thanos receive component Signed-off-by: spaparaju <[email protected]>
Signed-off-by: spaparaju <[email protected]>
CHANGELOG.md
Outdated
@@ -15,6 +15,7 @@ We use _breaking :warning:_ to mark changes that are not backward compatible (re | |||
### Added | |||
- [#3903](https://github.com/thanos-io/thanos/pull/3903) Store: Returning custom grpc code when reaching series/chunk limits. | |||
- [3919](https://github.com/thanos-io/thanos/pull/3919) Allow to disable automatically setting CORS headers using `--web.disable-cors` flag in each component that exposes an API. | |||
- [3963](https://github.com/thanos-io/thanos/pull/3963) add per-each-write limit to the allowed number of samples. |
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.
- [3963](https://github.com/thanos-io/thanos/pull/3963) add per-each-write limit to the allowed number of samples. | |
- [3963](https://github.com/thanos-io/thanos/pull/3963) Receive: Add per-each-write limit to the allowed number of samples. (Default: 5000) |
Signed-off-by: spaparaju <[email protected]>
15219a3
to
3ab5cc6
Compare
The default seems rather low. Remote write will soon be based on commits by Prometheus, which means that entire scrapes will be sent within one remote write request. Especially in Kubernetes land it's quite common to have 100k series per scrape (eg. apiserver and kube-state-metrics). I wonder, is the amount of samples of a single request really the concern? Wouldn't limiting the number of active series be the better protection mechanism? Or samples per second over a window? Regardless of the strategy I would also expect this to be a per-tenant configuration. (although I guess starting with a default would be ok) |
Signed-off-by: spaparaj <[email protected]>
@spaparaju any thoughts on @brancz's idea? To make this per-tenant, should we have the limit be specified in the hashring configurations? |
|
Signed-off-by: spaparaju <[email protected]>
Signed-off-by: SriKrishna Paparaju <[email protected]>
Signed-off-by: SriKrishna Paparaju <[email protected]>
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Fix for #3964
Changes
Verification
Verified with unit tests at pkg/receive/handler_test.go