Re: nginx load balance

2008-06-30 Thread Perrin Harkins
On Mon, Jun 30, 2008 at 11:09 AM, Jeff Peng <[EMAIL PROTECTED]> wrote: > How about Apache::Session? Is it more efficient under modperl? No, it's about the same, and CGI::Session is better maintained. Don't be fooled by the name: CGI::Session works well with mod_perl. - Perrin

Re: nginx load balance

2008-06-30 Thread Jeff Peng
On Mon, Jun 30, 2008 at 11:07 PM, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Mon, Jun 30, 2008 at 11:00 AM, Jeff Peng <[EMAIL PROTECTED]> wrote: >> what's the standard module for storing sessions in a database? > > I recommend CGI::Session. > Yes, currently I'm also using CGI::Session. How abo

Re: nginx load balance

2008-06-30 Thread Perrin Harkins
On Mon, Jun 30, 2008 at 11:00 AM, Jeff Peng <[EMAIL PROTECTED]> wrote: > what's the standard module for storing sessions in a database? I recommend CGI::Session. - Perrin

Re: nginx load balance

2008-06-30 Thread Jeff Peng
Thanks for all. what's the standard module for storing sessions in a database? On Mon, Jun 30, 2008 at 8:43 PM, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Mon, Jun 30, 2008 at 3:18 AM, James Smith <[EMAIL PROTECTED]> wrote: >> I would consider using a shared memory solution to save traffic too

Re: nginx load balance

2008-06-30 Thread Perrin Harkins
On Mon, Jun 30, 2008 at 3:18 AM, James Smith <[EMAIL PROTECTED]> wrote: > I would consider using a shared memory solution to save traffic too > from the database server (consider a solution based on memcached??)... No, don't use memcached for sessions. It's a cache, not a database. It trades reli

Re: nginx load balance

2008-06-30 Thread James Smith
On Sun, 29 Jun 2008, Perrin Harkins wrote: On Sat, Jun 28, 2008 at 9:48 AM, Jeff Peng <[EMAIL PROTECTED]> wrote: But I have a question, does nginx support for session-keeping? A user's request, should go always to the same original backend server. Otherwise the user's session will get lost.

Re: nginx load balance

2008-06-29 Thread Perrin Harkins
On Sat, Jun 28, 2008 at 9:48 AM, Jeff Peng <[EMAIL PROTECTED]> wrote: > But I have a question, does nginx support for session-keeping? > A user's request, should go always to the same original backend server. > Otherwise the user's session will get lost. I would advise you not to do this. It's a

Re: nginx load balance

2008-06-29 Thread Yuri Pac
nginx as a light http\smtp server. It does not do any specific request logic - it specially designed to minimize request cycle times. On Sun, Jun 29, 2008 at 5:03 AM, <[EMAIL PROTECTED]> wrote: > You can specify 'stickysession' which is the name of the cookie or > request param used for session.

Re: nginx load balance

2008-06-28 Thread deepfryed
If you're looking for cookie based session affinity, i suggest you also look at apache+mod_proxy. You can specify 'stickysession' which is the name of the cookie or request param used for session. Cheers, Bharanee

Re: nginx load balance

2008-06-28 Thread Jeff Peng
On Sat, Jun 28, 2008 at 10:14 PM, <[EMAIL PROTECTED]> wrote: > http://wiki.codemongers.com/NginxHttpUpstreamModule > > IP hash based distribution is probably what you want Thanks.Source IP hash sounds a possible way. But, if user's gateway (for local network) has a IP pool, it means the first tim

Re: nginx load balance

2008-06-28 Thread deepfryed
http://wiki.codemongers.com/NginxHttpUpstreamModule IP hash based distribution is probably what you want On 6/28/08, Jeff Peng <[EMAIL PROTECTED]> wrote: > Hello, > > We have some modperl application servers. > Follow the suggestion on this list, I will use a nginx in front of > them to do the lo

nginx load balance

2008-06-28 Thread Jeff Peng
Hello, We have some modperl application servers. Follow the suggestion on this list, I will use a nginx in front of them to do the load balance. But I have a question, does nginx support for session-keeping? A user's request, should go always to the same original backend server. Otherwise the user