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.
This commit is contained in:
Markus Mäkelä 2018-05-21 12:19:56 +03:00
parent bced61c6d8
commit e7fd8ac6cb
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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.