Dormeto

Use cases

A day in the life of four workloads

Staging environments, a back office, client demos and a public API. For each: who uses it, when it naps, what wakes it and its settings.

Examples, replayed over a Tuesday. The wake times are the ones we measured. Measured wake times

Four workloads, a Tuesday each

Each day plays when it shows. Click a moment of it to stop there; Replay starts it again.

Amazon EC2Staging

Amazon EC2 · two t3.medium per environment

Twelve staging environments, used on weekdays

Testers and developers check each release on one of twelve environments, each two EC2 instances behind the team’s load balancer. They work from 9 to 6, Monday to Friday. Nights and weekends, the instances used to run for nobody.

Tuesday

  1. An uptime monitor checks the home page. Monitors get the waiting page, never a wake.
  2. The awake window opens: the instances start before the team arrives, so nobody waits in the morning.
  3. The last tester left at 18:44. Fifteen minutes later, at the next check, it naps: the rules switch to the waker and the instances stop.
  4. A developer checks a fix from home. The waiting page shows, then the application, about 40 seconds later.
  5. Nobody since 21:28: it naps again.

Settings

Schedule
Awake from 08:30 to 18:30, Monday to Friday
Idle window
15 minutes, the default
Wake mode
Any, the default

This example in the docs

Its week

Mon
Tue
Wed
Thu
Fri
Sat
Sun
  • 114 hasleep of 168 hours (68%)
  • 7wakes: 5 by the schedule, 2 by visitors
  • 2visitors who waited

≈ $45 a month per environment, about $540 for the twelve (estimate)

114 hours asleep a week at $0.0912 an hour (2 × t3.medium at $0.0456), × 52 weeks ÷ 12. On-demand list prices in eu-west-1.

AWS FargateBack office

Amazon ECS on AWS Fargate · two tasks of 1 vCPU and 2 GB

A back office used in bursts

The support team opens the back office a few times a day. With the default 15 minutes, every coffee break would end with a wait. A two-hour idle window keeps it awake through the short gaps; it still sleeps at lunch and at night.

Tuesday

  1. Sophie opens the back office: the first request of the day. She waits about 40 seconds, once for the morning.
  2. No request for 17 minutes. With the default window it would nap now, and the next visitor would wait. With two hours, it stays awake.
  3. Nothing since 11:20: after two hours, it naps for lunch.
  4. Back from lunch, Karim waits about 40 seconds.
  5. The last request was at 16:50: two hours later, it naps for the night.

Settings

Idle window
120 minutes, chosen with the Idle window card
Wake mode
Any, the default
Schedule
None

This example in the docs

Its week

Mon
Tue
Wed
Thu
Fri
Sat
Sun
  • 122 hasleep of 168 hours (73%)
  • 10wakes, all by visitors
  • 10waits; 20 with a 15-minute window

≈ $52 a month (estimate)

122 hours asleep a week at $0.0987 an hour (2 Fargate tasks, each 1 vCPU at $0.04048 and 2 GB at $0.004445), × 52 weeks ÷ 12. On-demand list prices in eu-west-1.

Amazon RDSClient demos

AWS Fargate and Amazon RDS · a service and its PostgreSQL database

Client demos, a few hours a week

The sales team shows the product from a demo environment: an ECS service on Fargate and its PostgreSQL database. They use it twice a week for an hour. A wake that starts a database takes minutes, so the sales engineer wakes it a quarter of an hour ahead.

Tuesday

  1. AWS starts the database again after 7 days stopped. The router stops it again: the workload stays asleep.
  2. Before the 14:00 demo, the sales engineer keeps it awake for 2 hours. The database starts first, then the service: awake at 13:49.
  3. The demo starts on an application already awake: no waiting page in front of the client.
  4. The keep-awake ends, and nobody came since 15:05: it naps, the service first, then its database.

Settings

Companion database
demo-db: stopped after the service, started before it
Idle window
15 minutes, the default
Before a demo
dormeto aws workloads keep-awake eu/demo --for 2h --wait

This example in the docs

Its week

Mon
Tue
Wed
Thu
Fri
Sat
Sun
  • 164 hasleep of 168 hours (98%)
  • 2wakes, one before each demo
  • 0waiting pages in front of a client

≈ $47 a month (estimate)

164 hours asleep a week at $0.0664 an hour (a 1 vCPU, 2 GB Fargate task at $0.0494, a db.t4g.micro at $0.017), × 52 weeks ÷ 12. On-demand list prices in eu-west-1.

Amazon EC2 Auto ScalingPublic API

Amazon EC2 Auto Scaling · two t3.medium and a stopped warm pool

A public API that scanners find

A partner API answers on a public hostname. Scanners call it all night, and those that look like a visitor would wake it. Its users come through the web app, in a browser, and its tests send a header: in Browser mode, only they wake it.

Tuesday

  1. A scanner calls GET /v1/orders. It gets a JSON answer naming the wake header; nothing starts.
  2. The nightly tests call the API with the x-dormeto-wake: 1 header. It wakes in about 35 seconds and the tests run.
  3. The tests ended at 07:38: fifteen minutes later, it naps.
  4. A customer opens the web app. In the browser, the waiting page’s script wakes the API; the app loads about 35 seconds later.
  5. The last customer left at 19:22: it naps for the night.

Settings

Wake mode
Browser
Idle window
15 minutes, the default
Tests and scripts
curl -H 'x-dormeto-wake: 1' https://api.example.com/health

This example in the docs

Its week

Mon
Tue
Wed
Thu
Fri
Sat
Sun
  • 108 hasleep of 168 hours (64%)
  • 12wakes: 5 by the tests, 7 by browsers
  • 1,310requests that did not wake

≈ $43 a month (estimate)

108 hours asleep a week at $0.0912 an hour (2 × t3.medium at $0.0456), × 52 weeks ÷ 12. On-demand list prices in eu-west-1.

These are examples. The teams, hours and requests are made up. The wake times are the ones we measured, the prices are AWS’s on-demand list prices in eu-west-1, and each step is what Dormeto does today. For your own workloads, the dashboard estimates what each nap saved from their history.

And your workloads?

Before you install anything, dormeto aws estimate reads your accounts and tells you which workloads sit idle, for how long, and what their naps would be worth.

Estimate first Talk to us