atom feed7 messages in ru.sysoev.nginxusing the upstream_hash_module and ha...
FromSent OnAttachments
jackdempseyApr 7, 2009 8:44 am 
Larry BatesApr 7, 2009 9:17 am 
Michael ShadleApr 7, 2009 10:18 am 
jackdempseyApr 7, 2009 10:54 am 
Cliff WellsApr 7, 2009 10:59 am 
Michael ShadleApr 7, 2009 11:16 am 
Cliff WellsApr 7, 2009 12:32 pm 
Subject:using the upstream_hash_module and handling changes when adding new servers
From:jackdempsey (ngin@nginx.us)
Date:Apr 7, 2009 8:44:05 am
List:ru.sysoev.nginx

Hi all,

I'm looking to use the hash module to split out many files across several
servers. I've done some testing, and can confirm the obvious fact that when you
add a new server, some of the files that used to be found at server1 are now
looked for at the new server. One way to handle this would be to copy all of the
files from all servers to the new server. I'd like to avoid this though, and
only have files on the boxes where they're needed.

So, I've looked at the module a bit in the hopes of extracting the logic and
basically allowing myself to say for a file named "foo.html", the hash module
will direct me to serverX. Has anyone does this before? I would imagine this
would be useful to others as well. Going to jump back into the code and trace
through it some more; if anyone has experience in this area, I'd be curious to
see how you handled things.

Thanks much, Jack

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,884,884#msg-884