Update Hint-Syntax document

This commit is contained in:
Johan Wikman
2018-10-03 13:57:55 +03:00
parent c41d43755b
commit d49173ba71
2 changed files with 10 additions and 4 deletions

View File

@ -2,8 +2,8 @@
## Enabling routing hints ## Enabling routing hints
To enable routing hints for a service, the hintfilter module needs to be To enable user specified routing hints for a service, the hintfilter module
configured and the filter needs to be applied to the service. 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. 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. These hints will instruct the router to route a query to a certain type of a server.
``` ```
-- maxscale route to [master | slave | server <server name>] -- maxscale route to [master | slave | server <server name> | last]
``` ```
A `master` value in a routing hint will route the query to a master 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 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 query to a slave server. A `server` value will route the query to a named
server. The value of <server name> needs to be the same as the server server. The value of <server name> 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 ### Name-value hints

View File

@ -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 `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. 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 ## New Features
### Query Classifier Cache ### Query Classifier Cache