<div dir="ltr"><div>My issue is that I add server {} and upstream {} directives dynamically to /etc/nginx/conf.d/dynamic_<wbr>vhost.conf. <br>Once the file grew, nginx stopped working and I increased hash_bucket_size parameter to make it work again. <br>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.<br></div><div>Any advice on how can I prevent that from happening will be appreciated.<br><br></div><div>Thanks,<br></div>Vladimir</div>