[LON-CAPA-dev] "lite"-weight httpd-daemon for serving junk

Gerd Kortemeyer lon-capa-dev@mail.lon-capa.org
Tue, 29 Oct 2002 11:03:49 -0500


This is a multi-part message in MIME format.
--------------0CA923D750714B923718C212
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit



--------------0CA923D750714B923718C212
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Return-Path: <korte@lite.msu.edu>
Received: from lite.msu.edu (kortemey-3.user.msu.edu [35.10.113.125])
	by s16.lite.msu.edu (8.11.6/8.11.6) with ESMTP id g9TG30l31924;
	Tue, 29 Oct 2002 11:03:00 -0500
Message-ID: <3DBEB138.72AFBBB2@lite.msu.edu>
Date: Tue, 29 Oct 2002 11:03:05 -0500
From: Gerd Kortemeyer <korte@lite.msu.edu>
X-Mailer: Mozilla 4.77C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC)
X-Accept-Language: en
MIME-Version: 1.0
To: lon-capa-dev@hobbes.lite.msu.edu
Subject: "lite"-weight httpd-daemon for serving junk
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit

Hi,

As it turns out, httpd-processes are pretty chunky with our heavy
modperl-usage:

www      30527  0.0  3.2 37676 30248 ?       S    Oct28   0:00 httpd
www      30566  0.0  5.4 56484 49624 ?       S    Oct28   0:16 httpd
www      30571  0.0  3.5 39356 32600 ?       S    Oct28   0:00 httpd
www      30574  0.0  7.1 73300 65964 ?       S    Oct28   0:29 httpd
www      30575  0.0  5.1 54068 47068 ?       S    Oct28   0:22 httpd
www      30576  0.0  6.4 67124 59528 ?       S    Oct28   0:28 httpd
www      30580  0.0  3.2 37640 30216 ?       S    Oct28   0:00 httpd
www      30594  0.0  5.5 58408 51128 ?       S    Oct28   0:26 httpd
www      30626  0.0  4.3 47392 40304 ?       S    Oct28   0:09 httpd
www      30627  0.0  5.6 58904 51404 ?       S    Oct28   0:24 httpd
www      30735  0.0  3.2 37640 30216 ?       S    00:04   0:00 httpd
www      30736  0.0  4.5 49156 42088 ?       S    00:04   0:06 httpd
www      30749  0.0  4.4 47476 40420 ?       S    00:20   0:17 httpd
www      30766  0.0  3.2 37640 30216 ?       S    00:56   0:00 httpd
www      30767  0.0  3.2 37640 30216 ?       S    00:56   0:00 httpd
www      30768  0.0  3.2 37640 30216 ?       S    00:56   0:00 httpd

I wonder if it would make sense to run a small lightweight server on
another port to serve our public static resources, like the header-gifs,
remote control characters, RAT GIFs, etc:

  http://www.acme.com/software/thttpd/

Because of our access control, replication, and logging, however, it is
not possible to serve all static resources this way.

An alternative would be to install a second Apache on another port, and
have it load only the bare minimum modperls, like lonacc.pm and
lonnet.pm (which do load a bunch of others, but still not the full
codebase). See

  http://take23.org/docs/guide/strategy.xml/3

We could direct the simple GIFs directly to the port of the
lightweight-Apache, and have the <img>, <embed>, and <applet>-tags add
the port address of the lightweight Apache. In a way, this would be a
safe transition: if we do a good job of distinguishing "static" from
"non-static" requests, the children of the second Apache would remain
small, but if we mess up, things would keep running - it's just that the
children of the second Apache would grow.

I hesitate to introduce the big revolution in LON-CAPA architecture,
since we need to aim for stability. Any ideas/input?

- Gerd.

--------------0CA923D750714B923718C212--