Re: implementing server affinity
Chris Nokleberg [EMAIL PROTECTED] writes: Of course, the front-end proxy servers don't have mod_perl, so the TransHandler would have to be written in C (?). Does anyone know of any existing code that does this sort of thing? Or simply well-written C TransHandlers that I could work off of? Is there a better way? How are you doing session management? I'm sure mod_rewrite could peek at the user cookie or mangled URL and redirect accordingly. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Apache, mod_perl, MySQL, Sybase hired gun for, well, hire - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: implementing server affinity
I thought about mod_rewrite but I would like this affinity module to handle the job of picking a random/round-robin backend server and setting the cookie itself. That way I don't have any session mgmt code in the backend server; I will just "know" that certain urls are guaranteed to bring the user back to the same box. --Chris On 22 Nov 2000, David Hodgkinson wrote: Chris Nokleberg [EMAIL PROTECTED] writes: Of course, the front-end proxy servers don't have mod_perl, so the TransHandler would have to be written in C (?). Does anyone know of any existing code that does this sort of thing? Or simply well-written C TransHandlers that I could work off of? Is there a better way? How are you doing session management? I'm sure mod_rewrite could peek at the user cookie or mangled URL and redirect accordingly. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Apache, mod_perl, MySQL, Sybase hired gun for, well, hire - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
implementing server affinity
Most of our pages are served by identical load-balanced boxes, and it doesn't matter which box serves what. However, a few special pages store a lot of per-user session data. Instead of burdening our db machine to store this data, I would like to use the filesystem. This requires that for these special pages, users are assigned a (random) box and are redirected back to that box on subsequent requests (presumably using a cookie). I know that some of load-balancers support this feature, but it seems like it would be relatively simple and efficient to implement by adding a TransHandler to the front-end proxy server on each box. The proxy would connect to a backend mod_perl httpd on a different box if it needed to, for these special pages only. Of course, the front-end proxy servers don't have mod_perl, so the TransHandler would have to be written in C (?). Does anyone know of any existing code that does this sort of thing? Or simply well-written C TransHandlers that I could work off of? Is there a better way? Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]