mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
* add `sysguard.conf` to the sysguard module * fixes `${SVCNAME}` => `${RC_SVCNAME}` in `initd` * add `server_tokens off;` to `default.conf` https://nginx.org/en/CHANGES
25 lines
410 B
Text
25 lines
410 B
Text
# 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;
|
|
}
|
|
|