Service won't sleep

Project ID: 948196f9-27d3-44cd-bdd2-e50d7b67c7ef Service ID: f690603f-d911-4602-b9f6-db5aa676591d I enabled the "Enable App Sleeping" toggle. After 30' of no traffic it didnt sleep so I tried removing public network domain. It's still not sleeping.
Solution:
im seeing auto sleep times from anywhere between 15 to 30 minutes for an app that has no way of making any outbound requests
Jump to solution
28 Replies
Percy
Percy14mo ago
Project ID: 948196f9-27d3-44cd-bdd2-e50d7b67c7ef,f690603f-d911-4602-b9f6-db5aa676591d
Brody
Brody14mo ago
look at the network metrics, does it have any outbound traffic?
dwaynemac
dwaynemacOP14mo ago
some, yes
No description
Brody
Brody14mo ago
an active service won't be slept
dwaynemac
dwaynemacOP14mo ago
ok. i dont know what generates that outbound traffic. i'll look into that
Brody
Brody14mo ago
question for you, if you had a button that manually slept this service and disabled automatic wakes, would you use it right now? (with a button to also manually wake)
dwaynemac
dwaynemacOP14mo ago
absolutely i mainly intend to use sleeping for work-in-progress or staging. i'd sleep it when not working on it.
Brody
Brody14mo ago
thought so, a manual sleep and manual only wake has many usecases cc @Mig
dwaynemac
dwaynemacOP14mo ago
oh, outbound traffic is probably appsignal daemon. a monitoring service.
Brody
Brody14mo ago
yep, the sleep deamon monitors any outbound traffic
dwaynemac
dwaynemacOP14mo ago
i'll try disabling it
dwaynemac
dwaynemacOP14mo ago
still not sleeping
No description
Brody
Brody14mo ago
it could take up to 30 minutes for the app to auto sleep
dwaynemac
dwaynemacOP14mo ago
oh, ok!
Solution
Brody
Brody14mo ago
im seeing auto sleep times from anywhere between 15 to 30 minutes for an app that has no way of making any outbound requests
dwaynemac
dwaynemacOP14mo ago
ok! 👍 i'll wait. On reading the launch blog post I understood it was 5 minutes.
Brody
Brody14mo ago
service went to sleep?
dwaynemac
dwaynemacOP14mo ago
Yes. After 30minutes aprox. I found the metrics confusing though After an hour I was still waiting for the metrics to flatline but they actually freeze
Brody
Brody14mo ago
yeah i know, id much prefer the metrics continue but get seeded with zeros, what do you think?
dwaynemac
dwaynemacOP14mo ago
Exactly
Mig
Mig14mo ago
thanks for the feedback @dwaynemac. The current confusion comes from containers that are still chatting even if you aren't using the service. This is something in the container OS that could be talking to external services like NTP which happens randomly. I've mentioned to the team that we should work on improving the network visibility to help answer "what is keeping my container awake". We'll work on this. As for the time took to sleep, the traffic usage is evaluated in 5 minute intervals but those intervals might happen before the container has reported to us its latest traffic usage (usage collection and inspection are 2 separate intervals). I expect a container to be slept no later than 15 minutes. If we get enough feedback on the confusion regarding when containers should sleep I'll try to improve it.
dwaynemac
dwaynemacOP14mo ago
thanks for the reply!
Mig
Mig14mo ago
I think with app sleep you can having a staging environment that is automatically slept when you're done and started when you begin to use it. I mean, I don't want you to have to worry about pressing a button. It should be automatic.
Brody
Brody14mo ago
I'm seeing max times of around 28 minutes though that may be flawed testing
Mig
Mig14mo ago
I think I've seen it a few times too but thought I resolved it. I'd say if it's longer then 15 minutes I should definitely look into it. I'll create a ticket to mess around with it soon to confirm.
Brody
Brody14mo ago
and I'll see if I can improve my testing, it's not like I know what I'm doing 🤣
Mig
Mig14mo ago
nah I think checking if your container should be slept should be easy.
Brody
Brody14mo ago
I'm just doing time.Now() then waiting for a interrupt signal then logging the time.Since
Want results from more Discord servers?
Add your server