WEBVTT

1
00:00:03.500 --> 00:00:08.130
Every app card on the Apps page has a Replicas switch

2
00:00:08.230 --> 00:00:12.910
A replica is one running copy of your app. This one runs one copy.

3
00:00:13.060 --> 00:00:17.560
This is the app as a visitor sees it

4
00:00:18.245 --> 00:00:23.485
0 pauses the app: no copy runs, and it uses no CPU or memory

5
00:00:23.635 --> 00:00:29.821
Now the address no longer shows the app

6
00:00:30.383 --> 00:00:33.543
1 starts it again. It is back within seconds.

7
00:00:33.693 --> 00:00:37.195
And the site answers again

8
00:00:38.102 --> 00:00:48.929
The bars show what one copy uses, and whether the server has room for a second

9
00:00:49.029 --> 00:00:56.879
2 runs two copies. Visitors are shared between them, and if one copy crashes or restarts, the other keeps serving.

10
00:00:56.979 --> 00:01:06.746
Auto runs one copy normally, and adds the second only when the app gets busier than your target

11
00:01:07.046 --> 00:01:10.766
Back to one copy. Now let's see Auto do it for real.

12
00:01:11.846 --> 00:01:18.453
Turn on Auto with a CPU target of 70%

13
00:01:18.753 --> 00:01:22.473
Auto is on. The app still runs one copy.

14
00:01:22.623 --> 00:01:26.740
Visitors arrive: the CPU climbs far past the target

15
00:01:26.840 --> 00:01:30.800
Auto starts a second copy, on a machine with room for it

16
00:01:30.950 --> 00:01:37.807
Two copies now share the load, so the site stays fast

17
00:01:38.007 --> 00:01:43.007
When it is calm again for 5 minutes, Auto goes back to one copy by itself

18
00:01:43.157 --> 00:01:47.800
Here we turn Auto off by hand: back to one copy
