Welcome! Log In Create A New Profile

Advanced

Re: nginx high i/o

Stefanita Rares Dumitrescu
November 21, 2009 08:08PM
thanks a bunch. now i understand everything. good nginx lesson today :)

right now i get around 12G memory free, so i might see how it performs
in the future and adjust.

i have worker_connections 8192;

because there are large traffic spikes, and i need to prevent them
server from working slow.





Maxim Dounin wrote:
> Hello!
>
> On Sat, Nov 21, 2009 at 07:48:07PM +0100, Stefanita Rares Dumitrescu wrote:
>
>> fastcgi_buffers 64 64k;
>> fastcgi_buffer_size 64k;
>>
>>
>> i made the following mods in the fastcgi section, and waiting for
>> results. from what i understand:
>>
>> fastcgi_buffers 64 64k;
>>
>> the first 64 is the number of buffers and the second is the buffer
>> size,
>
> Yes. Note well - this numbers specify maximum number of buffers
> allocated *per request*.
>
>> so on a server that takes around 500 hits per second should i
>> increase it, or the value should be just fine ?
>
> Request rate isn't relevant here. It's the number of concurent
> requests that is relevant, including maximum allowed one.
>
> With 64 64k buffers it is possible for request to eat up to 4M of
> memory. With default settings (worker_connections 1024;
> worker_processes 1) this gives up to 4G (4M * 1 * 1024).
> Shouldn't be the problem for server with 16G of memory.
>
> If you have more worker processes and/or more worker connections
> allowed you may consider lowering this value a bit to make sure
> your server can't be DoS'ed by eating all memory for buffers and
> forcing swap activity.
>
> Maxim Dounin
>
>
>>
>> Maxim Dounin wrote:
>>> Hello!
>>>
>>> On Sat, Nov 21, 2009 at 02:19:16PM +0100, Stefanita Rares Dumitrescu wrote:
>>>
>>>> fastcgi_max_temp_file_size 0;
>>>> This directive turns off fastcgi buffering according to the source code.
>>>>
>>>> i did this, and the buffer errors are gone. however, the pages load
>>>> very very slow. take about 5-10 seconds to load the page.
>>> As I already said, switching off disk buffering has it's cost.
>>> Without buffering backend processes will be busy for much longer
>>> time. There is no surprise that the same number of backend
>>> processes is no longer enough.
>>>
>>> Maxim Dounin
>>>
>
Subject Author Posted

nginx high i/o

Stefanita Rares Dumitrescu November 20, 2009 06:26PM

Re: nginx high i/o

Maxim Dounin November 20, 2009 07:22PM

Re: nginx high i/o

Stefanita Rares Dumitrescu November 20, 2009 07:44PM

Re: nginx high i/o

Maxim Dounin November 20, 2009 08:06PM

Re: nginx high i/o

Stefanita Rares Dumitrescu November 21, 2009 08:24AM

Re: nginx high i/o

Maxim Dounin November 21, 2009 12:34PM

Re: nginx high i/o

Stefanita Rares Dumitrescu November 21, 2009 01:54PM

Re: nginx high i/o

Gabriel Ramuglia November 21, 2009 04:04PM

Re: nginx high i/o

Stefanita Rares Dumitrescu November 21, 2009 04:48PM

Re: nginx high i/o

Maxim Dounin November 21, 2009 06:00PM

Re: nginx high i/o

Stefanita Rares Dumitrescu November 21, 2009 08:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready