You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rediscluster/cluster.go
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,8 @@ type Opts struct {
108
108
RoundRobinSeedRoundRobinSeed
109
109
// LatencyOrientedRR - when MasterAndSlaves is used, prefer hosts with lower latency (has lower priority than WeightProvider)
110
110
LatencyOrientedRRbool
111
+
// ForceMinLatencyReplica - when LatencyOrientedRR is used forces min latency replica instead of using `weight[i] = sum(ping_latency[i]) / ping_latency[i]` algorithm
112
+
ForceMinLatencyReplicabool
111
113
// WeightProvider - enables to explicitly set weights of replicas (has higher priority than LatencyOrientedRR)
0 commit comments