Docs
Waking
An asleep workload’s first request wakes it: the waker answers, the backends start, the route comes back.
4 min read
A request wakes the workload unless a filter, a rule or the wake mode keeps it. Each timeline replays one wake.
AWS
Google Cloud
The steps
- The waker lets the first request past the filters win the wake; the others wait for it.
- The waker asks the controller for the wake, and answers the visitor.
- The controller starts the databases and waits for them, then starts the application’s backends.
- The controller reads the backends’ health until one is healthy: one is enough.
- The controller gives the load balancer its route to the application back.
- Awake, the router reports the change and the wake’s duration to the manager.
- A wake that outlasts its Wake timeout fails, and says why.
AWS
- The waker invokes the controller, then holds the request for the Hold.
- Others get the waiting page, a
503withRetry-After: 3; it reloads by itself. - The controller reads the target group’s health every 3 s, then switches your rules back.
- 15 s after the switch, a held request gets a
307to its URL.
Google Cloud
- The waker holds nothing: the visitor gets the waiting page at once. Behind a global load balancer, the page’s probe wakes the workload.
- The wake reaches the controller through a Cloud Tasks queue.
- The controller reads the backend service’s health every 2 s.
- Behind a global load balancer, the controller then removes the nap’s error response. Behind the others, it swaps the map back and waits first.
The URL map’s wait Google Cloud only
A nap and a wake change your URL map, then wait for the load balancer to see it.
global: 5 minutes at a nap, for the error response; none at a wake.regional: 100 s.classic: 250 s.internal: 30 s.cross-region-internal: 150 s.
Behind a swap, the wake’s wait counts in its time: the Wake timeout’s floor holds it.
Parts and permissions
Each part calls with its own role, which Roles lists.
| Component | AWS | Google Cloud | What it does |
|---|---|---|---|
| The waker | Answers the visitor, asks for the wake. | ||
| The wake’s way | Carries the wake to the controller. | ||
| The controller | Starts the backends, reads their health, gives the route back. | ||
| Your backends | Tagged dormeto:workload | Tagged dormeto=managed, as dormetoRouterBackends | Started, resumed or scaled back. |
| Their health | Says when a backend serves. | ||
| The manager | Takes each change of state (Architecture). |
What can go wrong
- Bots,
HEADrequests, scanners and No-wake rules never wake it: they get the waiting page. - A failed wake says why on the workload’s page and the waiting page: Workloads.
- A start refused for capacity is tried again, then on the fallback types: Router.
- A nap window holds wakes off: Scheduler.