F
F
FilimoniC2011-06-07 09:46:11
Nginx
FilimoniC, 2011-06-07 09:46:11

What does the ngx_http_degradation_module do

What does the ngx_http_degradation_module do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VBart, 2011-06-07
@FilimoniC

In general, it allows, when a certain amount of memory occupied by the process is exceeded, to return a 204th response or 444 (silently close the connection). And it works mostly only on fryaha up to version 7, because on others malloc can use mmap in certain cases.

V
VBart, 2011-06-07
@VBart

nginx.org/pipermail/nginx-ru/2009-November/029723.html

The module allows you to return 204 or 444 for some locations:
http {
    degradation sbrk=500m;

    server {

       location /some {
           degrade 204;
       }

At the moment it can only be used in cases where sbrk(0)
shows the actual amount of memory allocated by the process. That is, the module
works on FreeBSD up to version 7.0. Starting from 7.0, it works provided
that MALLOC_OPTIONS=Dm. Will not work under Linux.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question