Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Add example for gunicorn with uvicorn workers #2876

Open
byte-bot-app bot opened this issue Dec 11, 2023 · 3 comments
Open

Docs: Add example for gunicorn with uvicorn workers #2876

byte-bot-app bot opened this issue Dec 11, 2023 · 3 comments
Labels
Documentation 📚 This is related to documentation

Comments

@byte-bot-app
Copy link

byte-bot-app bot commented Dec 11, 2023

Add documentation examples for gunicorn w/ uvicorn workers. See the X post below for a user asking a question on this topic.

Ref:

Bad Messages:

Anyone doing gunicorn w/ unicorn workers?
https://x.com/greeduan/status/1732048433408627005?s=46&t=p4oNoKNiN6WSSW5RCWU7_w
@greeduan
@LitestarAPI
do you have any guide for logging when using gunicorn with uvicorn? Spent a few hours and I still can't figure out how to get the app logs out to the gunicorn logs. Meanwhile with Django it's plug-n-play. Not good for prod.

Reported by peter in Discord: <#919193495690936353>:
no but it would be nice to have an example for that


Note

While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.

Check out all issues funded or available for funding on our Polar.sh dashboard

  • If you would like to see an issue prioritized, make a pledge towards it!
  • We receive the pledge once the issue is completed & verified
  • This, along with engagement in the community, helps us know which features are a priority to our users.
Fund with Polar
@JacobCoffee JacobCoffee changed the title Issue from Discord Docs: Add example for gunicorn with uvicorn workers Dec 11, 2023
@JacobCoffee JacobCoffee added the Documentation 📚 This is related to documentation label Dec 11, 2023
@JacobCoffee
Copy link
Member

JacobCoffee commented Dec 11, 2023

This relates to #2609, partially

@peterschutt
Copy link
Contributor

We were specifically talking about logging with gunicorn workers - great to have a full example, but just want to make sure that the logging topic doesn't get lost.

@provinzkraut
Copy link
Member

Thinking about this, I'm not sure if this is actually Litestar specific? The logging setup of gunicorn with uvicorn workers will be exactly the same as for any other ASGI apps. Maybe we don't need to re-invent the wheel here and could just link to existing documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation 📚 This is related to documentation
Projects
Status: Ideas
Development

No branches or pull requests

3 participants