{"_id":"56eadffb0ce1452200bd5db1","project":"5633ebff7e9e880d00af1a53","__v":12,"parentDoc":null,"user":"5633ec9b35355017003ca3f2","version":{"_id":"5633ec007e9e880d00af1a56","project":"5633ebff7e9e880d00af1a53","__v":15,"createdAt":"2015-10-30T22:15:28.105Z","releaseDate":"2015-10-30T22:15:28.105Z","categories":["5633ec007e9e880d00af1a57","5633f072737ea01700ea329d","5637a37d0704070d00f06cf4","5637cf4e7ca5de0d00286aeb","564503082c74cf1900da48b4","564503cb7f1fff210078e70a","567af26cb56bac0d0019d87d","567afeb8802b2b17005ddea0","567aff47802b2b17005ddea1","567b0005802b2b17005ddea3","568adfffcbd4ca0d00aebf7e","56ba80078cf7c9210009673e","574d127f6f075519007da3d0","574fde60aef76a0e00840927","57a22ba6cd51b22d00f623a0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"567af26cb56bac0d0019d87d","pages":["567af282b56bac0d0019d87e","567af41fc952030d0038c782","567af469b56bac0d0019d887","567af4a493919f0d00c97a72","567af4c7c952030d0038c788","568371947af9120d007ac34d","568411af3b87430d00483c14","5684127c65976e0d00001bf1","568414c77916270d00eee2e1","5684152b7af9120d007ac3e9","5684162b3b87430d00483c21","5684164f65976e0d00001bfe","568440dcc11c7e0d00aaff47","56eadf15eed93a0e00dd501b","56eadffb0ce1452200bd5db1","56eae136d25d831700006abc"],"project":"5633ebff7e9e880d00af1a53","__v":16,"version":"5633ec007e9e880d00af1a56","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-12-23T19:13:48.702Z","from_sync":false,"order":5,"slug":"quickstart-guides","title":"Heroku Plan Management"},"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":3,"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 full-service plan. Non-sandbox clusters (that is, paid clusters) aren’t subject to forced sleep mode. You can access these clusters 24 hours a day. For more details on Heroku plans and pricing, please the [Bonsai Heroku Addon Elements page](https://elements.heroku.com/addons/bonsai).\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":"Sandbox Cluster Sleep"}

Sandbox 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 full-service plan. Non-sandbox clusters (that is, paid clusters) aren’t subject to forced sleep mode. You can access these clusters 24 hours a day. For more details on Heroku plans and pricing, please the [Bonsai Heroku Addon Elements page](https://elements.heroku.com/addons/bonsai). 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.