src/http/modules/ngx_http_gzip_filter_module.c tuning

Aleksandar Lazic al-nginx at
Sun Dec 10 13:14:28 MSK 2006


On Son 10.12.2006 13:04, Igor Sysoev wrote:
>On Sun, 10 Dec 2006, Aleksandar Lazic wrote:
>>today I have tested nginx and apache compression behavior with proxied
>>requests and wasn't very happy that apache beats nginx :-/
>>/usr/sbin/ab2 -t 60 -c 5 -H 'Accept-Encoding: gzip' URL
>What backend do you use ?

The backend which was used is Mongrel latest stable.

>There may be follwoing reasons:
>1) by default nginx compresses 1.1 requests only, you may set:
>    gzip_http_version 1.0
>    if ab2 sends 1.0 requests then nginx pass them to backend and
>    backend compresses them.

We will check this.

>2) how many CPUs and hao many worker_processes ?

#CPUs i will ask.
worker_processes 10

>3) instead of "proxy_buffering off" better use
>    proxy_max_temp_file_size  0;

We will check this.

What about the options in the source?


Thanks for help ;-)


More information about the nginx mailing list