DEV Community

Carrie
Carrie

Posted on • Edited on

1 1 1 1 1

How to Set Up a High Availability Environment with Two SafeLine

SafeLine WAF introduced multi-node configuration synchronization in version 7.0.0.

Set-up Steps

1. Obtain Connection Command

After clicking Become a Master Node, a IP address will appear. This address is used for slave nodes to connect to the master node and obtain its configuration. Therefore, you need to ensure that slave nodes can connect to the master node's management console. If you use a proxy to connect to the master node, modify this address to the proxy address.

2. Connect Slave Node to Master Node

Copy the generated connection command and execute it on the slave node's host machine. If a prompt appears (as shown in the image), it indicates that the slave node has successfully connected to the master node. After becoming a salve node, it switches to read-only mode, and the configurations cannot be modified.

3. Results

After waiting for a few minutes, you'll see the sites and rules on the master node appear on the slave node.

4. Unbind Nodes

To unbind nodes, you can click "Unbind" on either the master or slave node. Or when downgrading from the Professional version to the free version, this will dissolve the master-slave synchronization. After unbinding, you can modify the slave node's configuration.

Advantages and Disadvantages

Advantages

  • Effectively solves the problem of single-node Safeline failure
  • Expands the detection capability of your SafeLine WAF

Disadvantages

  • Requires the same version of the Professional Edition to use; upgrades must be done simultaneously, as version inconsistencies will cause configuration synchronization to stop
  • Log data can only be viewed in the management interface of different nodes; it's not possible to view all data in a single management interface
  • May require forwarding to a specific SafeLine instance based on IP; otherwise, high-frequency access effects may be inconsistent with the configuration

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay