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. For example:
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.
527
+
-**AZAffinityNodeSelector**: Prioritizes reading from replicas in the same availability zone, then any replica. Fallback to primary.
528
+
-**AZAffinityReplicasAndPrimaryNodeSelector**: Prioritizes reading from replicas in the same availability zone, then primary in the same availability zone, then any replica. Fallback to primary.
0 commit comments