Nouvel article sur mon blog : Configuration d'un site avec Apache, Django & Gunicorn
https://l3m.in/article/configuration-d039un-site-avec-apache-django-et-gunicorn
#django #gunicorn #apache #sysadmin
Ran #gunicorn in a #docker container and it writes to console its listening on 127.0.0.1:8000 so I ran with -p 8000:8000 and it fails. It’s _really _ serving at :8080. I have no idea if that’s gunicorn or docker or what, but boy did *that* take a long time to debug. (My image doesn’t have lsof which might have helped.) But it *said* “Listening at 127.0.0.1:8000”! Not surprised I kept trying that port!
So, I got an error 500 on a Django webapp running in production. But no infos from Gunicorn.
I configured Gunicorn to print access logs and error logs into stdout and stderr and tell it to have erro log level:
gunicorn my_app.wsgi:application --bind 0.0.0.0:8000 --workers 3 --log-level error --access-logfile - --error-logfile -
But no errors.
Any idea ?
@hynek I know you have some snippets about using #structlog with #Flask on the docs, bu do you know of a sample repo with something like "this is a sample Flask app with everything set up to show basic request information on stdout and/or a log file using structlog"? Extra points if it has configuration for #gunicorn.
#structlog #flask #gunicorn #logging #Python
🤔 #Serverless OR #VirtualMachine
⚗️ #DataScientist PoV:
Until today, I pushed my statistical models into GCP or AWS platforms. For example, I've used Lambda + SageMaker for model deployment.
Today I've tried something new. I bought #digitalocean droplet with Ubuntu and pushed my model as a #fastapi #gunicorn & #nginx app. It took me around 4 hours to have it working. This is a simple GET endpoint with one param and access token in the header, and it connects to multiple databases (1/2).
#serverless #virtualmachine #datascientist #digitalocean #fastapi #gunicorn #nginx
Très très con ça !
passage d'une appli #django de #python 3.8 à 3.11 ; #gunicorn ne demarre plus à cause de eventlet (et meme avec greenlet) cause ?
https://stackoverflow.com/questions/58589138/error-class-uri-eventlet-invalid-or-not-found
Pour être sûr j'ai retro pédalé en python 3.9 et ca demarre très bien...
Bon en même temps ...
https://github.com/benoitc/gunicorn/milestone/20
Donc testage #uwsgi :P
#uwsgi #gunicorn #python #django
Man, I love #Certbot (@eff). I was thinking "Hmm, I wonder how difficult it is to get #Gunicorn and Nginx to make my little #Flask site support #HTTPS...
Literally just had to run Certbot, select the subdomain, bam, it's working. Amazing. Less time than it took to write this toot.
#letsencrypt #https #flask #gunicorn #certbot
@louis @michael 5 workers with #Gunicorn to deploy a #Python web app can take more than 500MB RAM. You might think that this is not a lot. But today, you can host many containers on one machine. With the CPU and memory usage of Python, you are limited! I don't think that Node is much better, but I have no experience.
My #Axum apps take about 8-20 MB :ferris:
PS: We don't have to discus #Rust performance ;)
anyone using #gunicorn and has experience with dynamically adjusting worker count? https://github.com/benoitc/gunicorn/issues/2952
Forgot to bind my #gunicorn to a port and spent hours figuring out why the hell my @awscloud@twitter.com healthchecks kept failing.🤦♂️🤦♂️ In my defense one of my deployments was successful (though it kept giving 503 but healthchecks passed).
Forgot to bind my #gunicorn to a port and spent hours figuring out why the hell my @awscloud@twitter.com healthchecks kept failing.🤦♂️🤦♂️ In my defense one of my deployments was successful (though it kept giving 503 but healthchecks passed).
Forgot to bind my #gunicorn to a port and spent hours figuring out why the hell were my
@awscloud
healthchecks kept failing.🤦♂️🤦♂️ In my defense one of my deployments was successful (though it kept giving 503 but healthchecks passed).
Forgot to bind my #gunicorn to a port and spent hours figuring out why the hell my
@awscloud
healthchecks kept failing.🤦♂️🤦♂️ In my defense, one of my deployments was successful (though it kept giving 503 healthchecks passed).
Deer #python nerds who use #gunicorn - is it possible to do this neat little trick to make a supervisor server quit if it hasn’t received any requests for a while?
I think would make any python web app easier to run in a scale-to-zero mode with fly.io, a bit like how lights in a building turn themselves off after they’ve been used, without needing to redesign everything just for serverless frameworks.
Como estoy mirando, practicando y haciendo algún que otro curso/tutorial sobre #Kubernetes, he adaptado mi anterior repo de #Docker + #Python 3.8 + #DashPlotly + #GUnicorn 20.1.0 para que pueda desplegarse en un cluster de #K8s con dos comandos -> https://github.com/Inushin/kubernetesDashPlotlyGUnicorn
☸ Kubernetes + Python 3.8 + Dash Plotly + GUnicorn 20.1.0 ☸
👉 https://github.com/Inushin/kubernetesDashPlotlyGUnicorn 👈
#github #Docker #python #Gunicorn #DockerCompose #Dash #DashPlotly #python3 #plotly #repos #kubernetes
#repos #Plotly #python3 #dash #dockercompose #GitHub #k8s #gunicorn #dashplotly #python #docker #kubernetes
Como estoy mirando, practicando y haciendo algún que otro curso/tutorial sobre #Kubernetes, he adaptado mi anterior repo de #Docker + #Python 3.8 + #DashPlotly + #GUnicorn 20.1.0 -> https://github.com/Inushin/dockerDashPlotlyGUnicorn para que pueda desplegarse en un cluster de #K8s con dos comandos -> https://github.com/Inushin/kubernetesDashPlotlyGUnicorn
☸ Kubernetes + Python 3.8 + Dash Plotly + GUnicorn 20.1.0 ☸
👉 https://github.com/Inushin/kubernetesDashPlotlyGUnicorn 👈
#github #Docker #python #Gunicorn #DockerCompose #Dash #DashPlotly #python3 #plotly #repos #kubernetes
#repos #Plotly #python3 #dash #dockercompose #GitHub #k8s #gunicorn #dashplotly #python #docker #kubernetes