May 17th, 2002

livejournal

Module Name: livejournal
Committed By: bradfitz
Date: Fri May 17 13:45:08 UTC 2002

Modified Files:
---------------
livejournal/cgi-bin: lj-bml-init.pl
livejournal/cgi-bin/Apache: BML.pm LiveJournal.pm
livejournal/htdocs: login.bml talkpost_do.bml

Log Message:
------------
Do webserver logging to the database, like the cool kids do.
Before you bitch, think:

-- mysql is super light-weight, no heavier than syslogd remotely
-- we're using no indexes
-- we get rotation for free (see Apache/LiveJournal.pm)
-- we can compress it super well with myisampack (better than gzip,
since it's per-column)
-- no more scp cron bullshit on web nodes
-- etc
-- etc
-- etc

I've wanted to do this forever, but mod_perl makes it easy and diskless web nodes makes it a requirement now. So hooray!

Also changed in this patch:

-- I was doing some init work in every request that I meant to do
earlier, on server start-up, not in every request. faster now,
and less i/o. hooray^2.


To generate a diff of this commit:
cvs rdiff -r1.23 -r1.24 livejournal/cgi-bin/lj-bml-init.pl
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/lj-bml-init.pl.diff?r1=1.23&r2=1.24
cvs rdiff -r1.23 -r1.24 livejournal/cgi-bin/Apache/BML.pm
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/Apache/BML.pm.diff?r1=1.23&r2=1.24
cvs rdiff -r1.14 -r1.15 livejournal/cgi-bin/Apache/LiveJournal.pm
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/Apache/LiveJournal.pm.diff?r1=1.14&r2=1.15
cvs rdiff -r1.7 -r1.8 livejournal/htdocs/login.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/login.bml.diff?r1=1.7&r2=1.8
cvs rdiff -r1.58 -r1.59 livejournal/htdocs/talkpost_do.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/talkpost_do.bml.diff?r1=1.58&r2=1.59