X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2C8A33A496E for ; Thu, 4 Nov 2004 20:31:03 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 09871-07 for ; Thu, 4 Nov 2004 20:30:53 +0000 (GMT) Received: from fep4.cogeco.net (smtp.cogeco.net [216.221.81.25]) by svr1.postgresql.org (Postfix) with ESMTP id 59FD73A492F for ; Thu, 4 Nov 2004 20:30:54 +0000 (GMT) Received: from [127.0.0.1] (d226-34-9.home.cgocable.net [24.226.34.9]) by fep4.cogeco.net (Postfix) with ESMTP id 8ACB452C; Thu, 4 Nov 2004 15:30:34 -0500 (EST) Message-ID: <418A915B.5060600@ethereal-realms.org> Date: Thu, 04 Nov 2004 15:30:19 -0500 From: Martin Foster Organization: Ethereal Realms User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matt Clark , PostgreSQL Performance Subject: Re: Restricting Postgres References: <003301c4c29a$f052d910$8300a8c0@solent> In-Reply-To: <003301c4c29a$f052d910$8300a8c0@solent> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/57 X-Sequence-Number: 9011 Matt Clark wrote: >>Correct the 75% of all hits are on a script that can take >>anywhere from >>a few seconds to a half an hour to complete. The script >>essentially >>auto-flushes to the browser so they get new information as it arrives >>creating the illusion of on demand generation. > > > This is more like a streaming data server, which is a very different beast > from a webserver, and probably better suited to the job. Usually either > multithreaded or single-process using select() (just like Squid). You could > probably build one pretty easily. Using a 30MB Apache process to serve one > client for half an hour seems like a hell of a waste of RAM. > These are CGI scripts at the lowest level, nothing more and nothing less. While I could probably embed a small webserver directly into the perl scripts and run that as a daemon, it would take away the portability that the scripts currently offer. This should be my last question on the matter, does squid report the proper IP address of the client themselves? That's a critical requirement for the scripts. Martin Foster Creator/Designer Ethereal Realms martin@ethereal-realms.org