1:21
Replicas: how many copies of your app run
What the 0 / 1 / 2 / Auto switch on an app card does, shown on a real app: pausing, running again, two copies, and Auto adding a second copy under real load.
Transcript213 words
Every app card on the Apps page has a Replicas switch A replica is one running copy of your app. This one runs one copy. This is the app as a visitor sees it 0 pauses the app: no copy runs, and it uses no CPU or memory Now the address no longer shows the app 1 starts it again. It is back within seconds. And the site answers again The bars show what one copy uses, and whether the server has room for a second 2 runs two copies. Visitors are shared between them, and if one copy crashes or restarts, the other keeps serving. Auto runs one copy normally, and adds the second only when the app gets busier than your target Back to one copy. Now let's see Auto do it for real.
Turn on Auto with a CPU target of 70% Auto is on. The app still runs one copy. Visitors arrive: the CPU climbs far past the target Auto starts a second copy, on a machine with room for it Two copies now share the load, so the site stays fast When it is calm again for 5 minutes, Auto goes back to one copy by itself Here we turn Auto off by hand: back to one copy
Subtitle file: replicas.vtt