{"schemaVersion":"1","contentVersion":"2026-11-02.1","slug":"hibernation","updated":"2026-11-01","title":"Idle hibernation","category":"Go deeper","minutes":3,"summary":"Understand what goes to sleep, how it wakes up, and where to change the timer.","prerequisites":[],"sections":[{"id":"backends","title":"When a backend service sleeps","blocks":[{"type":"paragraph","text":"Open System Explorer → Services and inspect the service’s runtime policy. Sleep when idle allows an on-demand HTTP service to suspend and wake on a permitted request. Startup can delay that request; distinguish a retryable startup failure from application authorization or capacity rejection."},{"type":"paragraph","text":"Use Always on when continuous execution is required. Stop after duration expires even while the service is busy. An HTTP-disabled worker cannot wake from an HTTP request; choose a policy appropriate to its work. A backend persistent disk and the retained development workspace can still consume storage while compute is stopped."}]},{"id":"activities","title":"When an activity is idle","blocks":[{"type":"paragraph","text":"An activity deployment can sleep between calls. In its deployment settings, choose [Idle before sleeping](/guides/controls-activities#deployment), then select [Deploy activity](/guides/controls-activities#deployment). The first workflow call after sleep waits for the activity to wake. Allow for a cold start and inspect the reported status instead of assuming a fixed startup time. [Activity deployment settings](/guides/controls-activities#deployment)."}]},{"id":"machine","title":"When the building workspace goes idle","blocks":[{"type":"paragraph","text":"The [development machine](/guides/development#machine) runs your chat tools, preview, and code editor. It can pause after inactivity. On your next visit, let it start or resume before using the preview. A paused [development machine](/guides/development#machine) does not by itself take your published frontend offline."},{"type":"paragraph","text":"Open [Factory Settings](/guides/controls-factory#factory-details) to review retained workspace storage and the available idle controls. Source survives supported machine stops and recreation; active processes and dependency caches do not. [Machine settings and shutdown behavior](/guides/controls-factory#persistence-idle)."}]},{"id":"database","title":"When the database goes idle","blocks":[{"type":"paragraph","text":"The database has a separate sleep timer. It wakes on the next connection, so the first request after a quiet period may take longer. [Database](/guides/controls-database-tables#table-browser) activity resets the timer."}]},{"id":"timer","title":"Change the database sleep timer","blocks":[{"type":"paragraph","text":"Open [System Explorer](/guides/controls-preview#navigation) → [Database](/guides/controls-database-tables#table-browser) → [Operations](/guides/controls-database-operations#operations) → [Idle hibernation](/guides/controls-database-operations#sleep). Choose a preset or enter [Days](/guides/controls-database-operations#sleep), [Hours](/guides/controls-database-operations#sleep), and [Minutes](/guides/controls-database-operations#sleep) within the displayed limits. Review the total, then select [Save sleep timer](/guides/controls-database-operations#sleep). [Cancel](/guides/controls-database-operations#sleep) leaves it unchanged."},{"type":"paragraph","text":"The same control is available in the extended [Overview](/guides/controls-overview#snapshot). The policy applies to the entire [billing account](/guides/billing#account), not just the screen you opened. [Sleep timer controls](/guides/controls-database-operations#sleep) · [Quotas](/guides/billing)."}]}],"technical":[],"related":["development","controls-factory","controls-database-operations","billing"],"sources":["content/controls/database-operations.ts","content/controls/factory.ts"],"audience":"general","media":[{"src":"https://docs.rumata.xyz/media/manual/hibernation.jpg","width":1662,"height":789,"alt":"Database idle hibernation dialog with quick choices, custom duration, Cancel, and Save sleep timer.","caption":"Reference capture from the separate Sabai Talk Thai application (September 8, 2026). Opening the dialog does not change the timer. Cancel closes it; [Save sleep timer](/guides/controls-database-operations#sleep) applies your choice. This capture leaves the existing setting unchanged.","sectionId":"timer"}],"video":null,"url":"https://docs.rumata.xyz/guides/hibernation"}