add comment

This commit is contained in:
Max Kotliar
2026-05-12 20:29:05 +03:00
parent 89a86af39d
commit e55cb121e0

View File

@@ -507,6 +507,8 @@ func tryPush(at *auth.Token, wr *prompb.WriteRequest, forceDropSamplesOnFailure
//
// calculateHealthyRwctxIdx will rely on the order of rwctx to be in ascending order.
func getEligibleRemoteWriteCtxs(tss []prompb.TimeSeries, forceDropSamplesOnFailure bool) ([]*remoteWriteCtx, bool) {
// Always use all configured remote writes in order to preserve stable metrics distribution across shards.
// See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/10507
if *shardByURL {
return rwctxsGlobal, true
}