View a markdown version of this page

Variables, character sets, and statements the routing layer answers - Amazon Aurora

Variables, character sets, and statements the routing layer answers

The routing layer of a database cluster group for Aurora keeps one session for each client connection. It reads a few session variables of its own, holds or forwards your other settings, and answers some statements from its own state. A direct connection to a member cluster behaves like a connection to a standalone Aurora DB cluster, so the topics in this section apply to sessions at the routing endpoint.

Where the routing layer answers a variable or statement

For a session at the routing endpoint, the routing layer answers some reads and settings, and a member cluster answers others. A session pinned to a member cluster passes its statements through to that member cluster, so reads in a pinned session return the member cluster's answers. For more information, see Session pinning.

The following table shows what answers each kind of read or setting in an unpinned session at the routing endpoint.

Kind Aurora MySQL Topic
Routing layer session variables, such as router_cluster_pin The routing layer. They aren't member cluster parameters Routing layer session variables
Session settings that you set with SET The routing layer buffers them and replays them on each member session Supported system variables
Table-less reads of a setting The routing layer, from the session state that it tracks: SELECT @@variable and SHOW VARIABLES Supported system variables, Statements the routing layer answers itself
Status and statistics reads Each member cluster. At the routing endpoint, SHOW STATUS returns no rows, and other server-wide reads return an error Status variables
SHOW, KILL, and catalog reads The routing layer, for a fixed set of statements Statements the routing layer answers itself
Connection character set and encoding The utf8mb4 character set family only Character sets and collations