Adjusting server_names_hash_bucket_size before nginx throws an error

Vladimir Kozyrev v.kozyrev.sa at gmail.com
Thu Jan 12 12:12:30 UTC 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170112/35b35231/attachment.html>


More information about the nginx mailing list