{"_id":"5a8fae0368264c001f20cc1a","category":{"_id":"5a8fae0368264c001f20cc04","version":"5a8fae0268264c001f20cc00","project":"5633ebff7e9e880d00af1a53","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-05-31T04:26:39.925Z","from_sync":false,"order":4,"slug":"versions","title":"Bonsai.io Platform"},"project":"5633ebff7e9e880d00af1a53","parentDoc":null,"user":"5633ec9b35355017003ca3f2","version":{"_id":"5a8fae0268264c001f20cc00","project":"5633ebff7e9e880d00af1a53","__v":2,"createdAt":"2018-02-23T06:00:34.961Z","releaseDate":"2018-02-23T06:00:34.961Z","categories":["5a8fae0268264c001f20cc01","5a8fae0268264c001f20cc02","5a8fae0368264c001f20cc03","5a8fae0368264c001f20cc04","5a8fae0368264c001f20cc05","5a8fae0368264c001f20cc06","5a8fae0368264c001f20cc07","5a8fae0368264c001f20cc08","5a8fae0368264c001f20cc09","5abaa7eb72d6dc0028a07bf3"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"__v":0,"updates":["56ec695d2400d20e0075ba11"],"next":{"pages":[],"description":""},"createdAt":"2016-03-17T16:48:59.219Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"Clusters on the Sandbox plan must sleep for 8 hours out of every 24. This helps us provide a lean, efficient service, and return those economies of scale back to you in the form of easy, accessible development and test environments.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/jON5PrB8TzBtYp3T1cwL_sleeping-cluster-diagram.png\",\n        \"sleeping-cluster-diagram.png\",\n        \"1443\",\n        \"592\",\n        \"#044970\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nRequests made to a sleeping cluster will return this error:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\\"error\\\":\\\"Based on its plan, your cluster must sleep for 8 out of every 24 hours. Please upgrade your plan or contact support:::at:::bonsai.io for assistance. See also https://docs.bonsai.io/docs/sleeping-clusters\\\",\\\"status\\\":403}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nIf you find yourself receiving this code often, it may be an indication that you should upgrade your cluster to a paid plan. Instructions for upgrading your plan can be found here:\n\n- [Direct Users](doc:managing-your-cluster#manage) \n- [Heroku Users](doc:changing-your-plan) \n- [Manifold Users](doc:changing-your-manifold-plan) \n\nPaid clusters are not subject to forced sleep mode. You can access these clusters 24 hours a day.\n\nStill have questions? Feel free to reach out to us at [support@bonsai.io](mailto:support@bonsai.io), and we’ll be happy to chat.","excerpt":"","slug":"sleeping-clusters","type":"basic","title":"Cluster Sleep"}
Clusters on the Sandbox plan must sleep for 8 hours out of every 24. This helps us provide a lean, efficient service, and return those economies of scale back to you in the form of easy, accessible development and test environments. [block:image] { "images": [ { "image": [ "https://files.readme.io/jON5PrB8TzBtYp3T1cwL_sleeping-cluster-diagram.png", "sleeping-cluster-diagram.png", "1443", "592", "#044970", "" ] } ] } [/block] Requests made to a sleeping cluster will return this error: [block:code] { "codes": [ { "code": "{\"error\":\"Based on its plan, your cluster must sleep for 8 out of every 24 hours. Please upgrade your plan or contact support@bonsai.io for assistance. See also https://docs.bonsai.io/docs/sleeping-clusters\",\"status\":403}", "language": "json" } ] } [/block] If you find yourself receiving this code often, it may be an indication that you should upgrade your cluster to a paid plan. Instructions for upgrading your plan can be found here: - [Direct Users](doc:managing-your-cluster#manage) - [Heroku Users](doc:changing-your-plan) - [Manifold Users](doc:changing-your-manifold-plan) Paid clusters are not subject to forced sleep mode. You can access these clusters 24 hours a day. Still have questions? Feel free to reach out to us at [support@bonsai.io](mailto:support@bonsai.io), and we’ll be happy to chat.