mirror of
https://github.com/flancian/garden.git
synced 2026-08-08 07:26:21 +00:00
Implement auto-restart on 500s as dirty last measure.
This commit is contained in:
@@ -41,6 +41,8 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
localStorage.setItem("theme", "light");
|
||||
}
|
||||
});
|
||||
// this doesn't really work to prevent focus grabbing by etherpad.
|
||||
document.getElementById("mini-cli").focus();
|
||||
});
|
||||
|
||||
function processSettings(args){
|
||||
|
||||
@@ -1,8 +1,15 @@
|
||||
[uwsgi]
|
||||
module = app:create_app()
|
||||
touch-reload = /tmp/agora-restart
|
||||
master = true
|
||||
processes = 50
|
||||
socket = /tmp/agora-uwsgi.sock
|
||||
chmod-socket = 666
|
||||
vacuum = 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
|
||||
|
||||
Reference in New Issue
Block a user