R
Railway•14mo ago
GetPsyched

Service did not sleep after 7 minutes of no outbound network

There's a high chance that I'm missing something; but from what I read on the docs for Scale to Zero, a service should sleep when there's no outbound network for over 5 minutes. There is a small spike at 9:15 PM IST but after that it's all 0 B outbound.
No description
32 Replies
Percy
Percy•14mo ago
Project ID: 69531a0b-78b7-4a71-9df4-3a8db9703b69
GetPsyched
GetPsychedOP•14mo ago
Service ID: 22a6764b-4965-47af-82f7-f87c777fb2d2
Brody
Brody•14mo ago
the service sleeps after 25 minutes of no outbound traffic
GetPsyched
GetPsychedOP•14mo ago
Damn, when was that bumped
Brody
Brody•14mo ago
where did you read 5 minutes?
Brody
Brody•14mo ago
i get around 25 minutes for an app that just prints and waits on kill signals
Dayblox
Dayblox•14mo ago
I get between 5 and 10, that's weird
Brody
Brody•14mo ago
more tests are needed
Dayblox
Dayblox•14mo ago
My DB just took 8-9 minutes to sleep
No description
GetPsyched
GetPsychedOP•14mo ago
yup:
Every 5 minutes it compares outbound packets and once no new packets have been sent, the container is flagged as inactive.
idk where did you read 25 at max it would be 5 + 5-10 of cAdvisor
Brody
Brody•14mo ago
No description
GetPsyched
GetPsychedOP•14mo ago
well, there's 13 minutes too seems to be inconsistent
Brody
Brody•14mo ago
this is logged from an app that has no code that would ever make any kind of network request also, jake (cooper) said 30 minutes on twitter but as proven it is not a perfect number
GetPsyched
GetPsychedOP•14mo ago
uh?
No description
GetPsyched
GetPsychedOP•14mo ago
yup my deployment exists and is active how does it not have any metrics lol
Brody
Brody•14mo ago
metrics aren't collected when sleeping so the graphs dont have data to show?
GetPsyched
GetPsychedOP•14mo ago
but it isn't sleeping
Brody
Brody•14mo ago
oh it does have a deployment right?
GetPsyched
GetPsychedOP•14mo ago
No description
GetPsyched
GetPsychedOP•14mo ago
The last metric was 9:42 PM IST
Brody
Brody•14mo ago
uh thats a bug for sure
GetPsyched
GetPsychedOP•14mo ago
so metrics show in the 1d tab mhm it's either active and not showing metrics or it's sleeping but not showing that it's sleeping
Duchess
Duchess•14mo ago
Thread has been flagged to Railway team by @Brody.
Brody
Brody•14mo ago
strange, even if it was sleeping forever, metrics should just show zero, since thats more accurate lol
GetPsyched
GetPsychedOP•14mo ago
lol true
Brody
Brody•14mo ago
team is away right now 😦
Dayblox
Dayblox•14mo ago
I confirm I don't get any metrics to show when apps/databases are sleeping
GetPsyched
GetPsychedOP•14mo ago
Weird I can't see them sleeping either
Dayblox
Dayblox•14mo ago
It doesn't seem to provide any data point to display when sleeping
Brody
Brody•14mo ago
imo they should seed the metrics with zeros while it sleeps
Gambaru Consulting
Gambaru Consulting•14mo ago
Hi All, thanks for starting and adding to this thread, was helpful while testing sleep functionality. Just want to add my experience to the record. FastAPI with ONNX model took 21 minutes to sleep. It shows up as active, but no new usage shows up in metrics, and repeatedly reloading account usage page confirms that it is not accumulating any new usage while asleep. I understand that this is a difficult feature to roll out, so props to the Railway team for finally making it a reality and looking forward to using it more when the kinks are worked out. Once I've woken my service up, I can see the previous usage at zero on the usage tab of the service.
Want results from more Discord servers?
Add your server