Welcome! Log In Create A New Profile

Advanced

Re: Use primes for hashtable size

June 02, 2017 07:52AM
We are loading around 10,000 - 15,000 server_names per server. We also have
a fair number of SSL certificates and at-least one big geo map as well
which probably do contribute.

At around 2,000 - 3,000 we hit our first issues with server_name and had to
alter the hash table max. Which brought the loading speed back up (which
has slowly regressed as we got bigger)

Honestly I don't consider it unacceptable, but if this patch comes with no
runtime performance penalty why wouldnt we want it? There are advantages to
faster startup (incident recovery, quicker reconfiguration etc)

On Fri, Jun 2, 2017 at 9:46 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Fri, Jun 02, 2017 at 10:56:31AM +1000, Mathew Heard wrote:
>
> > If this actually yields a decrease in start time while not introducing
> > other effects we would use it. Our start time of a couple minutes is
> > annoying at times.
>
> Do you have any details of what contributes to the start time in
> your case?
>
> In general, nginx trades start time to faster operation once
> started, and trying to build minimal hash is an example of this
> practice. If it results in unacceptable start times we certainly
> should optimize it, though I don't think I've seen such cases in
> my practice.
>
> Most time-consuming things during start I've seen so far are:
>
> - multiple DNS names in the configuration and slow system
> resolver;
>
> - multiple SSL certificates;
>
> - very large geo{} maps.
>
> --
> Maxim Dounin
> http://nginx.org/
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Use primes for hashtable size Attachments

Andrew Borodin 740 May 30, 2017 06:30AM

Re: Use primes for hashtable size

Maxim Dounin 492 May 30, 2017 09:04AM

Re: Use primes for hashtable size

Andrew Borodin 485 June 01, 2017 07:56AM

Re: Use primes for hashtable size

Maxim Dounin 451 June 01, 2017 01:40PM

Re: Use primes for hashtable size

Andrew Borodin 430 June 01, 2017 01:58PM

Re: Use primes for hashtable size

splitice 551 June 01, 2017 08:58PM

Re: Use primes for hashtable size

Maxim Dounin 393 June 02, 2017 07:48AM

Re: Use primes for hashtable size

splitice 560 June 02, 2017 07:52AM

Re: Use primes for hashtable size

Andrew Borodin 463 June 03, 2017 02:02AM

Re: Use primes for hashtable size

Andrew Borodin 471 June 04, 2017 02:24PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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