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
8 Replies
Project ID:
152941be-0212-4cbc-8977-c7d8fa719760
Project ID:
152941be-0212-4cbc-8977-c7d8fa719760
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
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
Are you logging all network traffic?
No but hasura logs incoming requests and I've turned on all other possible log types
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.
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.