Skip to content

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

Merged
joe-elliott merged 4 commits into
grafana: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 into
grafana:mainfrom
joe-elliott:ingester-cleanup

Conversation

@joe-elliott

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

Copy link
Copy Markdown
Collaborator

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 Dec 20, 2024
@joe-elliott
joe-elliott merged commit 472a16a into grafana:main Jan 2, 2025
mattdurham pushed a commit to mattdurham/tempo that referenced this pull request Jun 18, 2026
…a#4484)

* cleanup

Signed-off-by: Joe Elliott <number101010@gmail.com>

* changelog

Signed-off-by: Joe Elliott <number101010@gmail.com>

* remove shutdown change

Signed-off-by: Joe Elliott <number101010@gmail.com>

* remove space

Signed-off-by: Joe Elliott <number101010@gmail.com>

---------

Signed-off-by: Joe Elliott <number101010@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants