DEV Community

Arina Cholee
Arina Cholee

Posted on

How to Set Up Config Auto Sync

SafeLine version 7.x introduces a config auto sync feature, allowing you to set up master and slave nodes.

This feature automatically synchronizes the master node's configuration to slave nodes every minute.

In case the master node fails, users can manually switch traffic, enabling slave nodes to immediately handle business traffic.

Environment Preparation

  • Verify that the SafeLine versions on both master and slave nodes are identical (including minor version numbers)
  • Ensure that the SafeLine licenses on both master and slave nodes are consistent (both professional version)
  • Verify network communication between master and slave nodes is operational

Setting Up the Master Node

  1. Designate one device as the master node
  2. View the commands that need to be executed on the slave node. Save these commands as you will need to execute them on the slave node machine

Setting Up the Slave Node

  1. Designate a device as the slave node
  2. Execute the binding command obtained from the master node on the slave node — you must get this command from the master node console as described above
  3. Check the result after execution. The image below shows successful execution

Successful Configuration

View the master node display

View the slave node display

Note that the slave node cannot modify configurations (operations are disabled by default).

Test configuration synchronization by making changes on the master node and checking whether they are successfully synchronized to the slave node.

Note: Configuration synchronization does not include logs and statistical information.

Unbinding Configuration Synchronization

Click the unbind button on the right to disconnect configuration synchronization.

Other Questions

How many slave devices can a master device have?

There is no limit to the number of slave devices.

GitHub Repository: https://ly.safepoint.cloud/rZGPJRF
Official Website: https://ly.safepoint.cloud/eGtfrcF
Live Demo: https:https://ly.safepoint.cloud/DQywpL7

Top comments (0)