Skip to main content
Version: 5.4

HTTP(s) failover concepts for REST, OPC UA Server & WebManagement in the OPC Router

What is failover?

Failover ensures that requests are automatically redirected to another available server in the event of a server failure. A reverse proxy can perform health checks to check which endpoints are active.

Use case example for failover with OPC router redundancy

Situation

The two OPC routers of a redundancy pair provide the same REST endpoint.

Here are projects from the primary and secondary service.

Primary Service Project

Secondary Service Project

Requirement

The REST endpoint should be reliably accessible at an address. Requests to this address should be forwarded to the active OPC router of the redundancy pair.

Solution

A reverse proxy, e.g. Nginx, is configured so that requests to a specific address can be forwarded to both OPC routers. Health checks are performed to determine which endpoint is currently active.

The configuration of a failover for an OPC router redundancy pair with Nginx and Traefik is described below.