# Autosleep services like Heroku

**URL:** <https://forums.suse.com/t/autosleep-services-like-heroku/8230>\
**Category:** Rancher 1.x\
**Created:** [January 17, 2018, 2:15am UTC](https://forums.suse.com/t/autosleep-services-like-heroku/8230 "2018-01-17T02:15:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leandro4j](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/leandro4j/32/3210_2.png) [@leandro4j](https://forums.suse.com/u/leandro4j)\
**Post date:** [January 17, 2018, 2:15am UTC](https://forums.suse.com/t/autosleep-services-like-heroku/8230/1 "2018-01-17T02:15:48Z")

</div>

Hello everyone,

I have many projects running over Rancher with Cattle. Some these applications are running once time a week, like a staging environment. However my containers keep running until a user interacting with them. A lot of cpu and memory are allocate for nothing.

Have one way to configure load balancer for sleep and wakeup a service? Like free tier Heroku feature?

---

<div class="post-metadata">

**Author:** ![shubbard343](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@shubbard343](https://forums.suse.com/u/shubbard343)\
**Post date:** [January 17, 2018, 8:10pm UTC](https://forums.suse.com/t/autosleep-services-like-heroku/8230/2 "2018-01-17T20:10:30Z")

</div>

I think you are looking for function-as-a-service or serverless applications, where the container is started on demand when there is a request for it. I have not tried this myself, but there is a write-up on how to do this in Rancher.

> **[Running Serverless Applications on Rancher | SUSE Communities](https://www.suse.com/c/rancher_blog/running-serverless-applications-on-rancher/)**
>
> One of the more novel concepts in systems design lately has been the notion of serverless architectures. It is no doubt a bit of hyperbole as there are certainly servers involved, but it does mean we get to think about servers differently. The...
