2 messages in ru.sysoev.nginxRe: increasing server_names_hash_buck...
FromSent OnAttachments
rkmr...@public.gmane.orgFeb 26, 2008 1:45 pm 
Igor SysoevFeb 27, 2008 1:32 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: increasing server_names_hash_bucket_sizeActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Feb 27, 2008 1:32:18 am
List:ru.sysoev.nginx

On Tue, Feb 26, 2008 at 01:46:12PM -0800,
rkmr@public.gmane.org wrote:

i have configured nginx for multiple virtual servers, when i start nginx, i get this error:

2008/02/26 13:44:31 [emerg] 18598#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32

if i increase it to 64 or 128 the error is gone and it nginx starts working. now how much to increase this ? 64 or 128 or even higher? is there any performance effect because of this? thanks

You has configured host name that is longer than 27 characters. You should increase server_names_hash_bucket_size to smallest value, 64 in your case. The smaller the better, however, there are no noticeable perfomance effect.