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

Jsonnet: Add support to deploy distributors in multi availability zones #9548

Merged
merged 8 commits into from
Oct 8, 2024

Conversation

duricanikolic
Copy link
Contributor

What this PR does

This PR adds support to deploy distributors in multi availability zones.

Which issue(s) this PR fixes or relates to

Fixes #

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.

@duricanikolic duricanikolic added the sigyn naming for the kafka-based Mimir architecture while it's still WIP label Oct 7, 2024
@duricanikolic duricanikolic self-assigned this Oct 7, 2024
@duricanikolic duricanikolic requested a review from a team as a code owner October 7, 2024 21:57
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Thanks for working on this! I left few comments.

CHANGELOG.md Outdated Show resolved Hide resolved
operations/mimir/multi-zone-distributor.libsonnet Outdated Show resolved Hide resolved
operations/mimir-tests/test-multi-zone-distributor.jsonnet Outdated Show resolved Hide resolved
operations/mimir-tests/test-multi-zone-distributor.jsonnet Outdated Show resolved Hide resolved
operations/mimir/multi-zone-distributor.libsonnet Outdated Show resolved Hide resolved
operations/mimir/multi-zone-distributor.libsonnet Outdated Show resolved Hide resolved
operations/mimir/multi-zone-distributor.libsonnet Outdated Show resolved Hide resolved
Signed-off-by: Yuri Nikolic <[email protected]>
@duricanikolic duricanikolic requested a review from pracucci October 8, 2024 10:28
multi_zone_distributor_enabled: true,
multi_zone_distributor_availability_zones: availabilityZones,

autoscaling_distributor_enabled: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note to reviewers:
I have added autoscaling here in order to test autoscaling combined with multi-AZ, because we otherwise don't test it anywhere else.

Copy link
Member

@pstibrany pstibrany Oct 8, 2024

Choose a reason for hiding this comment

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

Can we create a copy of this file instead, and leave the original unmodified? This file is imported by many other files (eg. ones to show migration steps), but we don't want to change them all.

Copy link
Collaborator

Choose a reason for hiding this comment

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

we don't want to change them all

Why not? This is the base test used for multi-zone setups. Why not enabling distributor too?

Copy link
Member

Choose a reason for hiding this comment

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

I see what you mean, it's just that this file is used as a base for our migration procedure to ingest-storage, and nobody is running with multi-zone distributors today.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed in a Slack thread, we decided to move distributor-related part in test-multi-zone-distributor.jsonnet.

Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

There's just the pod_regex to fix and then it should be good to go.

operations/mimir/autoscaling.libsonnet Show resolved Hide resolved
operations/mimir/autoscaling.libsonnet Outdated Show resolved Hide resolved
Signed-off-by: Yuri Nikolic <[email protected]>
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM

@duricanikolic duricanikolic merged commit 62a5476 into main Oct 8, 2024
29 checks passed
@duricanikolic duricanikolic deleted the yuri/upstream-mimir-multizone-distributor branch October 8, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sigyn naming for the kafka-based Mimir architecture while it's still WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants