[Mimir failover] Gitaly shard weight assigner
- Service impacted: https://gitlab.com/gitlab-com/gl-infra/gitaly-shard-weights-assigner
- Priority: High
- Details on how to migrate from Thanos to Mimir:
- Add relevant environment variables to be passed as headers in https://gitlab.com/gitlab-com/gl-infra/gitaly-shard-weights-assigner/-/blob/master/assigner.rb?ref_type=heads#L73-89, such as
MIMIR_URL
,MIMIR_API_USER
,MIMIR_API_PASSWORD
gitaly-shard-weights-assigner!23 (merged) - Create a new Mimir user https://ops.gitlab.net/gitlab-com/gl-infra/config-mgmt/-/merge_requests/8465
- Add the user as multi tenant user gitlab-com/gl-infra/k8s-workloads/gitlab-helmfiles!5047 (merged)
- Vault access in ops https://gitlab.com/gitlab-com/gl-infra/infra-mgmt/-/merge_requests/722
- The script runs as a scheduled pipeline in ops https://ops.gitlab.net/gitlab-com/gl-infra/gitaly-shard-weights-assigner/-/pipeline_schedules
- Add relevant environment variables to be passed as headers in https://gitlab.com/gitlab-com/gl-infra/gitaly-shard-weights-assigner/-/blob/master/assigner.rb?ref_type=heads#L73-89, such as
- CR issue: production#18055 (closed)
Edited by Gregorius Marco