Multi-Region Deployment

OPS supports deploying apps across multiple regions using node groups with configurable load balancing.

Concepts

  • Node: A single server registered with OPS

  • Node Group: A collection of nodes serving the same app environment

  • Load Balancing Strategy: How traffic is distributed across nodes in a group

Workflow

1. Initialize Nodes in Different Regions

On each server:

# US East server
ops init --region us-east

# EU West server
ops init --region eu-west

# AP Northeast server
ops init --region ap-northeast

2. Create a Node Group

3. Bind Nodes to the App

4. Verify the Setup

Load Balancing Strategies

round-robin

Distributes requests evenly across all healthy nodes. Default strategy.

geo

Routes requests to the nearest region based on client location.

weighted

Distributes traffic based on node weights (1-100). Higher weight = more traffic.

failover

Sends all traffic to the primary node. Fails over to secondary nodes if the primary becomes unhealthy.

Availability Zones

Within a region, you can assign nodes to availability zones:

Monitoring

View all nodes in a group:

Check individual node status:

Last updated