<div dir="ltr">Hi all,<div><br></div><div>I have spent the day troubleshooting why one server in our network reloaded / tested configuration extremely slowly.</div><div><br></div><div>We have found that server_names scales very poorly, once a certain point is reached (approx 5.5k entries globally, 5k entries for a single host) performance drops from a <0.5s reload time to 15s+.</div>

<div><br></div><div>The large host of ~5,000 entries is a malware domain zone and all server names in this zone are using the wildcard name format.</div><div><br></div><div>For now we have resolved this issue by fixing an inefficiency in our configuration (namely using *.<a href="http://domain.com">domain.com</a> and <a href="http://domain.com">domain.com</a>) however I feel this is most likely a bug or at-least an unintended behaviour.</div>

<div><br></div><div>Relevant configuration entries:</div><div>server_names_hash_max_size 8000;<br></div><div>server_names_hash_bucket_size 128;<br></div><div><br></div><div>Regards,</div><div>Mathew</div></div>