Amsterdam-Music-Lab / MUSCLE

An application to easily set up and run online listening experiments for music research.
https://www.amsterdammusiclab.nl/
MIT License
4 stars 1 forks source link

Load balancing #120

Open BeritJanssen opened 2 years ago

BeritJanssen commented 2 years ago

If we have multiple popular experiments running, will servers still handle traffic?

drikusroor commented 9 months ago

Do we have any information about the CPU / RAM usage of the VM, about the percentage of successful / failed requests, and about the average response time?

BeritJanssen commented 9 months ago

We can of course inspect the servers, but I don't know if there are any automated warnings in place if CPU/RAM usage peaks. If not, could we set something like that up via Sentry, too?

drikusroor commented 9 months ago

Judging by this article it is certainly possible to do some performance monitoring. I think this would be primarily for Django API endpoints then. For static files it might be a bit trickier since Sentry (in the browser) might only initialize after other files have been loaded already.

BeritJanssen commented 9 months ago

I do think that Django is the bottleneck here - most of the heavy duty is done in the backend.