Overview
The Formal VPN is designed to run independently of the Formal Control Plane. It stays up when the Control Plane fails, and when entire cloud regions go down. No single server or region can take the VPN down. Every tier runs on several servers across several regions, and clients fail over on their own.Fault tolerance
Design principles
- No shared database. Each server keeps only its own live connections in memory. The list of servers is kept in each region. If that copy is unreachable, the last list read stays in use.
- No directory service. See Assignment without a database.
- Redundancy in every tier. Gateways run in several regions. Each Connector stays connected to several Rendezvous Servers in more than one region. Each session can use two Relays, in different regions where possible.
- Updates without downtime. New servers come up before old ones stop. The Connector connects to new Rendezvous Servers before the old ones go away. Gateways and Rendezvous Servers finish in-flight requests before shutting down. Relays from the previous release keep serving their existing tunnels for at least three hours, unless an urgent fix replaces them sooner.
Assignment without a database
Which Rendezvous Servers a Connector uses is computed with consistent hashing. The inputs are the Connector’s ID and region, and the list of Rendezvous Servers. The same inputs always give the same answer, so no database or directory service has to store it. Nothing needs to stay in sync between regions, and there is one less component that could fail. Each Connector has more than one preferred server in its nearest region. A single server failure or update therefore doesn’t push sessions to a distant region. If the whole region goes down, fallback servers in other regions keep the Connector reachable.When a component fails
Established tunnels run directly between the Endpoint and Connector, or through a Relay. Only a Relay failure can therefore affect a tunnel that is already up.
A regional outage shows how the tiers work together.
The Gateway gets no answer from the Connector’s preferred servers.
After a short delay, it also asks the fallback servers. The one holding the Connector’s connection answers.
Recovery
Endpoints and Connectors recover without operator action. The Connector reconnects to its Rendezvous Servers automatically. The Endpoint sets up a new session whenever a tunnel’s path breaks. A failed Relay restarts automatically.Independence from the Control Plane
The VPN keeps running when the Formal Control Plane is unavailable, including during long outages. The Control Plane manages sign-in and configuration, but it is never on the path of a tunnel.Separate infrastructure
Gateways, Rendezvous Servers, and Relays run in their own cloud account. They have their own deployments, DNS zone, and certificate authorities. They never call the Control Plane and share no database or message queue with it. A Control Plane incident or deployment doesn’t reach them.What keeps working
- Tunnels. Established tunnels keep running, and signed-in Endpoints can open new ones. Traffic and DNS queries flow only between the Endpoint and the Connector.
- Authentication. The Connector verifies session certificates against your organization’s CA, using data it already holds. Each resource connection inside the tunnel is authenticated again, also locally.
- Policy enforcement. The Connector keeps enforcing the last policies it received.
- Audit logs. The Connector buffers logs on disk, up to a size limit, and delivers them when the Control Plane is back. Logs sent to your own log destinations are not affected.
What needs the Control Plane
- Signing in, and starting a new cloud agent session
- Renewing session certificates
- Configuration changes, such as policies, users, and resources
- Signing out and revoking sessions
- Policies that require MFA, and one-time policy suspensions