diff --git a/Documentation/Routers/ReadWriteSplit.md b/Documentation/Routers/ReadWriteSplit.md index e29481d75..055918f05 100644 --- a/Documentation/Routers/ReadWriteSplit.md +++ b/Documentation/Routers/ReadWriteSplit.md @@ -59,6 +59,8 @@ passwd= ### `max_slave_replication_lag` **`max_slave_replication_lag`** specifies how many seconds a slave is allowed to be behind the master. If the lag is bigger than configured value a slave can't be used for routing. +This feature is disabled by default. + max_slave_replication_lag= This applies to Master/Slave replication with MySQL monitor and `detect_replication_lag=1` options set. @@ -69,7 +71,9 @@ Please note max_slave_replication_lag must be greater than monitor interval. **`use_sql_variables_in`** specifies where should queries, which read session variable, be routed. The syntax for `use_sql_variable_in` is: - use_sql_variables_in=[master|all] (default: all) + use_sql_variables_in=[master|all] + +The default is to use SQL variables in all servers. When value all is used, queries reading session variables can be routed to any available slave (depending on selection criteria). Note, that queries modifying session variables are routed to all backend servers by default, excluding write queries with embedded session variable modifications, such as: @@ -85,6 +89,8 @@ server definitions and it should exist in all the servers used by this router. For more information, see the description of the `weightby` parameter in the [Configuration Guide](../Getting-Started/Configuration-Guide.md). +No weighting is used by default. + ## Router options **`router_options`** may include multiple **readwritesplit**-specific options. All the options are parameter-value pairs. All parameters listed in this section must be configured as a value in `router_options`. @@ -97,7 +103,7 @@ router_options=