moonbeam-nyc / snorlax

wake and sleep Kubernetes deployments on a schedule
https://moonbeam.nyc
Apache License 2.0
147 stars 10 forks source link

Feature Request: Indefinite sleep, wake up on ingress #6

Open volatilemolotov opened 3 months ago

volatilemolotov commented 3 months ago

Im not seeing an option to set up a deplyoment to sleep permanently until woken up?

Is this something that is currently possible or requires development?

azlyth commented 3 months ago

It's not currently possible, but it'll be coming soon. The obstacle is that indefinite sleep would need some way to sense inactivity so that it can sleep again.

volatilemolotov commented 3 months ago

Yeah it crossed my mind also.

Could we add forceSleepAfter: xm or still read sleepTime.

Its crude but a good start until ideas on how to detect inactivity come. Perhaps integration with prometheus if cpu is low for x time.

volatilemolotov commented 3 months ago

Of course im willing to help. Not a developer but perhaps i still can help, with development or just testing. Let me know