gunicorn

Dash app cannot find pages folder when deploying on GCP using gunicorn

Dash app cannot find pages folder when deploying on GCP using gunicorn Question: I am trying to deploy my dash app which uses dash_extensions, Dash_proxy and has multiple pages in the pages folder on GCP cloud run using gunicorn but the app cannot find the pages folder. It works perfectly fine when I use the …

Total answers: 1

Service gunicorn not starting code=exited, status=203/EXEC

Service gunicorn not starting code=exited, status=203/EXEC Question: I am trying to configure a gunicorn service on an Red hat EC2 vm of amazon. I created the sercvice file, but when I run it and check the status it tells me that it failed: [Unit] Description=Gunicorn instance for a simple hello world app After=network.target [Service] User=ec2-user …

Total answers: 2

Gunicorn: UndefinedTable: relation "user" does not exist

Gunicorn: UndefinedTable: relation "user" does not exist Question: Here is the scenario, I’m deploying the Django app on an ec2 instance. I’m following this guide Digitalocean deployment guide. when I run my app using python manange.py runserver 0.0.0.0:800 and access the admin portal via http://server-ip-address:8000. everything works fine. But when I run gunicorn –bind 0.0.0.0:8000 …

Total answers: 2

Cloud Run with Gunicorn Best-Practise

Cloud Run with Gunicorn Best-Practise Question: I am currently working on a service that is supposed to provide an HTTP endpoint in Cloud Run and I don’t have much experience. I am currently using flask + gunicorn and can also call the service. My main problem now is optimising for multiple simultaneous requests. Currently, the …

Total answers: 2

FastAPI server running on AWS App Runner fails after 24 hours

FastAPI server running on AWS App Runner fails after 24 hours Question: I have a FastAPI server configured with Gunicorn, deployed on AWS App Runner. When I try to access the endpoint, it works perfectly, however, after 24 hours, when I try to access the same endpoint, I get a 502 bad gateway error, and …

Total answers: 1

Gunicorn async and threaded workers for django

Gunicorn async and threaded workers for django Question: Async For input/output(IO) bound we need to use async code and django is not async by default, but we can achieve this running gunicorn with the gevent worker and monkey patching: gunicorn –worker-class=gevent –worker-connections=1000 –workers=3 main:app Gunicorn changelog from 2014 https://docs.gunicorn.org/en/stable/2014-news.html?highlight=monkey#gevent-worker: fix: monkey patching is now done …

Total answers: 2

Django – Loggers are overwriting the previous log file along with the new one

Django – Loggers are overwriting the previous log file along with the new one Question: I am using Django logger for logging along with gunicorn workers. Currently, I am testing with 3 workers and I am using the TimedRotatingFileHandler. I configured when = m and interval = 1, I tried sending some 1000 requests and …

Total answers: 2

Way to pass arguments to FastAPI app via command line

Way to pass arguments to FastAPI app via command line Question: I’m using python 3.8.0 for my FastAPI app. It uses the .env file located on the root of a project directory. I am using the dotenv package, and the location of the .env file is hardcoded within the app. Here is my unit file …

Total answers: 1