From e7fd8ac6cb3ac2d5f9ac8abc4a8da7705622b270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 21 May 2018 12:19:56 +0300 Subject: [PATCH] Document stopping procedure for avrorouter The safest way to stop the avrorouter is to stop replication and wait for the conversion to halt. This was not previously documented and needs to be mentioned in the router documentation. --- Documentation/Routers/Avrorouter.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/Routers/Avrorouter.md b/Documentation/Routers/Avrorouter.md index aa51b884d..311cf255e 100644 --- a/Documentation/Routers/Avrorouter.md +++ b/Documentation/Routers/Avrorouter.md @@ -225,6 +225,18 @@ were used, they need to be recreated once MaxScale is stopped. After stopping MaxScale and optionally creating the schema files, the conversion process can be started by starting MaxScale. +# Stopping the Avrorouter + +The safest way to stop the avrorouter when used with the binlogrouter is to +follow the following steps: + +* Issue `STOP SLAVE` on the binlogrouter +* Wait for the avrorouter to process all files +* Stop MaxScale with `systemctl stop maxscale` + +This guarantees that the conversion process halts at a known good position in +the latest binlog file. + # Example Client The avrorouter comes with an example client program, _cdc.py_, written in Python 3.