Re: Restricting maximum parallel connections

2005-02-06 Thread Pratik
About Stonehenge::Throttle: -It does all important operations inside PerlLogHandler. -For my requirements - where the request is serving large files for download - I will need to move those operations in higher level handlers - Like PerlAccessHandler or PerlInitHandler. -In which case, I'd be do

[OSCon 2005] rfc Inherited Method Handlers for mod_perl

2005-02-06 Thread Nicholas Studt
I'm planning on submitting the following talk proposal for a 45 minute presentation session: Inherited method handlers for mod_perl 1. What is an inherited handler and its benefits (5min) a) Single handler for all packages. b) Speeds code development. c) Removes repeated c

Re: Need help getting DBI to work under mod_perl

2005-02-06 Thread Boysenberry Payne
I think I figured out what's wrong, but I don't know how to correct it. After reading a web-blog that said to rename any fink created conflicting directories namely /sw/lib/mysql or /sw/lib/perl5 I tried it. Nothing worked afterwords. So, I'm guessing I have conflicting modules being used. Try

Re: Restricting maximum parallel connections

2005-02-06 Thread Pratik
On Sun, 06 Feb 2005 16:40:57 -0500, Perrin Harkins <[EMAIL PROTECTED]> wrote: > [ Please keep conversation on the list. ] Oops...sorry for the goof-up. Can't help it :D > You can store simple +1/-1 values if you want to. The interesting part > is that it packs the data into a small fixed-size ch

Re: Restricting maximum parallel connections

2005-02-06 Thread Perrin Harkins
[ Please keep conversation on the list. ] Pratik wrote: He is using it to throttle by CPU, but it's easy to make it use number of connections within a time window instead. But I am more interested in restricting parallel connections rather than request/rate. You can store simple +1/-1 values if yo

Re: mod_perl.c:61: `my_perl' undeclared under Cygwin

2005-02-06 Thread Nick ***
Oops, there are more issues with MP_STATIC_EXTS=1 option. The initial bug is fixed and the httpd executable builds fine, but after that I get this: make[3]: Entering directory `/usr/src/modperl/WrapXS/APR/Base64' cp Base64.pm ../../../blib/lib/APR/Base64.pm make[3]: *** No rule to make target `.

Re: Logging user's movements

2005-02-06 Thread ben syverson
On Feb 6, 2005, at 11:04 AM, Perrin Harkins wrote: Have you ever used an inverted word index? This is what full-text search usually is based on. Searching a million documents efficiently should be no big deal. You also only have to do this as part of the job of creating a new node. You don't

Re: Need help getting DBI to work under mod_perl

2005-02-06 Thread Rici Lake
On 6-Feb-05, at 12:46 PM, Jay Scherrer wrote: Boysenberry Payne wrote: I'm able to run DBI->connect() fine when I run my .pl and .pm scripts as mod_cgi. Once I set up my httpd.conf and startup.pl files it no longer works. I get the following: Can't connect to MySQL server on 'localhost' (49) I can'

Re: Need help getting DBI to work under mod_perl

2005-02-06 Thread Boysenberry Payne
It's localhost, and I did. I'm developing on a local environment. On Feb 6, 2005, at 8:24 AM, Tom Schindl wrote: Give it a try and add the hostname you are connecting to to the DSN. Tom Boysenberry Payne wrote: I'm able to run DBI->connect() fine when I run my .pl and .pm scripts as mod_cgi. Once

Re: mod_perl.c:61: `my_perl' undeclared under Cygwin

2005-02-06 Thread Nick ***
> >Nick *** wrote: >> > >> >Stas Bekman wrote: >> >> Nick *** wrote: >> [...] >> > [...] >> >It's fixed in r149218, was a simply typo in lib/ModPerl/BuildMM.pm >> >> What is 'r149218'? I used the latest svn snapshot from today and it wasn't >> working. >> > >r149218 is su

Re: Restricting maximum parallel connections

2005-02-06 Thread Perrin Harkins
Pratik wrote: I am interested in knowing if I am missing some obvious point here. This mechanism is working nicely. Are there any better alternatives available without any overhead of chache/locking etc. What you're doing sounds fine, but you might be interested in this approach that Randal demons

Re: Need help getting DBI to work under mod_perl

2005-02-06 Thread Jay Scherrer
It's trying to connect to port 49. By default MySQL listens to 3606. Somewhere it was changed. Jay Scherrer On Sunday 06 February 2005 06:24 am, Tom Schindl wrote: > Give it a try and add the hostname you are connecting to to the > DSN. > > Tom > > Boysenberry Payne wrote: > > I'm able to run DBI

Restricting maximum parallel connections

2005-02-06 Thread Pratik
Hi Everyone ! Currently, I am implementing a mechanism to restrict the number of parallel connections to the server from a single client/user. The mechanis is something like : - Use Cache::FastMmap to share the data between multiple processes. - PerlAccessHandler will get the key for cache to g

Re: Logging user's movements

2005-02-06 Thread Perrin Harkins
ben syverson wrote: That's not how it works. The entire cache IS invalidated when a new node is added. What I'm saying is that you only invalidate the entire cache right now because you have no way of telling which nodes are affected by the change. If you had a full-text index, you could effici

Re: Need help getting DBI to work under mod_perl

2005-02-06 Thread jonathan vanasco
On Feb 6, 2005, at 1:09 AM, Boysenberry Payne wrote: I running Mac OS X darwin, and get everything as showing correctly in the %ENV. my $dsn = "DBI:mysql:database=test"; my $test_db = eval{ DBI->connect( $dsn, "...", "...", { RaiseError => 1, PrintError => 1, AutoCommit => 1 } ) }; first off, i'd

Re: Need help getting DBI to work under mod_perl

2005-02-06 Thread Tom Schindl
Give it a try and add the hostname you are connecting to to the DSN. Tom Boysenberry Payne wrote: I'm able to run DBI->connect() fine when I run my .pl and .pm scripts as mod_cgi. Once I set up my httpd.conf and startup.pl files it no longer works. I get the following: Can't connect to MySQL ser