From d49173ba71f01d25316c8f285ae28c707527e621 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Wed, 3 Oct 2018 13:57:55 +0300 Subject: [PATCH] Update Hint-Syntax document --- Documentation/Reference/Hint-Syntax.md | 9 +++++---- .../Release-Notes/MaxScale-2.3.0-Release-Notes.md | 5 +++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Documentation/Reference/Hint-Syntax.md b/Documentation/Reference/Hint-Syntax.md index e8b942807..aee494fd7 100644 --- a/Documentation/Reference/Hint-Syntax.md +++ b/Documentation/Reference/Hint-Syntax.md @@ -2,8 +2,8 @@ ## Enabling routing hints -To enable routing hints for a service, the hintfilter module needs to be -configured and the filter needs to be applied to the service. +To enable user specified routing hints for a service, the hintfilter module +needs to be configured and the filter needs to be applied to the service. Here is an example service which has the hint filter configured and applied. @@ -51,7 +51,7 @@ name-value pairs. These hints will instruct the router to route a query to a certain type of a server. ``` --- maxscale route to [master | slave | server ] +-- maxscale route to [master | slave | server | last] ``` A `master` value in a routing hint will route the query to a master @@ -59,7 +59,8 @@ server. This can be used to direct read queries to a master server for a up-to-date result with no replication lag. A `slave` value will route the query to a slave server. A `server` value will route the query to a named server. The value of needs to be the same as the server -section name in maxscale.cnf. +section name in maxscale.cnf. A `last` value will route the query to the +same server the previous query was routed to. ### Name-value hints diff --git a/Documentation/Release-Notes/MaxScale-2.3.0-Release-Notes.md b/Documentation/Release-Notes/MaxScale-2.3.0-Release-Notes.md index d942a5fa7..8c6854488 100644 --- a/Documentation/Release-Notes/MaxScale-2.3.0-Release-Notes.md +++ b/Documentation/Release-Notes/MaxScale-2.3.0-Release-Notes.md @@ -147,6 +147,11 @@ The CDC protocol no longer accepts the `QUERY-LAST-TRANSACTION` and `QUERY-TRANSACTION` commands. They were removed due to the addition of the REST API that provides the same information in a more easy to process format. +### Hints + +There is now a new hint `last` that will cause a query to be routed to the +same server the previous query was routed to. + ## New Features ### Query Classifier Cache