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

Improve nav configuration for 2020 #254

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Improve nav configuration for 2020 #254

wants to merge 2 commits into from

Conversation

johanvdw
Copy link
Member

No description provided.

@@ -6,7 +6,7 @@ After=network.target
User=c3nav
Group=c3nav
WorkingDirectory=/opt/c3nav/src
ExecStart=/opt/c3nav/env/bin/gunicorn --workers 8 --bind unix:/var/run/c3nav/gunicorn-c3nav.sock c3nav.wsgi:application --log-level warning --error-logfile /var/log/c3nav/gunicorn.log --access-logfile /dev/null
ExecStart=/opt/c3nav/env/bin/gunicorn --workers 4 --bind unix:/var/run/c3nav/gunicorn-c3nav.sock c3nav.wsgi:application --log-level warning --error-logfile /var/log/c3nav/gunicorn.log --access-logfile /dev/null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be good to do something like {{ ansible_processor_vcpus }} to make the workers match the number of CPUs on the system. Even with threads, you're likely to be limited to the GIL as a worker CPU limit.

@bastischubert
Copy link
Contributor

Is this PR still relevant or can it be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants