map_hash_*_size

Maxim Dounin mdounin at mdounin.ru
Mon Aug 8 14:39:54 UTC 2011


Hello!

On Mon, Aug 08, 2011 at 10:19:27AM -0400, zflairz wrote:

> I'm getting the error like this:
> nginx: [emerg] could not build the map_hash, you should increase either
> map_hash_max_size: 2048 or map_hash_bucket_size: 64
> 
> I solved it by setting large values to those two variables, but I didn't
> quite the why. Could someone explain more about those two values?
> Thanks!

You may find general description of *_hash_max_size and 
*_hash_bucket_size here:

http://wiki.nginx.org/Optimizations

Original documentation in Russian may be found here:

http://sysoev.ru/nginx/docs/hash.html

Maxim Dounin



More information about the nginx mailing list