HttpDegradationModule
(Difference between revisions)
(Created page with "= Directives = == degradation == This module allow to return 204 or 444 code for some locations on low memory condition: <geshi lang="nginx"> http { degradation sbrk=50...") |
(→degradation) |
||
| (2 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | = | + | = Synopsis = |
| − | + | ||
| − | + | ||
This module allow to return 204 or 444 code for some locations on low | This module allow to return 204 or 444 code for some locations on low | ||
memory condition: | memory condition: | ||
| Line 16: | Line 14: | ||
</geshi> | </geshi> | ||
| − | Currently it can be used if sbrk(0) syscall reports real memory volume | + | Currently it can be used if sbrk(0) syscall reports real memory volume allocated by a proccess. |
| − | allocated by a proccess. It does not work for Linux and FreeBSD 7.0+ where | + | |
| − | malloc() may use mmap(). It can be used on FreeBSD before 7.0 and on 7.0+ | + | It does not work for Linux and FreeBSD 7.0+ where malloc() may use mmap(). |
| − | if MALLOC_OPTIONS=Dm. | + | It can be used on FreeBSD before 7.0 and on 7.0+ if MALLOC_OPTIONS=Dm. |
| + | |||
| + | = Directives = | ||
| + | |||
| + | == degradation == | ||
| + | '''syntax:''' ''degradation sbrk=mem_used'' | ||
| + | |||
| + | '''default:''' ''none'' | ||
| + | |||
| + | '''context:''' ''http'' | ||
| + | |||
| + | == degrade == | ||
| + | '''syntax:''' ''degrade error_code'' | ||
| + | |||
| + | '''default:''' ''none'' | ||
| + | |||
| + | '''context:''' ''location'' | ||
Latest revision as of 18:05, 30 April 2012
Contents |
[edit] Synopsis
This module allow to return 204 or 444 code for some locations on low memory condition:
Currently it can be used if sbrk(0) syscall reports real memory volume allocated by a proccess.
It does not work for Linux and FreeBSD 7.0+ where malloc() may use mmap(). It can be used on FreeBSD before 7.0 and on 7.0+ if MALLOC_OPTIONS=Dm.
[edit] Directives
[edit] degradation
syntax: degradation sbrk=mem_used
default: none
context: http
[edit] degrade
syntax: degrade error_code
default: none
context: location










