Welcome! Log In Create A New Profile

Advanced

AW: High load due to reload

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 5.9 KB open | download 5hosting GmbH 06/23/2015 Read message
smime.p7s 5.9 KB open | download 5hosting GmbH 07/06/2015 Read message
5hosting GmbH
July 06, 2015 02:48AM
Hi Maxim,

thanks for your explanation. Is there a formula we can use to calculate the
amount of RAM needed in a reload scenario?

Thanks, Jürgen

-----Ursprüngliche Nachricht-----
Von: nginx-bounces@nginx.org [mailto:nginx-bounces@nginx.org] Im Auftrag von
Maxim Dounin
Gesendet: Samstag, 04. Juli 2015 08:05
An: nginx@nginx.org
Betreff: Re: High load due to reload

Hello!

On Tue, Jun 23, 2015 at 11:14:44AM +0200, 5hosting GmbH wrote:

> I have a small problem with a nginx system that acts as a
> loadbalancing proxy. We do have lots of vhosts and ssl certificates
> and each time we do a /etc/init.d/nginx reload, the load of our server
> goes up to 20 due to swapping.
>
> Is there any other way to reload nginx to get aware of ssl or vhost
> changes without getting high loads?

When reloading a configuration, nginx reads a new configuration and starts
new worker process, and then asks old worker processes to terminate
gracefully. See this link for a detailed
description:

http://nginx.org/en/docs/control.html#reconfiguration

This basically means that during configuration reload nginx memory
consumption grows up for a while (and roughly doubles in some cases). You
should tune your system appropriately to make sure there are enough memory
to start new worker processes without swapping. In particular, if most of
the memory is used for nginx buffers (proxy_buffers, proxy_buffer_size, and
so on), tuning these buffers usually is enough.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - smime.p7s (5.9 KB)
Subject Author Posted

High load due to reload Attachments

5hosting GmbH June 23, 2015 05:16AM

Re: High load due to reload

Maxim Dounin July 04, 2015 02:06AM

AW: High load due to reload Attachments

5hosting GmbH July 06, 2015 02:48AM

Re: High load due to reload

Maxim Dounin July 06, 2015 08:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
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