I recently moved my django site from Heroku to Render as a Web Service. I’m on the free tier, and I notice the website is very slow and unreliable. I never had these issues on Heroku. I’m not sure what the resource differences are, and I understand that this is a free tier, so I shouldn’t expect much, but I can’t figure out how I can speed things up.
Sometimes, the site loads. But, unpredictably, the site will show a black screen that says “EOF”.
When I check the logs, I see:
Nov 13 07:09:59 PM ==> Starting service with ‘gunicorn doritostats.wsgi:application’
Nov 13 07:10:06 PM [2022-11-13 19:10:06 -0500] [52] [INFO] Starting gunicorn 20.1.0
Nov 13 07:10:06 PM [2022-11-13 19:10:06 -0500] [52] [INFO] Listening at: http://0.0.0.0:10000 (52)
Nov 13 07:10:06 PM [2022-11-13 19:10:06 -0500] [52] [INFO] Using worker: sync
Nov 13 07:10:06 PM [2022-11-13 19:10:06 -0500] [53] [INFO] Booting worker with pid: 53
Nov 13 07:10:06 PM [2022-11-13 19:10:06 -0500] [54] [INFO] Booting worker with pid: 54
Nov 13 07:10:06 PM [2022-11-13 19:10:06 -0500] [55] [INFO] Booting worker with pid: 55
Nov 13 07:10:06 PM [2022-11-13 19:10:06 -0500] [56] [INFO] Booting worker with pid: 56
Nov 13 07:10:37 PM [2022-11-13 19:10:37 -0500] [52] [CRITICAL] WORKER TIMEOUT (pid:53)
Nov 13 07:10:37 PM [2022-11-13 19:10:37 -0500] [53] [INFO] Worker exiting (pid: 53)
Nov 13 07:10:37 PM [BUILDING LEAGUE] Fetching league data…
Nov 13 07:10:37 PM [BUILDING LEAGUE] Gathering roster settings information…
Nov 13 07:10:37 PM [BUILDING LEAGUE] Loading current league details…
Nov 13 07:10:38 PM [2022-11-13 19:10:38 -0500] [52] [WARNING] Worker with pid 53 was terminated due to signal 9
Nov 13 07:10:38 PM [2022-11-13 19:10:38 -0500] [64] [INFO] Booting worker with pid: 64
Nov 13 07:10:46 PM Not Found: /favicon.ico
Nov 13 07:10:46 PM 127.0.0.1 - - [13/Nov/2022:19:10:46 -0500] “GET /favicon.ico HTTP/1.1” 404 3218 “https://doritostats-72na.onrender.com/fantasy_stats/league/2022/1086064/” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36”
Nov 13 07:11:10 PM [2022-11-13 19:11:10 -0500] [52] [CRITICAL] WORKER TIMEOUT (pid:64)
Nov 13 07:11:10 PM [2022-11-13 19:11:10 -0500] [64] [INFO] Worker exiting (pid: 64)
I’m not sure what /favicon.ico is, since it’s nowhere in my codebase.
Any advice?
(also I releaize how difficult it is without knowing what the backend of my site is actually doing).