Docs
Scheduler
Over a day, the idle check reads a workload’s schedule: it wakes it ahead, naps it on time.
2 min read
A Tuesday of the complete schedule: awake from 08:30 to 19:00, a nap window from 20:00 to 07:00.
The steps
- The idle check reads each workload’s schedule every 5 minutes, before its idle rules.
- An awake window’s start wakes an asleep or failed workload, as Wake now does.
- While it lasts, the controller never naps the workload on idle.
- A nap window’s start naps an awake workload, whatever its traffic.
- While it lasts, the waker answers the waiting page with the nap’s end, and wakes nothing.
- Outside its windows, the idle rules apply: a nap once idle, a wake at the next request.
- Each change of state, the router reports to the manager, with what caused it.
- A window applies at the idle check of its start, once: Schedules.
- The schedule is the router’s, in its state: the dashboard, the API and the CLI write it there.
Parts and permissions
Each part calls with its own role, which Roles lists.
| Component | AWS | Google Cloud | What it does |
|---|---|---|---|
| The idle check | Runs the controller every 5 minutes. | ||
| The controller | Reads the windows, wakes and naps the workload. | ||
| The waker | Answers a nap window’s requests. | ||
| The schedule | Holds each workload’s windows. | ||
| The manager | Takes each change of state (Architecture). |
What can go wrong
- A pause, Wake now or Nap now wins over a window: Schedules.
- A window that overlaps another of the other kind is refused when saved: Schedules.
- A nap is held off when an awake window starts within 30 minutes: Schedules.
- A request with
x-dormeto-wake: 1wakes it in a nap window only with"wake": "header".