From a0007a1b2202834933684ebaa9d657b3b4e8c880 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Sun, 1 Mar 2015 02:27:47 +0200 Subject: [PATCH] Fix to bug 736: http://bugs.mariadb.com/show_bug.cgi?id=736 Added a cofigurable limit on the number of session commands the readwritesplit router stores. --- Getting-Started/Configuration-Guide.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Getting-Started/Configuration-Guide.md b/Getting-Started/Configuration-Guide.md index 726d02a25..d232a93b6 100644 --- a/Getting-Started/Configuration-Guide.md +++ b/Getting-Started/Configuration-Guide.md @@ -798,6 +798,12 @@ When value all is used, queries reading session variables can be routed to any a In above-mentioned case the user-defined variable would only be updated in the master where query would be routed due to `INSERT` statement. +`max_sescmd_history` sets a limit on how many session commands each session can execute before the connection is closed. The default is an unlimited number of session commands. + + max_sescmd_history=1500 + +When a limitation is set, it effectively creates a cap on the session's memory consumption. This might be useful if connection pooling is used and the sessions use large amounts of session commands. + An example of Read/Write Split router configuration : ```