Autosleep Service: Inactive Apps Gets Stopped and Auto-Restarted on Incoming Traffic
summary
Autosleep Service enrolls apps via the service broker API and stops them after idle periods (demo uses 20 seconds idle), then restarts on incoming traffic routed to a wildcard route handled by a wakeup proxy. It relies on CF CC API, app logs and CF events to measure activity, stores state in MySQL, supports per-space opt-in or enforced auto-enrollment with a secret, and currently returns 503 returned during wakeup (buffering and HA for the broker are planned).
AI-written summary · about
chapters (7)
- 0:00Introduction
- 0:51Why would you care
- 5:09How to use it
- 8:38Demo
- 19:08Architecture
- 23:37Learnings
- 27:26Wrapup
related talks
28mSave Cloud Resources Using Autosleep Org Enrollment
29mCustom App Autoscaler Using Cloud Controller API - Christopher Decelles
25mGetting Back to Sleep ASAP for the On-Call Developer
26mPaid to Sleep
26mCloud Foundry AutoScaler Service: Features, Design and Roadmap
24mSleeping soundly even when scaling your app to 200k request/seconds
21mDynamic Account Management Framework for Spinnaker
39mVirtuous Cycles: Enabling SRE via automated feedback loops
