MySQL Shell 9.2

7.8 Routing Guidelines

Routing Guidelines control MySQL Router's routing behavior, using rules defining the destinations of incoming client sessions.

Routing Guidelines enable the following:

Routing Guidelines consist of two components, destination classes and routes. Destination classes group MySQL topology members using expressions. Routes are defined by expressions matching incoming client sessions and a list of destination classes, forming a pool of candidate MySQL servers to route them to.

Clients can be classified according to attributes such as source IP address, default schema, router port, or session connection attributes including client name, operating system, and so on.

MySQL Router continually monitors the topology. If the topology changes, servers are reclassified, client sessions are reevaluated, and invalid connections are disconnected.

Routing Guidelines can be defined at the topology-level, where they apply to all connected routers, or can be defined per-router.