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

[Feature Request] Zone aware replication #7922

Closed
manohar-koukuntla opened this issue Dec 13, 2022 · 1 comment · Fixed by #7923
Closed

[Feature Request] Zone aware replication #7922

manohar-koukuntla opened this issue Dec 13, 2022 · 1 comment · Fixed by #7923

Comments

@manohar-koukuntla
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When a Loki cluster grows and grows the chances increase that the data lands in the same zone. To mitigate this it would be great to have zone aware replication like Mimir.

Describe the solution you'd like
Zone aware replication feature enabled for loki so that we are certain the data is replicated in different zones and by doing this making it more reliable.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@periklis
Copy link
Collaborator

periklis commented Dec 13, 2022

Zone-Aware Replication is already supported in Loki as in Mimir. Both use the same code paths as previously Cortex. You need to append the labels to the according CLI flags:

  -boltdb.shipper.compactor.ring.instance-availability-zone string
        The availability zone where this instance is running. Required if zone-awareness is enabled.
  -boltdb.shipper.compactor.ring.zone-awareness-enabled
        True to enable zone-awareness and replicate blocks across different availability zones.
  -distributor.excluded-zones value
        Comma-separated list of zones to exclude from the ring. Instances in excluded zones will be filtered out from the ring.
  -distributor.zone-awareness-enabled
        True to enable the zone-awareness and replicate ingested samples across different availability zones.
  -index-gateway.ring.instance-availability-zone string
        The availability zone where this instance is running. Required if zone-awareness is enabled.
  -index-gateway.ring.zone-awareness-enabled
        True to enable zone-awareness and replicate blocks across different availability zones.
  -ingester.availability-zone string
        The availability zone where this instance is running.
  -query-scheduler.ring.instance-availability-zone string
        The availability zone where this instance is running. Required if zone-awareness is enabled.
  -query-scheduler.ring.zone-awareness-enabled
        True to enable zone-awareness and replicate blocks across different availability zones.

Same docs apply here: https://cortexmetrics.io/docs/guides/zone-aware-replication/

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 a pull request may close this issue.

2 participants