loft-sh / loft

Namespace & Virtual Cluster Manager for Kubernetes - Lightweight Virtual Clusters, Self-Service Provisioning for Engineers and 70% Cost Savings with Sleep Mode
https://loft.sh/docs/introduction
Other
737 stars 65 forks source link

Volume operations wake up sleeping space #236

Open withinboredom opened 1 year ago

withinboredom commented 1 year ago

It seems that volume operations (I'm not 100% sure which ones Longhorn is doing and I don't have an audit license with Loft that might tell me what happened), but when Longhorn attaches a disk belonging to a sleeping space to take a nightly backup, the space is woken up and everything turns on.

This is more of an FYI thing, though it is waking up things that were manually slept, so they don't automatically go back to sleep \~and there isn't an option for 'never wake up unless I say so.'\~

This is new in V3.

FabianKramm commented 1 year ago

Hey @withinboredom ! How is longhorn connecting to Loft? Through the Loft api? If not its weird that the space is woken up, maybe some agent logs would be helpful.

withinboredom commented 1 year ago

It's not connected to Loft at all. I'll get those agent logs and see what is up. Thinking about it now, it's possible Longhorn deploys pods to the namespace to take the backup (I'd have to look up how it works) using regular k8s APIs. I have no idea if that would cause the space to wake-up.