To perform maintenance on a single slave, you should ensure that your application is not using the slave, perform the necessary maintenance, and then re-enable the slave within your application.
The steps are:
Put the replicator into the offline state to prevent replication and changes being applied to the database:
trepctl -host host1 offline
To perform operating system maintenance, including rebooting the system, the replicator can be stopped completely:
Perform the required maintenance, including updating the operating system, software or hardware changes.
Validate the server configuration:
Put the replicator back online:
trepctl -host host1 online
Or if you have stopped the replicator, restart the service again:
Once the datasource is back online, monitor the status of the service and ensure that the replicator has started up and that transactions are being extracted or applied.