Forum: NGINX Nginx max connections

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8760b3fd1e6168cad3bb484f598c41ed?d=identicon&s=25 Swish (Guest)
on 2009-02-18 06:25
(Received via mailing list)
Is there any method to tell if Nginx is hitting max connections, other
than
getting a request timeout? Will anything appear in the logs? I ask for
tuning purposes to get the optimal number of worker_processes and
worker_connections. Also, at what point is it better to increase the
worker_processes vs worker_connections, how can you tell what proportion
is
most efficient?
80835c340888c4974dea3bdbfedf22f5?d=identicon&s=25 baalchina (Guest)
on 2009-02-18 11:00
(Received via mailing list)
You can try nginx status module.

  location ~ ^/status/ {
    stub_status on;
     access_log off;
}
then http://yourdoamin/status
you can find the current connections.
96321bb7fd6f712aa7785ce2d58388f2?d=identicon&s=25 Anton Yuzhaninov (Guest)
on 2009-02-18 18:34
(Received via mailing list)
Swish wrote:
> Is there any method to tell if Nginx is hitting max connections, other
> than getting a request timeout? Will anything appear in the logs? I ask
> for tuning purposes to get the optimal number of worker_processes and
> worker_connections. Also, at what point is it better to increase the
> worker_processes vs worker_connections, how can you tell what proportion
> is most efficient?

For tuning purposes it is better to use rrd-graphs.
Here is example (but not best) of how to setup this:
http://blog.kovyrin.net/2006/04/29/monitoring-ngin...
57badfb3e8a4e8a81536f7dc6e47b812?d=identicon&s=25 Joe Van Dyk (Guest)
on 2009-02-19 05:29
(Received via mailing list)
On Wed, Feb 18, 2009 at 9:24 AM, Anton Yuzhaninov <citrin@citrin.ru>
wrote:
> Here is example (but not best) of how to setup this:
> http://blog.kovyrin.net/2006/04/29/monitoring-ngin...

Well, what's the best way of doing it?  :D
96321bb7fd6f712aa7785ce2d58388f2?d=identicon&s=25 Anton Yuzhaninov (Guest)
on 2009-02-19 16:25
(Received via mailing list)
Attachment: nginx-80-nginx-active-2day.png (3 KB)
Attachment: nginx-80-nginx-server-2day.png (4 KB)
Joe Van Dyk wrote:
>> http://blog.kovyrin.net/2006/04/29/monitoring-ngin...
>
> Well, what's the best way of doing it?  :D
>

1. Active connections and other (reading/writing) better to show on
different graphs, because
active >> reading and writing.

2. On graph with requests per second better see 3 lines - accepts,
handled, requests

See attached samples for example.
7b8fb033ada5a3242ebc30d8cd1c1554?d=identicon&s=25 Joe (Guest)
on 2009-02-21 03:37
(Received via mailing list)
Are you using RRD Tools?

Thanks.
This topic is locked and can not be replied to.