Skip to content

Conversation

@rfratto
Copy link
Member

@rfratto rfratto commented Nov 11, 2025

Previously, workers used github.com/grafana/dskit/grpcutil for scheduler discovery. This was an older package which, through how we used it, didn't permit SRV lookups.

Other code within Loki instead uses the dns package from dskit for discovery. This package has better support for SRV lookups and supports flags like dnssrvnoa+ for forcing a SRV lookup with no A records.

This commit updates workers to use this package instead.

As part of this change, the test code has been updated to use testing/synctest for more easy and reliably testing of the background discovery process.

Previously, workers used github.com/grafana/dskit/grpcutil for scheduler
discovery. This was an older package which, through how we used it,
didn't permit SRV lookups.

Other code within Loki instead uses the dns package from dskit for
discovery. This package has better support for SRV lookups and supports
flags like `dnssrvnoa+` for forcing a SRV lookup with no A records.

This commit updates workers to use this package instead.

As part of this change, the test code has been updated to use
testing/synctest for more easy and reliably testing of the background
discovery process.

Signed-off-by: Robert Fratto <[email protected]>
@rfratto rfratto requested a review from a team as a code owner November 11, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants