Re: ApacheCon report

2000-11-01 Thread Leslie Mikesell
According to Michael Blakeley: I'm not following. Everyone agrees that we don't want to have big mod_perl processes waiting on slow clients. The question is whether tuning your socket buffer can provide the same benefits as a proxy server and the conclusion so far is that it

Re: Connection Pooling / TP Monitor

2000-10-30 Thread Leslie Mikesell
According to Gunther Birznieks: I guess part of the question is what is meant by "balanced" with regard to the non-apache back-end servers that was mentioned? I'd be very happy with either a weighted round-robin or a least-connections choice. When the numbers get to the point where it

Re: [OT] Will a cookie traverse ports in the same domain?

2000-10-19 Thread Leslie Mikesell
According to martin langhoff: this HTTP protocol (definition and actual implementation) question is making me mad. Will (and should) a cookie be valid withing the same host/domain/subdirectory when changing PORT numbers? I think this depends on the browser (and its version number).

Re: Wild Proposal :)

2000-10-12 Thread Leslie Mikesell
According to David E. Wheeler: Perrin Harkins wrote: My point was that Apache::DBI already gives you persistent connections, and when people say they want actual pooled connections instead they usually don't have a good reason for it. Let's say that I have 20 customers, each of whom

Re: AuthDBI - semget failed problem

2000-10-03 Thread Leslie Mikesell
According to Pramod Sokke: I'm trying to set up Authentication using Apache::AuthDBI. I'm establishing db connections at startup. I've set $Apache::DBI::DEBUG = 2. When I start the server, I get the following message for every child process: Apache::AuthDBI PerlChildInitHandler

Re: HTML Template Comparison Sheet ETA

2000-09-04 Thread Leslie Mikesell
According to Steve Manes: At 11:26 AM 9/4/00 -0300, Nelson Correa de Toledo Ferraz wrote: I agree that one shouldn't put lots of code inside of a template, but variables and loops are better expressed in Perl than in a "little crippled language". Your example makes perfect sense to me.

Re: problem with mod_proxy/mod_rewrite being used for the front-end proxy

2000-08-21 Thread Leslie Mikesell
According to Greg Stark: This isn't entirely on-topic but it's a solution often suggested for mod_perl users so I suspect there are other users here being bitten by the same problems. In fact the manner in which problems manifest are such that it's possible that many mod_perl users who are

Re: Building mod_perl and mod_jserv into same apache

2000-08-21 Thread Leslie Mikesell
According to Stas Bekman: On Mon, 21 Aug 2000, Jeff Warner wrote: We need to have mod_perl and mod_jserv in the same httpd file. I can build apache 1.3.9 for either mod_perl or mod_jserv using the appropriate make commands from the install docs and they work fine. I've

Re: RFC: Apache::Reload

2000-08-12 Thread Leslie Mikesell
According to Matt Sergeant: package Apache::Reload; What I've always wanted along these lines is the ability to load something in the parent process that would take a list of directories where modules are always checked and reloaded (for your local frequently changed scripts) plus one

Re: Idea of an apache module

2000-07-12 Thread Leslie Mikesell
According to Ken Williams: Another option is to set up whatever handler you want, on a development or staging server (i.e., not the live one), and grab the pages with lynx -dump or GET or an LWP script, and write them to the proper places in the filesystem where the live server can access

Re: mod_perl and FastCGI, again

2000-06-26 Thread Leslie Mikesell
According to Kenneth Lee: Not performance. Not preference. The question is, will mod_fastcgi and mod_perl conflict when both are compiled into Apache? Theoretically not I think. And what would the consequences be? Please comment. I can't see any reason why they should conflict, but I

Re: moving GIF's constantly reloading

2000-06-16 Thread Leslie Mikesell
According to Paul: Moving GIF files on some of our pages seem to *keep* reloading the whole time I stay on the page. My browser is set to only compare a document in its cache to the network version once per session. What gives? I don't see anything in the configs that looks very closely

Re: speed up/load balancing of session-based sites

2000-05-11 Thread Leslie Mikesell
According to Mark Imbriaco: "Perrin" == Perrin Harkins [EMAIL PROTECTED] writes: Perrin I think every RDBMS I've seen, includig MySQL, guarantees Perrin atomicity at this level. Look, Mummy, the funny man said MySQL and RDBMS in the same sentence :) Please don't start on

Re: speed up/load balancing of session-based sites

2000-05-10 Thread Leslie Mikesell
According to G.W. Haywood: Hi there, On Tue, 9 May 2000, Leslie Mikesell wrote: I'm more concerned about dealing with large numbers of simultaneous clients (say 20,000 who all hit at 10 AM) and I've run into problems with both dbm and mysql where at a certain point of write activity

Re: speed up/load balancing of session-based sites

2000-05-09 Thread Leslie Mikesell
According to Tom Mornini: There must be some size where the data values are as easy to pass as the session key, and some size where it becomes slower and more cumbersome. Has anyone pinned down the size where a server-side lookup starts to win? I can't imagine why anyone would pin a

Re: speed up/load balancing of session-based sites

2000-05-08 Thread Leslie Mikesell
According to Jeffrey W. Baker: I keep meaning to write this up as an Apache:: module, but it's pretty trivial to cons up an application-specific version. The only thing this doesn't provide is a way to deal with large data structures. But generally if the application is big enough to

Re: [RFC] modproxy:modperl ratios...

2000-04-27 Thread Leslie Mikesell
According to Matt Sergeant: Is there any benefit of mod_proxy over a real proxy front end like "Oops"? I've run squid as an alternative and did not see any serious differences except that the caching was defeated about 10% of the time even on images, apparently because the clients were hitting

Re: mod_proxy and Name based Virtual Hosts

2000-04-27 Thread Leslie Mikesell
According to Matt Sergeant: OK, just to get this onto a different subject line... I can't seem to get mod_proxy to work on the front end with name based virtual hosts on the backend, I can only get it to work if I have name based virtual hosts on both ends. You should be able to use IP based

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-26 Thread Leslie Mikesell
According to Perrin Harkins: On Tue, 25 Apr 2000 [EMAIL PROTECTED] wrote: With mod_proxy you really only need a few mod_perl processes because no longer is the mod_perl ("heavy") apache process i/o bound. It's now CPU bound. (or should be under heavy load) I think for most of us this

Re: [RFC] modproxy:modperl ratios...

2000-04-26 Thread Leslie Mikesell
According to [EMAIL PROTECTED]: So, overall..., I think that you should consider how many modperl processes you want completely seperately from how many modproxy processes you want. Apache takes care of these details for you. All you need to do is configure MaxClients around the absolute

Re: [RFC] XML/Apache Templating with mod_perl

2000-04-25 Thread Leslie Mikesell
According to Matt Sergeant: In case you missed it - I just announce the Apache XML Delivery Toolkit to both the modperl list and the Perl-XML list. With it you can develop an XSLT Apache module in 13 lines of code (no caching, but it works). I saw it, but perhaps misinterpreted the 'not' in

Re: mod_perl 2.x/perl 5.6.x ?

2000-04-22 Thread Leslie Mikesell
According to Eric Cholet: This is for using Apache 2.0's pthread MPM, of course you can build perl 5.6 non threaded and use apache 2.0's prefork model but then it's not as exciting :-) Does apache 2.0 let you run a prefork model under NT? Les Mikesell [EMAIL PROTECTED]

Re: mod_perl 2.x/perl 5.6.x ?

2000-04-22 Thread Leslie Mikesell
According to Eric Cholet: Does apache 2.0 let you run a prefork model under NT? NT has it's own MPM which is threaded prefork ... Multi Process Model with Preforking (Apache 1.3) dexter Multi Process Model with Threading via Pthreads Constant

Re: Modperl/Apache deficiencies... Memory usage.y

2000-04-16 Thread Leslie Mikesell
According to [EMAIL PROTECTED]: This is basically what you get with the 'two-apache' mode. To be frank... it's not. Not even close. It is the same to the extent that you get a vast reduction in the number of backend mod_perl processes. As I mentioned before, I see a fairly constant

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-16 Thread Leslie Mikesell
According to Gunther Birznieks: If you want the ultimate in clean models, you may want to consider coding in Java Servlets. It tends to be longer to write Java than Perl, but it's much cleaner as all memory is shared and thread-pooling libraries do exist to restrict 1-thread (or few

Re: Modperl/Apache deficiencies... Memory usage.y

2000-04-15 Thread Leslie Mikesell
According to [EMAIL PROTECTED]: Does anyone know of any program which has been developed like this? Basically we'd be turning the "module of apache" portion of mod_perl into a front end to the "application server" portion of mod_perl that would do the actual processing. This is basically

Re: OT: (sort of) AuthDBMUserFile

2000-04-10 Thread Leslie Mikesell
According to Stas Bekman: On Mon, 10 Apr 2000, Bill Jones wrote: AuthDBMUserFile Is there a difference between DBM and GDBM? I always thought they were the same... I found sleepcat (DB) and GDBM, but where is DBM? sleepycat == berkeley db (a product of sleepycat.com) gdbm

Re: mod_perl, Apache and zones?

2000-04-07 Thread Leslie Mikesell
According to John Darrow: I need to be able to run the same sets of pages in several different environments (basically just different environment variables). The problem is that once a process is initiated in a certain environment it can't be changed for the life of the process. The first

Re: external access to intranet

2000-04-05 Thread Leslie Mikesell
According to [Jonas Nordstr_m]: But doesn't that only pass on the request and then return the HTML-files unchanged? I also want to change the links inside the HTML-bodies on the fly, so that the users can continue to "surf the intranet". For example, if the HTML contains "A

Re: mod_perl weaknesses? help me build a case....

2000-04-05 Thread Leslie Mikesell
According to Soulhuntre: Well, let me turn that around, has anyone succeeded in getting mod_perl running well on Apache on win2k? Your problem here is going to be that mod_perl is not thread-safe and will serialize everything when running under the threaded model that apache uses under

Re: external access to intranet

2000-04-05 Thread Leslie Mikesell
According to James Hart: No they won't - the browser will strip the URL seen from its perspective back to the host and add the path. On the scheme Jona describes, where the host the browser sees is 'gateway_server', that would then be retranslated by the proxy into a request for the document

Re: authDBI connect on init?

2000-04-04 Thread Leslie Mikesell
According to Adam Gotheridge: Is there anyway to get AuthDBI to connect on initialization of the web server like you can with "DBI-connect_on_init(...)"? AuthDBI uses DBI, so all you have to do is use Apache::DBI and make sure the connect string is exactly the same. Les Mikesell [EMAIL

Re: Embedded Perl XML Extensions ...

2000-02-14 Thread Leslie Mikesell
According to Joshua Chamas: Will you be able to emulate the IIS/ASP 'transformNode' method that renders html from xml and xsl components? http://www.sci.kun.nl/sigma/Persoonlijk/egonw/xslt/ transformNode XSLT are not on my short list of TODOs for Apache::ASP, though certainly one

Re: What's the benefits of using XML ?

2000-02-11 Thread Leslie Mikesell
According to Perrin Harkins: On Fri, 11 Feb 2000, Matt Sergeant wrote: XML and XSLT can provide this. Rather than write pages to a specific style with toolbars in the right place, and format things how I want them, I can write in XML, and down transform to HTML using a stylesheet. When I

Re: Embedded Perl XML Extensions ...

2000-02-11 Thread Leslie Mikesell
According to Joshua Chamas: I have been thinking about some XML style extensions for Apache::ASP, and know that you are looking at the same thing with Embperl, and was hoping that we could sync up on the APi, so there might be a common mindset for a developer when using our extensions,

Re: Embedded Perl XML Extensions ...

2000-02-11 Thread Leslie Mikesell
According to Gerald Richter: Will you be able to emulate the IIS/ASP 'transformNode' method that renders html from xml and xsl components? I don't know what transform Node exactly does, but I hope we find a common design, which will allow you to easly plug in a module that does

Re: [SITE] possible structure suggestion

2000-02-10 Thread Leslie Mikesell
According to Matt Sergeant: This would be cool. However, in at least a few cases, the PHP docs leave something to be desired. I remember looking up the Oracle connect calls for PHP online once (for 3.0), and having people hold a debate about how a function really worked, because the

Re: Perl and SQL, which is the most scalable SQL server to use?

2000-02-09 Thread Leslie Mikesell
According to Ryan, Aaron: We found that we are quicking using up the max connections to the MySQL database and when we raise the max connection, the performance gets worse. What was MySQL designed to handle, should it be able to handle 2000 connections, or is that outside the scope of

Re: Performance advantages to one large, -or many small mod_perl program?

2000-02-04 Thread Leslie Mikesell
According to Ask Bjoern Hansen: Is there any way to make mod_perl reload modified modules in some directories but not check at all in others? I'd like to avoid the overhead of stat'ing the stable modules every time but still automatically pick up changes in things under development.

Re: Using network appliance Filer with modperl

2000-02-01 Thread Leslie Mikesell
According to Elizabeth Mattijsen: We have been using such a setup for over 2 years now. The only real issue we've found is not so much with mod_perl itself, but with MySQL. If you put your databases on the NetApp, either have a seperate central database server, or make damn sure you do not

Re: Using network appliance Filer with modperl

2000-01-31 Thread Leslie Mikesell
According to Tim Bunce: And, just to be balanced, has anyone _not_ found any 'gotchas' and is enjoying life with a netapp or similar NFS file serving appliance? I haven't really had any gotchas in terms of performance. But you do have to plan things out if you are going to be

Re: splitting mod_perl and sql over machines

2000-01-29 Thread Leslie Mikesell
According to Jeffrey W. Baker: I will address two points: There is a very high degree of parallelism in modern PC architecture. The I/O hardware is helpful here. The machine can do many things while a SCSI subsystem is processing a command, or the network hardware is writing a buffer

Re: squid performance

2000-01-29 Thread Leslie Mikesell
According to Greg Stark: 1) Netscape/IE won't intermix slow dynamic requests with fast static requests on the same keep-alive connection I thought they just opened several connections in parallel without regard for the type of content. Right, that's the problem. If the two

Re: Advise is needed...

2000-01-25 Thread Leslie Mikesell
According to BeerBong: I need protect directory (/abonents) on server. User database lies on Radius Server. I have front-end (apache proxy) + back-end apache servers. I've heard that authentication process must works on front-end server. No, if you are using ProxyPass or RewriteRules

Re: squid performance

2000-01-20 Thread Leslie Mikesell
According to Greg Stark: I think if you can avoid hitting a mod_perl server for the images, you've won more than half the battle, especially on a graphically intensive site. I've learned the hard way that a proxy does not completely replace the need to put images and other other static

Re: Using mod_backhand for load balancing and failover.

2000-01-20 Thread Leslie Mikesell
According to Jeffrey W. Baker: Is anyone using mod_backhand (http://www.backhand.org/) for load balancing? I've been trying to get it to work but it is really flaky. For example, it doesn't seem to distribute requests for static content. Bah. I just started to look at it (and note that

Re: splitting mod_perl and sql over machines

2000-01-18 Thread Leslie Mikesell
According to Stas Bekman: We all know that mod_perl is quite hungry for memory, but when you have lots of SQL requests, the sql engine (mysql in my case) and httpd are competing for memory (also I/O and CPU of course). The simplest solution is to bump in a stronger server until it gets

Re: modperl success story

2000-01-14 Thread Leslie Mikesell
According to Barb and Tim: It could really enhance your integrity if you also presented honest evaluations of the downsides of Perl. Perl has two downsides. One is the start-up time for the program and mod_perl solves this for web pages. The promotion of Perl on this site is so ubiquitous

Has anyone tried mod_backhand?

2000-01-11 Thread Leslie Mikesell
Has anyone tried mod_backhand (in the apache module registry) in a front end apache proxying to multiple mod_perl'd back end servers? It claims to load balance, keeping track of the status and load of the back end servers, which also appear to need the module included. Is there a better free

Re: pool of DB connections ?

1999-11-29 Thread Leslie Mikesell
According to Oleg Bartunov: Currently I have 20 apache servers which handle 20 connections to database. If I want to work with another database I have to create another 20 connections with DB, so I will have 40 postgres backends. This is too much. I didn't write all details but of

Re: Dynamic rewriting

1999-11-24 Thread Leslie Mikesell
According to Atipat Rojnuckarin: Hi, I think mod_rewrite (URI Translation) get called before Apache::AuthenDBI/AuthzDBI, so mod_rewrite has no way of knowing which group a user belongs to. You'll probably need to write your own customized handler(s) to do what you want. Mod_rewrite

Re: Problems with mod_perl 1.2.1 and apache 1.3.9 - newbie - Please help!

1999-11-20 Thread Leslie Mikesell
According to Scott Chapman: I'm new to compiling my own software and attempting to get mod_perl and apache to work together. I have Redhat 6.0. Most Redhat versions have problems that go away if you compile and install your own perl. + doing sanity check on compiler and options ** A test

Re: Stonehenge::Throttle, round 2 - CPU used by an IP

1999-11-16 Thread Leslie Mikesell
According to Randal L. Schwartz: So, I modified my throttler to look at the recent CPU usage over a window for a given IP. If the percentage exceeds a threshold, BOOM they get a 503 error and a correct "Retry-After:" to tell them how long they're banned. How about an option to redirect to

Re: Trying not to re-invent the wheel

1999-11-14 Thread Leslie Mikesell
According to Rasmus Lerdorf: Those introduce more complex problems. And they are, of course, inevitable with almost any templating system. You know, PHP was once just a templating system. [...] Then I figured it would be a good idea to add stuff like IF/LOOPS/etc so I could

mod_proxy_add_forward and logging

1999-11-01 Thread Leslie Mikesell
The recent message about proxy_add_forward reminded me of a simple change I made that might help anyone who wants to track the logs matching the source/destination of proxied requests. I also activated mod_unique_id and in mod_proxy_add_forward, after if (r-proxyreq) {

Re: modperl in practice

1999-10-29 Thread Leslie Mikesell
According to [EMAIL PROTECTED]: I still have resisted the squid layer (dumb stubbornness I think), and instead got myself another IP address on the same interface card, bound the smallest most light weight separate apache to it that I could make, and prefixed all image requests with

Re: Rewrite to handler

1999-10-16 Thread Leslie Mikesell
According to Eric Cholet: What is the most straightforward way to make a RewriteRule map an arbitrary URL directly to a handler? Do you really need to rewrite, I mean can't you just use a Location container ? Yes, that will work, but putting all of the special cases into RewriteRules

Re: Comparison PHP,clean mod_perl script,Apache::ASP,HTML::Embperl

1999-10-04 Thread Leslie Mikesell
According to BeerBong: Huh, another test test.epl According to BeerBong: test.epl -- use DBI; $dbh = DBI-connect("DBI:Oracle:SIMain","test","test"); PHP3 and mod_perl script with DBD::Oracle - 24 Requests per second Is this with or without