Re: could not build the referers_hash

17 views
Skip to first unread message

Cliff Wells

unread,
Mar 29, 2012, 9:41:57 PM3/29/12
to ng...@nginx.org
On Thu, 2012-03-29 at 17:11 -0700, Justin Dorfman wrote:

> nginx: [emerg] could not build the referers_hash, you should increase
> referers_hash_bucket_size: 64


I hate to ask the obvious, but did you try increasing
referers_hash_bucket_size?

server {
referers_hash_bucket_size 128;
}

This variable seems undocumented (aside from a note it appeared in
1.0.5), but the error message appears helpful enough.

Regards,
Cliff


_______________________________________________
nginx mailing list
ng...@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Cliff Wells

unread,
Mar 30, 2012, 11:17:22 AM3/30/12
to ng...@nginx.org
On Thu, 2012-03-29 at 19:04 -0700, Justin Dorfman wrote:
> Hey Cliff,
>
>
> I did, same issue. The way we ended up "fixing" it was deleting all
> of the vhosts and syncing them from another PoP.

How large did you make the value? With a large number of vhosts the
value might need to be significantly higher. Also, I'm not sure of the
context for this value, it might need to be at the http level.

There's also a related value, referers_hash_bucket_size that might need
to be increased.

The only information I found was from this thread (translated from
Russian via google):

2011/7/19 Igor Sysoev <igor@xxxxxxxxx>:
> Changes in nginx 1.0.5 19.07.2011
>
>
> *) Feature: the referer_hash_max_size and
> Referer_hash_bucket_size.
> Thank you Witold Filipczyk.

With these guidelines, there are some problems:
- In the error messages as they are called, and referers_hash_max_size
referers_hash_bucket_size
- The default value for referer_hash_max_size in the error message
described as a 128 (actually - 2048)
- It is not clear how to find exactly where the problem
that is, such as the diagnosis is


nginx: [emerg] could not build the referers_hash, you should increase
referers_hash_bucket_size: 64

But that's not enough, as the context for referer_hash_max_size server
and location

Cliff Wells

unread,
Mar 30, 2012, 5:50:07 PM3/30/12
to ng...@nginx.org
On Fri, 2012-03-30 at 09:08 -0700, Justin Dorfman wrote:
> Hey Cliff,
>
>
> Here are the current values:
>
>
> server_names_hash_max_size 65536;
> server_names_hash_bucket_size 256;

These are not the hashes you are looking for =) Your error message
specified "you should increase referers_hash_bucket_size", indicating
that it is currently 64.

Reply all
Reply to author
Forward
0 new messages