Q. I’m trying to monitor the replication status of a Tarantool server and need some clarifications on a couple of replication statuses. The way I see it, they mean the following:
follow - replication is in progress, no issues,
off - this server is a master and no replication is configured for it,
stopped - ?,
connecting - establishing connection to the master,
auth - waiting for authentication from the master,
disconnected - ?
Do I get their meaning right? Also, can you explain when I may encounter
disconnected? I can’t catch them without knowing when to expect them. (2017)
A. Check the documentation for
box.info.replication: https://tarantool.org/en/doc/1.7/book/box/box_info.html - it describes what each status means and when you may expect to see it.
As for status monitoring, here’s how you can do it: https://github.com/tarantool/cloud/blob/master/docker/tarantool-cloud-tarantool/tarantool_replication.sh. Basically, this script connects to a Tarantool instance via console and checks if the replication status is
You may also want to track the replication lag.