Skip to content

Remove pool goroutines from all components that don't need it#4484

Merged
joe-elliott merged 4 commits intografana:mainfrom
joe-elliott:ingester-cleanup
Jan 2, 2025
Merged

Remove pool goroutines from all components that don't need it#4484
joe-elliott merged 4 commits intografana:mainfrom
joe-elliott:ingester-cleanup

Conversation

@joe-elliott
Copy link
Copy Markdown
Collaborator

@joe-elliott joe-elliott commented Dec 20, 2024

What this PR does:
A few improvements that I wanted to keep out of #4483

  • Set pool workers and queue len to 0 in all components that are not queriers. This just spins up dead goroutines for no reason.

image

  • Complete all inflight jobs on ingester shutdown but refuse to do any new jobs. This should improve shutdown/restart time.

Checklist

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

Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
@joe-elliott
Copy link
Copy Markdown
Collaborator Author

Removed change to shutdown b/c a rollout was showing no improvement.

@joe-elliott joe-elliott changed the title Ingester improvements Remove pool goroutines from all components that don't need it Dec 20, 2024
@joe-elliott joe-elliott merged commit 472a16a into grafana:main Jan 2, 2025
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.

3 participants