Reverse-Proxy in cluster mode
Run several Artica reverse-proxies behind a load balancer with one shared configuration, managed on a master and copied by replicas over mutual TLS.
Back to the Reverse-Proxy section
One reverse-proxy is a single point of failure.
With the reverse-proxy cluster, you build and secure your sites once, on one Artica server.
Every other reverse-proxy of the cluster copies that configuration within seconds.
Put them behind your load balancer: visitors get the same sites, certificates and WAF rules whatever node answers.
You no longer copy settings from one server to another or keep sync scripts.
If a node ends up with a different configuration, the cluster notices it and puts the master version back.

Benefits
- You create and change sites on the master only.
The replicas follow. - A change reaches the replicas in about 20 to 30 seconds.
Replicas ask the master every 10 seconds. - A replica checks every configuration before using it: integrity, schema, interfaces, certificates.
If one step fails, it keeps the previous configuration.
Nothing is half applied. - Nodes talk over mutual TLS with a dedicated certificate authority.
A new node needs a one-time code, and it checks the master fingerprint before sending it. - Only the master listens.
Replicas open the connection.
A replica behind NAT works, and no new port opens on the replicas. - Replicas are read-only.
A change made on a replica is refused.
A change made outside the console (a file edited by hand) is detected and undone within 5 minutes. - Nodes do not need identical hardware.
Network card names may differ between nodes.
The cluster maps the master cards to the replica cards by network. - The JavaScript bot challenge key and the OIDC session keys are the same on every node.
A visitor sent to another node keeps the session. - The master shows every node, its version, its last contact and its last error.
Use cases
- High availability: two or more Artica reverse-proxies behind a hardware load balancer, a cloud load balancer, or Artica PulseReverse.
If one node stops, the others keep serving the same sites. - Growing traffic: you add a node in a few minutes instead of rebuilding every site on it.
- Several data centers: one master, replicas in other rooms or sites.
Each replica only needs to reach the master on one TCP port. - Maintenance without downtime: take a node out of the load balancer, upgrade or restart it, put it back.
It catches up with the master on its own. - A spare master: a replica can become the master of a new cluster if the old master is lost for good.
How it works

- You change a site on the master.
- The master builds its own configuration.
It publishes a new version only when its own build succeeded. - Each replica asks the master for the latest version every 10 seconds.
- When a new version exists, the replica downloads it, checks it, and applies it all or nothing.
- The replica reports the result to the master.
The master shows it in the node list.
A version is a time stamp, for instance 20261127-014925.
The same version on the master and on a replica means the same configuration.
What travels and what stays on each node
| Replicated to every node | Kept on each node |
|---|---|
| Websites and all their settings | Statistics and logs |
| Backends and load-balancing | PostgreSQL data (WAF reports, events) |
| SSL certificates used by the sites | Dynamic bans |
| WAF rules and the global reverse-proxy settings | Disk caches |
| JavaScript challenge key, OIDC session keys | Network cards and node identity |
A few things cannot work across nodes:
- Captcha challenges are kept in the memory of one node.
A visitor sent to another node between the challenge and the answer fails it.
Keep the load balancer sticky (by source IP or cookie) for sites that use the captcha. - Docker Relay backends and local Unix socket backends exist only on the master.
A replica refuses a configuration where an enabled site uses one.
Disable such sites or keep them out of the cluster. - PHP applications run by the reverse-proxy (PHP/WordPress engines in Docker): the site settings travel, the application files and containers do not.
Deploy the application on each node. - Let's Encrypt certificates are requested and renewed on the master.
A replica forwards the validation requests (/.well-known/acme-challenge/) to the master, so validation works whatever node the load balancer picks. - Certificate IDs differ between nodes.
The cluster rewrites them.
Never compare certificate IDs across nodes.
Requirements
- Every node runs the same reverse-proxy version.
When you upgrade, upgrade the replicas first, then the master.
A replica accepts a configuration from an older master, never from a newer one. - Each replica reaches the master on TCP port 9509 (you can change it).
Nothing must reach the replicas on that port. - The administrator works on the master only.
The console of a replica only shows the cluster status. - The Artica cluster feature is put to sleep on every node of a reverse-proxy cluster.
The reverse-proxy cluster replaces it.
Step 1: Make a server the master
On the server that holds your sites, open Web Services > Cluster.
A server that is not in a cluster shows two choices.

In Make this server the master:
- Cluster port: the port the replicas use to reach the master. 9509 by default, any free port from 1024 to 65535.
- Cluster interface: the network card the replicas connect to.
Keep All interfaces unless the servers talk over a dedicated network.
Click Enable the cluster.
The configuration of this server becomes the reference.
You can change these values later with the Parameters button of the master page.

Changing the cluster port of a master makes its replicas lose contact.
They must join the master again.
Step 2: Add a node on the master
On the master page, click Add a node.

The window shows two values:
- Join token: a one-time code, valid for 24 hours.
- Master certificate fingerprint: the SHA-256 fingerprint of the master certificate.
Copy both.
The token works only once.
Closing the window and opening it again creates another token.
Step 3: Join the master on the other server
On the future replica, open Web Services > Cluster and click Join a master.

- Master address and port: the address of the master, followed by its cluster port when it is not 9509 (example:
192.168.1.10:9509). - Token: the join token.
- Master certificate fingerprint: the fingerprint shown by the master.
Spaces and colons are accepted.
Click Join a master.
The replica checks the fingerprint of the master before it sends the token.
A wrong fingerprint stops the join and the token is not sent.
The replica then downloads the configuration of the master and applies it.
The first synchronization takes a few seconds.
The master page

- Follower servers: the number of replicas, how many are up to date and how many have a problem.
- Configuration shared: the version the master publishes, and the result of its last build.
- Replica link: the state of the cluster listener, its port and network card.
- Configurations being prepared: builds in progress on the master.
A version is published only once they end. - Nodes: one row per replica, with its address, status, applied version, last contact, daemon version and last error.
The bin icon removes a node: its certificate stops working at its next synchronization. - Identity check of the master: the fingerprint new replicas must check.
- Publish now: publishes the current configuration without waiting.
A node can have five statuses:
| Status | Meaning |
|---|---|
| Up to date | The replica runs the published version. |
| Synchronizing | The replica is downloading or applying a version. |
| Failed | The replica refused the last version and kept its previous configuration. The last error says why. |
| Changed outside the cluster | Someone changed the configuration of the replica by hand. The replica applies the master version again. |
| Offline | The master has not heard from the replica for 60 seconds. |
The replica page

- The status card shows the master address, the last contact, the applied version and the result of the last synchronization.
- Force synchronization downloads and applies the master version now, instead of waiting up to 10 seconds.
- Interfaces mapping links each network card of the master to a card of this server.
Mappings found by network are Automatic.
Choose another card to set a Manual mapping.
Saving applies the master configuration again at once.
The website pages of a replica are read-only.
A banner reminds you that the sites are managed on the master.

Any change sent to a replica is refused with this message: This node is a replica of the reverse-proxy cluster; make this change on the master.
Leave the cluster or become master
The Danger zone of the replica page has two actions.
Leave the cluster: the server becomes standalone again.
It keeps its current configuration and deletes its cluster certificates.
It also tells the master, which removes it from the node list.
You can join a master again later with a new token.

Become master: the server becomes the master of a new cluster with a new certificate authority.
Every other server must join it again.
Use it only if the old master is gone for good.
If the master stops, there is no automatic switch.
The replicas keep serving their last configuration.
After three failed contacts (about 30 seconds) they show The master cannot be reached.
They reconnect on their own as soon as the master answers again.
Troubleshooting
Warnings for the replicas
The master publishes a configuration that the replicas will refuse.
It warns you on its page, and the node shows Failed.


| Message | Cause | Fix |
|---|---|---|
backend N uses a node-local relay or socket, not supported in a cluster |
An enabled site uses a Docker Relay or a local socket backend. | Disable that site, or remove that backend. |
interface X of the master has no local mapping |
A site listens on a network card the replica cannot match by network or by name. | Choose a card for X in Interfaces mapping on the replica. |
master schema is newer, upgrade this node |
The master runs a newer version than the replica. | Upgrade the replica. |
The replica keeps serving its previous configuration in every case.
It applies again as soon as the master publishes a fixed version.
Join refused: the node is already enrolled

The master still lists this server.
This happens when a replica left the cluster while the master could not be reached.
On the master, click the bin icon of that node and confirm.

Then join again with a new token.
Other messages
| Message on the replica | What to do |
|---|---|
| The master cannot be reached | Check the network and the firewall between the replica and the master port (9509 by default). |
| Removed from the cluster | The node was removed on the master. Join again, or leave the cluster. |
the master certificate does not match the expected fingerprint |
Copy the fingerprint again from Add a node on the master. A promoted master has a new fingerprint. |
enrollment token is invalid, expired or already used |
Create a new token with Add a node. |
Stopping the reverse-proxy service on a replica may take up to 5 minutes while it applies a version.
It never stops in the middle of an apply.
If it is killed anyway (power loss), it restores the previous configuration at the next start.