Implement auto-restart on 500s as dirty last measure.

This commit is contained in:
2021-03-07 20:42:26 +01:00
parent ca55564795
commit aef8fbbf52
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -41,6 +41,8 @@ document.addEventListener("DOMContentLoaded", function() {
localStorage.setItem("theme", "light"); localStorage.setItem("theme", "light");
} }
}); });
// this doesn't really work to prevent focus grabbing by etherpad.
document.getElementById("mini-cli").focus();
}); });
function processSettings(args){ function processSettings(args){
+7
View File
@@ -1,8 +1,15 @@
[uwsgi] [uwsgi]
module = app:create_app() module = app:create_app()
touch-reload = /tmp/agora-restart
master = true master = true
processes = 50 processes = 50
socket = /tmp/agora-uwsgi.sock socket = /tmp/agora-uwsgi.sock
chmod-socket = 666 chmod-socket = 666
vacuum = true vacuum = true
die-on-term = true die-on-term = true
; 500s
metric = 500counter
alarm = errors cmd:touch /tmp/restart
metric-alarm = key=500counter,value=5,alarm=errors,rate=60,reset=0
final-route-status = 500 metricinc:500counter