问题原文
原帖链接 · BrainStone · CC BY-SA 3.0
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.)
已采纳解答
原帖链接 · Ulfy · CC BY-SA 3.0
You mentioned...
and checked if these keys were set to a different value, which they were not!
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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
