Migrate query-scheduler from DNS-based to ring-based service discovery
The query-scheduler supports two service discovery mechanisms:
To migrate the query-scheduler from DNS-based to ring-based service discovery when your Mimir cluster is deployed using Jsonnet:
- Configure the query-scheduler instances to join a ring, but keep the querier and query-frontend instances discovering query-schedulers via DNS:
{ _config+:: { query_scheduler_service_discovery_mode: 'ring', query_scheduler_service_discovery_ring_read_path_enabled: false, } }
- Wait until query-scheduler changes have been applied.
- Open the query-scheduler ring status page and ensure all query-scheduler instances are registered to the ring.
- Configure query-frontend and querier instances to discover query-schedulers via the ring:
{ _config+:: { query_scheduler_service_discovery_mode: 'ring', query_scheduler_service_discovery_ring_read_path_enabled: true, } }