proxy_route_policy specifies the routing strategy for weak-consistency read requests in OceanBase Database Proxy (ODP), which defines the backend server to which client requests are routed for processing.
Note
The
TARGET_REPLICA_TYPE_WITH_LEADER,TARGET_REPLICA_TYPE_FOLLOWER_FIRST,TARGET_REPLICA_TYPE_FOLLOWER_ONLY, andWEAKREAD_WEIGHT_LOAD_BALANCEvalues are added in ODP V4.3.2.The parameter value is case-insensitive.
If you specify a value beyond the value range, the setting can be successful but does not take effect. In this case, ODP uses the default routing strategy for weak-consistency read requests.
Attribute |
Description |
|---|---|
| Parameter type | String |
| Default value | '', which indicates an empty string |
| Value range |
|
| Effective upon ODP restart | No |
Notice
When route_target_replica_type is set to ColumnStore, ODP routes read requests only to columnstore replicas instead of the leader.
