For quite some time now nginx gives me this warning:
nginx: [warn] could not build optimal variables_hash, you should increase either variables_hash_max_size: 1024 or variables_hash_bucket_size: 64; ignoring variables_hash_bucket_size
However in the http block of my config I have this:
http {
# More config...
variables_hash_max_size 1024;
variables_hash_bucket_size 64;
# More config...
}
(Increasing to higher values doesn't solve it either! Also I ran nginx -T
and checked if these keys were set to a different value, which they were not!)
How do I solve this?
(If required I will post more of the config. I'm just not sure which parts are relevant.)
Best Answer
You mentioned...
Was that just spot-checking that declarative, or did you grep the config files? I would do the latter to ensure it isn't declared somewhere else as well.
Paste the results of
nginx -V
.Do you have any extra modules enabled? How high a value did you try? It's possible that you either have modules adding to the variable weight or you have a lot (or lengthy values) declared.