pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Foster <martin@ethereal-realms.org>
To: Matt Clark <matt@ymogen.net>
To: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: Restricting Postgres
Date: Thu, 04 Nov 2004 15:30:19 -0500
Message-ID: <418A915B.5060600@ethereal-realms.org> (raw)
In-Reply-To: <003301c4c29a$f052d910$8300a8c0@solent>
References: <003301c4c29a$f052d910$8300a8c0@solent>

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





view thread (34+ messages)  latest in thread

Message-ID: <418A915B.5060600@ethereal-realms.org>
Permalink:  ../418A915B.5060600@ethereal-realms.org/
Also on:    postgresql.org/message-id/418A915B.5060600@ethereal-realms.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: martin@ethereal-realms.org, matt@ymogen.net
  Subject: Re: Restricting Postgres
  In-Reply-To: <418A915B.5060600@ethereal-realms.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox