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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set -server.grpc.num-workers=100 by default #7131

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

colega
Copy link
Contributor

@colega colega commented Jan 15, 2024

What this PR does

This sets the -server.grpc.num-workers to 100 by default, and changes the category of that flag to advanced.

This is the value we've tested in Grafana Cloud for a while. We've observed an improvement of around 5% in ingester CPU compared to running without this flag set.

Note that this is not a limit, but the number of pre-allocated long-lived workers. When all workers are busy, a new goroutine will be spawned (previous default behaviour).

Which issue(s) this PR fixes or relates to

There was no public issue for this.

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

This sets the `-server.grpc.num-workers` to 100 by default, and changes
the category of that flag to `advanced`.

This is the value we've tested in Grafana Cloud for a while. We've
observed an improvement of around 5% in ingester CPU compared to running
without this flag set.

Note that this is not a limit, but the number of pre-allocated
long-lived workers. When all workers are busy, a new goroutine will be
spawned (previous default behaviour).

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
@colega colega marked this pull request as ready for review January 15, 2024 15:01
@colega colega requested review from a team as code owners January 15, 2024 15:01
@colega colega merged commit abeb610 into main Jan 15, 2024
28 checks passed
@colega colega deleted the default-server.grpc.num-workers=100 branch January 15, 2024 15:27
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

Successfully merging this pull request may close these issues.

None yet

2 participants