FerryDocs

Load balancing

The proxy gives each new request to the next instance of the service, in turn.

Edit on GitHub
BrowserProxyround-robinInstance 1Instance 2Instance 3

The first request goes to instance 1.

1 / 4

A can have more than one . Then the shares the requests between them. This is .

The rule is : each instance gets a request in its turn.

The rules

  • A route points only at instances that accept .
  • A GET or HEAD request with no body cannot reach an instance: the proxy tries it one more time on a different instance.
  • The proxy does not try other requests again.
  • During a , the proxy moves to the new instances in one step, after they pass their . See Deploys.

Add instances

Terminal
ferry scale shop 3

See Disks, scaling & suspend.

On this page