slave_selection_criteria

Overview

Criteria the router uses to select Replica Servers in load balancing read operations.

USAGE

DETAILS

In addition to splitting read and write operations between Primary and Replica Servers, the Read/Write Split router performs load balancing on the available Replica Servers. This module parameter sets the criteria used to select the Servers.

Enum values are case-sensitive.

For example, slave_selection_criteria=LEAST_CURRENT_OPERATIONS is correct while slave_selection_criteria=least_current_operations is not correct.

Criterion

Description

LEAST_GLOBAL_CONNECTIONS

Router selects the Replica Server with the least number of connections from MariaDB MaxScale.

LEAST_ROUTER_CONNECTIONS

Router selects the Replica Server with the least number of connections from this router service.

LEAST_BEHIND_MASTER

Router selects the Replica Server with the least replication lag.

LEAST_CURRENT_OPERATIONS

Router selects the Replica Server with the fewest active operations.

ADAPTIVE_ROUTING

Router selects the Replica Server based on average response times.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

24.02

  • Present starting in MariaDB MaxScale 24.02.0.

23.08

  • Present starting in MariaDB MaxScale 23.08.1.

23.02

  • Present starting in MariaDB MaxScale 23.02.1.

22.08

  • Present starting in MariaDB MaxScale 22.08.1.

6

  • Present starting in MariaDB MaxScale 6.0.0.

2.5

  • Present starting in MariaDB MaxScale 2.5.0.

2.4

  • Present starting in MariaDB MaxScale 2.4.0.

Release Series

History

24.02

  • Present starting in MariaDB MaxScale 24.02.0.

22.08

  • Present starting in MariaDB MaxScale 22.08.1.

EXTERNAL REFERENCES