WORKLOAD_ROUTING_RULES
Lists the routing rules that map workloads to a subcluster.
Lists the routing rules that map workloads to subclusters.
Column Name | Data Type | Description |
---|---|---|
OID |
INTEGER | The object identifier for the routing rule. |
WORKLOAD |
VARCHAR | The name of the workload. When specified by a client (either as a connection property or as a session parameter with SET SESSION WORKLOAD), the client's queries are executed by the subcluster specified by the workload routing rule. |
SUBCLUSTER_OID |
INTEGER | The object identifier for the Subcluster. |
SUBCLUSTER_NAME |
VARCHAR | The subcluster that contains the Execution node that executes client queries for its associated workload. |
Examples
The following query shows two rules that define the following behavior:
- Clients with workload
reporting
are routed to subclusterdefault_subcluster
. - Clients with workload
analytics
are randomly routed tosc_01
orsc_02
.