mirror of
https://github.com/flancian/garden.git
synced 2026-08-08 15:36:19 +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");
|
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){
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user