Why isn't my hasura instance sleeping?

I've setup hasura instance using Dockerfile based on the official hasura image but for some reason it never sleeps On network traffic metrics I see no outbound traffic 152941be-0212-4cbc-8977-c7d8fa719760
No description
8 Replies
Percy
Percy11mo ago
Project ID: 152941be-0212-4cbc-8977-c7d8fa719760
Percy
Percy11mo ago
Project ID: 152941be-0212-4cbc-8977-c7d8fa719760
Fragly
Fragly11mo ago
Your app will sleep after 10 minutes of no outbound traffic but will get woken up after receiving inbound traffic since you have constant inbound traffic, even if your app does sleep - it'll instantly be woken up again
Andrew Bekhiet
Andrew BekhietOP11mo ago
Is there any way I can see where do they come from? Looking at the logs, there doesn't seem to be any network traffic incoming
Adam
Adam11mo ago
Are you logging all network traffic?
Andrew Bekhiet
Andrew BekhietOP11mo ago
No but hasura logs incoming requests and I've turned on all other possible log types
Adam
Adam11mo ago
it looks like your app is receiving consistent inbound traffic, so it’s not going to sleep. Can’t tell you what that is without logs, but it could be any number of things.
svilenvelikov
svilenvelikov10mo ago
Did you try to restart the containers? I had a problem with a Spring project where 1-2 Kbs network outbound traffic was generating between my PostgreSQL and the web project, probably due to the Hikari pool. If I have to manually restart containers - do I have an option to receive an e-mail about my app was activated by a user / no longer in sleep mode? So that I to trace the sleeping process afterwards - will it begin sleep again or I will have to manually restart the containers to make the app sleep.
Want results from more Discord servers?
Add your server