Skip to main content
In the router configuration, it is possible to specify multiple servers for one shard. Then the router will distribute read-only queries among the replicas. However, in addition to the automatic routing, you also have the option to explicitly define the destination for a specific query by using the target-session-attr parameter within the query. See Routing hints for more information.

Availability zone preferences

SPQR can prefer hosts in the router’s availability zone and fall back to other zones when no suitable local host is available. See Availability Zone Settings for configuration details and an example.