aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nginx-naxsi/sysguard.conf
blob: 25619d3d4e48a5a1bf91860ccab172168dc0667f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# http://tengine.taobao.org/document/http_sysguard

sysguard on;

sysguard_load load=10.5 action=/loadlimit;
sysguard_mem swapratio=20% action=/swaplimit;
sysguard_mem free=20M action=/freelimit;
sysguard_rt  rt=2.5 period=5s action=/rtlimit;
    
location /loadlimit {
	return 503;
}
    
location /swaplimit {
	return 503;
}
    
location /freelimit {
	return 503;
}
    
location /rtlimit {
	return 503;
}