Welcome! Log In Create A New Profile

Advanced

Adjusting server_names_hash_bucket_size before nginx throws an error

Vladimir Kozyrev
January 12, 2017 07:14AM
My issue is that I add server {} and upstream {} directives dynamically to
/etc/nginx/conf.d/dynamic_vhost.conf.
Once the file grew, nginx stopped working and I increased hash_bucket_size
parameter to make it work again.
Is there a way to calculate what value should I set to hash_bucket_size
parameter for a given number of server {} and upstream {} directives? At
some point, the file will grow big enough to stop nginx from working once
again.
Any advice on how can I prevent that from happening will be appreciated.

Thanks,
Vladimir
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Adjusting server_names_hash_bucket_size before nginx throws an error

Vladimir Kozyrev January 12, 2017 07:14AM

Re: Adjusting server_names_hash_bucket_size before nginx throws an error

Maxim Dounin January 12, 2017 10:40AM

Re: Adjusting server_names_hash_bucket_size before nginx throws an error

Vladimir Kozyrev January 12, 2017 03:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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