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
Starting from Valkey 8.1, Valkey server provides the `availability-zone` information for clients to know where the server is located.
523
523
For using this information to route requests to the replica located in the same availability zone,
524
-
set the `EnableReplicaAZInfo` option and your `ReadNodeSelector` function. Rueidis provides the following helpers:
524
+
set the `EnableReplicaAZInfo` option and your `ReadNodeSelector` function with helpers:
525
+
525
526
-**PreferReplicaNodeSelector**: Prioritizes reading from any replica. Fallback to primary if no replicas are available.
526
527
-**AZAffinityNodeSelector**: Prioritizes reading from replicas in the same availability zone, then any replica. Fallback to primary.
527
528
-**AZAffinityReplicasAndPrimaryNodeSelector**: Prioritizes reading from replicas in the same availability zone, then primary in the same availability zone, then any replica. Fallback to primary.
528
-
-**AZAffinityReplicaSelector**: A helper specifically for `ClientOption.ReplicaSelector`. Prioritizes replicas in the same availability zone.
0 commit comments