home.social

#gunicorn — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #gunicorn, aggregated by home.social.

fetched live
  1. Graceful Shutdown в Python-приложениях на Kubernetes: внедрение и практический опыт

    Часто ли вы сталкиваетесь с проблемой потери данных, неконсистентными состояниями или ошибками в Sentry о внезапно закрытых соединениях при рестарте сервисов? Если вы когда-нибудь пытались это исправить, то наверняка слышали про Graceful Shutdown. Привет! Меня зовут Антон, я бэкенд-разработчик Python

    habr.com/ru/companies/selectel

    #selectel #python #kubernetes #graceful_shutdown #fastapi #flask #celery #uvicorn #gunicorn #devops

  2. @rixx
    Or add a middleware to strip the body from HEAD responses?

    #django #gunicorn

  3. In case anybody else runs the niche #django + #gunicorn combination: In your Django settings, set LOGGING["loggers"]["gunicorn.http.wsgi"] to {"handlers": ["null"], "propagate": False}

    Or write a custom logging filter, I am not your boss, but I checked and these are currently the only warnings from gunicorn.http.wsgi.

    github.com/pretalx/pretalx/com

  4. Gunicorn now categorises "Framework returns content on HEAD requests" as a bug, and warns about it for every request.

    Django's position is "Web servers should automatically strip the content of responses to HEAD requests while leaving the headers unchanged".

    So, that's fun! 🫠
    (Screenshot shows ASGI commit, but it was added to WSGI too.)

    #django #python #gunicorn

  5. Step-by-Step Guide to Install NetBox on Ubuntu VPS This article provides a step-by-step guide to install NetBox on Ubuntu VPS server. What is NetBox? NetBox is a powerful and versatile open-source ...

    #Guides #Cloud #Dedicated #Hosting #VPS #certbot #gunicorn #install #guide #ip #address

    Origin | Interest | Match
  6. 🚀 How to Deploy Django 6 on Ubuntu VPS Below is a detailed, production-ready guide for How to Deploy Django 6 on Ubuntu VPS. What is Django? Django is a high-level, open-source web framework for...

    #Cloud #Guides #VPS #certbot #django #gunicorn #lets #encrypt #nginx #open #source

    Origin | Interest | Match
  7. @Larvitz

    My deployment workflow for my #Mastodon UI

    1 appimagetool packs #Python, #Gunicorn & web_client.py locally into a fresh AppImage 📦
    2 The script uploads the AppImage to the #NixOS #server via scp 🚀
    3 The #systemd service mastodon-ui is automatically restarted via #ssh 🔄

  8. Отказоустойчивый запуск WSGI приложения. Обзор архитектуры Gunicorn

    Gunicorn кажется простым, пока не сталкиваешься с эксплуатацией: внезапные ошибки 502, зависшие воркеры и странное поведение при перезапусках. За этими симптомами стоят вполне конкретные причины — от медленных клиентов и отсутствия буферизации до особенностей реализации GThread и механики Graceful Shutdown. В этой статье разберём реальные сценарии отказов, посмотрим, как менялась архитектура GThread в разных версиях Gunicorn, и соберём практичную конфигурацию с Nginx, Docker и Kubernetes, которая ведёт себя предсказуемо под нагрузкой.

    habr.com/ru/companies/domclick

    #python #gunicorn #wsgi #prefork #gthread #graceful_shutdown #keepalive #nginx #docker

  9. DuckDuckFedi how do i get the #gunicorn startup tine in my #django application? I can put `startup = datetime.now()` into my __init__.py, but that only gives me the worker startup time, not the app startup time.

    (What i really want is for a view to auto-reload after the template changed in a app update, but ... idk how to do that)

  10. Had a good evening with music and chat via the Doof, pottering around with some CI builds and container hosting, and fixing @bright_helpings 's laptop which had run out of disk space for some reason.

    Finally have a live Django app using gunicorn for the app code and a separate lighttpd container for the static assets.

    #gunicorn #django #lighttpd #docker #cicd

  11. "Gunicorn has been serving Python web applications since 2010. It's downloaded millions of times per month and runs in production at companies of all sizes."
    And if you're a user, you can and should sponsor the volunteers developing it:
    gunicorn.org/sponsor/
    #OpenSource #Python #Gunicorn

  12. How do venvs actually work? The python "binary" inside a venv is just a symlink to the system wide python. The activate script effectively sets VIRTUAL_ENV and prepends PATH. So why can't I have the same effects by just setting those two environment variable manually? Why can't modules of packages installed inside the venv be found by gunicorn when setting both env variables in a systemd unit and starting gunicorn that was installed by apt?
    #python #ubuntu #gunicorn

  13. One would think that after 20 years of #Debian I would be used to all the creative ways things break after a release upgrade. But no, it still manages to surprise me. Looking at you, #Python 3.13 with #Rust bindings behind #Apache wsgi module.

    Steep learning curve in using #gunicorn this evening.

  14. Step-by-Step Guide to Install NetBox on Ubuntu VPS This article provides a step-by-step guide to install NetBox on Ubuntu VPS server. What is NetBox? NetBox is a powerful and versatile open-source ...

    #Guides #Cloud #Dedicated #Hosting #VPS #certbot #gunicorn #install #guide #ip #address

    Origin | Interest | Match
  15. I think I'm going to end up hosting the flask application on #Oracle #cloud free tier, because I don't feel that the amount of website hits to the flask application should crash the server.

    It's a bit of a shame because now I have to remember how to do #nginx and #gunicorn on a straight VM because I think that's all that's available in the Oracle free tier.

  16. Doing some yak shaving today. I am trying to run a #lighttpd container alongside #gunicorn to serve up a #Django app with static resources, but there's no official build on Dockerhub and mostly the community ones are out of date.

    So I'm setting up my own CI project to rebuild a fresh lighttpd container weekly which I can then use as a base for my web app...

  17. So #Python people what's your favourite way to check for vulnerabilities in your #PyPi supply chain?

    My app lives inside a pipenv and everything's installed in that, from #Django to #gunicorn.

  18. How can we #profile a particular module inside of a #gunicorn #python application? Any tips? Or if we can profile the full application properly?

    Have to use local tools, can not use any internet based service. Please boost for more reach.

  19. Архитектура для средненагруженных приложений: делюсь опытом и ищу ваши советы

    Привет, коллеги! Меня зовут Санжар, я бэкенд-разработчик с опытом в настройке серверной инфраструктуры и контейнеризации для средних проектов. Сегодня хочу поделиться схемой архитектуры, которую я часто использую в своих проектах. Это не руководство к действию и не утверждение, что так нужно делать. Скорее, это возможность для меня получить обратную связь и узнать, как сделать лучше. Так что прошу вас, пишите свои идеи и советы в комментариях — это очень важно для меня. 🙂

    habr.com/ru/articles/874414/

    #nextjs #архитектура_приложений #балансировка #python #gunicorn #fastapi #data_base

  20. Holy crap I think I have + + running without warnings or errors. Woo!

  21. @zombiewarrior seriously, no big deal. i was thinking out loud again.

    I had the #gunicorn setup on my dev server. i can't rem if that's ... it's something that lets you deploy Python apps on #NGINX. if i recall correctly

    god i hate going in reverse. i suppose it's better than not going at all.

    Thank you, mister!
    :D

  22. Today is the day where we officially switched to using #uWSGI instead of #Gunicorn.

    After a bunch of read&try&fail&loop, it seems we have a decent uWGSI configuration that is properly managed by our custom #OpenBSD rc.d file. There shouldn’t be any service outage as uwsgi has been running via tmux for 2 weeks now :)

    It seems uWSGI uses less memory that Gunicorn. And it provides information regarding Bot detection.

  23. Давайте сделаем крупное приложение на Flask (язык Python)

    На Хабре я часто вижу статьи о реализации тех или иных фич на Python-фреймворках. Я объединил все эти фичи в реальный проект с открытым исходным кодом , чтобы у вас сложилась целостная картина. Мы с вами создадим UX/UI на Figma, напишем фронтенд на HTML, CSS, SASS, Bootstrap и JavaScript, создадим ER-диаграмму в MySQL Workbench, напишем бекэнд на Flask, создадим регистрацию через социальные сети OAuth 2.0 в один клик, используем брокер сообщений и асинхронную очередь Celery для отправки писем на электронную почту, сделаем WYSIWYG-редактор, реализуем полнотекстовый поиск Elasticsearch, закешируем Redis, покроем тестами pytest и запустим в Docker-контейнерах, поговорим о многопроцессности для WSGI-шлюза Gunicorn.

    habr.com/ru/articles/833446/

    #python #javascript #flask #redis #celery #elasticsearch #sqlalchemy #gunicorn #nginx #cicd

  24. Has anyone else experienced problems running their Django app under a prefix/SCRIPT_NAME since upgrading to Gunicorn 22.0? We simply get a 404 on /app/

    Our Nginx config looks rougly like this: paste.tchncs.de/upload/emu-duc

    #django #flask #gunicorn #webdev #nginx

  25. Gunicorn version 22.0 has been released with a fix for the vulnerablity.

    github.com/benoitc/gunicorn/re

    #Python #Gunicorn

  26. Anyone using Gunicorn for their Python web application should keep an eye out for a new version that fixes CVE-2024-1135.

    CVE: nvd.nist.gov/vuln/detail/CVE-2

    Gunicorn PR: github.com/benoitc/gunicorn/pu

    #Python #Gunicorn

Share on Mastodon

Enter the server where you have an account.