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

Add function to customize compactor statefulset #287

Merged
merged 2 commits into from
Apr 2, 2021

Conversation

pracucci
Copy link
Collaborator

@pracucci pracucci commented Apr 2, 2021

What this PR does:
We have an use case where we need a custom compactor deployment. Similarly to what we did with newIngesterStatefulSet() function, in this PR I'm proposing to add newCompactorStatefulSet() function to allow to create a 2nd statefulset for the compactor.

I've also updated the compactor dashboards to allow to customize the compactor job name, like we already do for other services (eg. see the ingester one).

Which issue(s) this PR fixes:
N/A

Checklist

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

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci requested a review from a team as a code owner April 2, 2021 07:51
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@@ -13,7 +13,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
$.containerMemoryWorkingSetPanel('Memory (workingset)', 'compactor'),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No change here because this function wants the container name not the job name (same for CPU panel). The container name doesn't change when you customize the statefulset.

Copy link
Contributor

@annanay25 annanay25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pracucci pracucci merged commit 5980441 into main Apr 2, 2021
@pracucci pracucci deleted the add-function-to-create-compactor-statefulset branch April 2, 2021 08:08
simonswine pushed a commit to grafana/mimir that referenced this pull request Oct 18, 2021
…on-to-create-compactor-statefulset

Add function to customize compactor statefulset
simonswine pushed a commit to grafana/mimir that referenced this pull request Dec 20, 2021
…on-to-create-compactor-statefulset

Add function to customize compactor statefulset
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.

2 participants