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

Running Mortimer via Gunicorn and Nginx #120

Open
ctreffe opened this issue Apr 18, 2024 · 1 comment
Open

Running Mortimer via Gunicorn and Nginx #120

ctreffe opened this issue Apr 18, 2024 · 1 comment

Comments

@ctreffe
Copy link
Owner

ctreffe commented Apr 18, 2024

On our university servers, we have been running into some wsgi issues, lately. When the general network traffic is heavy (i.e., 10:15 AM, 12:15 PM, 14:15 PM on the first two weeks of courses in every semester), the alfredo3 server randomly responds with Code 503 to simple staticfile requests, which causes both mortimer and alfred experiments to malfunction.

Tracking this issue, I have come to the conclusion that these issues occur when the network is very busy, but are likely caused by apache or wsgi configuration issues. Since monitoring and debugging of apache and mod_wsgi is causing considerable headache for me and as I have wanted to test alfred with nginx for a long time, I propose a new server stack for delivering alfred experiments via mortimer, which is described in more detail in this tutorial:

https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-20-04-de

@jobrachem: What is your opinion on this?

@jobrachem
Copy link
Collaborator

jobrachem commented Apr 18, 2024

As just discussed, I think this is a good idea. This is a nice Youtube tutorial - maybe a little dated, but hopefully the key elements are still there: https://www.youtube.com/watch?v=goToXTC96Co

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

No branches or pull requests

2 participants