Re: mod_perl caching problem

2008-06-28 Thread william
Hello, Sorry for the late of reply, I just solve it yesterday. It's
because a module of mine is using the global variable
our @array = ();

When I migrate from CGI to mod_perl, I forgot to fix that. Now I just
understand that because mod_perl only compile once, and the subsequent
execution of global variables are remembered. So I solved it by
reseting that global variable before that global variable is used.


Thanks.

On 6/27/08, Perrin Harkins <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 24, 2008 at 9:07 AM, william <[EMAIL PROTECTED]> wrote:
>  > Before asking here, I had read a few articles in perl.apache.org about
>  > caching issue in mod_perl, but I still don't get it right with my
>  > program when I had already changed the input, it still giving me the
>  > result of old input.
>
>
> Are you still having trouble with this, or did you fix the problem?
>
>
>  - Perrin
>


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's session will get lost.

Thanks!

-- 
Regards,
Jeff. - [EMAIL PROTECTED]


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 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's session will get lost.
>
> Thanks!
>
> --
> Regards,
> Jeff. - [EMAIL PROTECTED]
>


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 time user's request was outgoing with IP 11.11.11.11, but next
time the request maybe will go out with IP 22.22.22.22.
How about this case?

-- 
Regards,
Jeff. - [EMAIL PROTECTED]


Re: Apache::Template for modperl 2

2008-06-28 Thread Geoffrey Young



Fred Moyer wrote:

Senthil V wrote:

Hi All,

I am trying to install Apache::Template for Apache 2.2.8. 
Whether the porting of Apache::Template is done for modperl  2.
If its done, plz let me know from where i can get the source.


I just took a look at Apache::Template, and it is only for mod_perl 
version 1.


The port to mod_perl 2 looks straightforward, if I can scrape up some 
extra tuits this weekend I might take run at that.


google should have turned up this:

http://www.modperlcookbook.org/~geoff/modules/experimental/Apache-Template-2.00_01.tar.gz

there was quite a bit of conversation about it on the TT list at the 
time, as well as some chatter here.


--Geoff


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