Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add server_names_hash_bucket_size option in nginx.conf template #88

Closed
frantsao opened this issue Feb 24, 2021 · 0 comments
Closed
Assignees

Comments

@frantsao
Copy link
Contributor

Description

server_names_hash_bucket_size is an option with default value depending on CPU architecture: http://nginx.org/en/docs/http/server_names.html

If a large number of server names are defined, or unusually long server names are defined, tuning the server_names_hash_max_size and server_names_hash_bucket_size directives at the http level may become necessary. The default value of the server_names_hash_bucket_size directive may be equal to 32, or 64, or another value, depending on CPU cache line size.

Why is this needed?

Working with the same configuration on different infrastructure, the service may or may not start, depending on the configuration and the CPU architecture. It is interesting to have that value defined if you want to have the same behavior on different infrastructures.
A common error in this situation is:
Nginx:[emerg] could not build serve server_names_hash_bucket_size: 32 Nginx gives an error

@frantsao frantsao self-assigned this Feb 24, 2021
frantsao pushed a commit that referenced this issue Feb 25, 2021
frantsao pushed a commit that referenced this issue Feb 25, 2021
frantsao pushed a commit that referenced this issue Feb 26, 2021
#88  Add default server_names_hash_bucket_size
frantsao pushed a commit that referenced this issue Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant