From c041599fb86f8a4562ab8fd076afeaa32d4f8af4 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Fri, 6 Feb 2015 16:59:39 +0100 Subject: [PATCH] Added max_slave_replication_lag constraint Added max_slave_replication_lag constraint --- Documentation/Getting-Started/Configuration-Guide.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/Getting-Started/Configuration-Guide.md b/Documentation/Getting-Started/Configuration-Guide.md index 943f8f0d6..8ff9eeb3b 100644 --- a/Documentation/Getting-Started/Configuration-Guide.md +++ b/Documentation/Getting-Started/Configuration-Guide.md @@ -398,7 +398,7 @@ The monitor_interval parameter sets the sampling interval in milliseconds for ea This options if set to 1 will allow MySQL monitor to collect the replication lag among all configured slaves by checking the content of `maxscale_schema.replication_heartbeat` table. The master server writes in and slaves fetch a UNIX timestamp from that there. -This timestamp is updated in each node server struct and it's used to calculate the replication lag. +This timestamp, evaluated in seconds, is updated in each node server struct and it's used to calculate the replication lag. That value is also used by the Read / Write split module via `max_slave_replication_lag` and `LEAST_BEHIND_MASTER` options. @@ -715,7 +715,8 @@ passwd= max_slave_replication_lag= -This applies to Master/Slave replication with MySQL monitor and `detect_replication_lag=1` options set +This applies to Master/Slave replication with MySQL monitor and `detect_replication_lag=1` options set. +Please note max_slave_replication_lag must be greater than monitor interval. `router_options` may include multiple **readwritesplit**-specific options. Values are either singular or parameter-value pairs. Currently available is a single option which specifies the criteria used in slave selection both in initialization of router session and per each query. Note that due to the current monitor implementation, the value specified here should be ** + 1.