Inquiry Regarding Hobby Plan and Website Performance
I have a concern regarding the hobby plan. Is there any reason why the first time, after a certain amount of time, when accessing my website, it is slow?
Project ID: 4a09cf4b-0845-4354-9484-08bd863b42c8
Solution:Jump to solution
railway has no cold starts by default, so this has to be something with your app
20 Replies
Project ID:
4a09cf4b-0845-4354-9484-08bd863b42c8
please provide more information, what kind of website? what's your tech stack? how slow are you talking? and anything else you may think is even remotely relevant
Hey Brody!
I develop the eCommerce website in Python using Flask. It's an eCommerce site that currently has no traffic (has not been published or promoted yet). I'm using PostgreSQL as the database. When I mention it being slow, it's only when I access it around 12 hours later. It takes a long time to load any of the pages. After 1-2 minutes, it runs completely smoothly. I don't encounter these types of problems locally.
π
after this 12 hour period, how long would a single page load take?
1-2 minutes aprox
and you're running this flask app with gunicorn right?
Yep!
what's your start command
You mean this?
gunicorn has a request timeout of 30 seconds, I'm not too sure how you would have a singular request that takes 1-2 minutes
I understand... nonetheless, do you know if there's any way to reduce the time, either to 30 seconds or (1-2 minutes)?
I'm not sure where this additional time is coming from, would you happen to have app sleeping enabled?
Where is that enabled/disabled?
in the service settings, it's off by default, and only available to beta users, if you don't see it then it is for sure off
In that case, would there be nothing to do then?
Solution
railway has no cold starts by default, so this has to be something with your app
I mean if this was an issue with railway I would be seeing a whole lot of reports about it
I understand. Well, thank you, Brody π
I really wish I knew what was wrong