Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick

Fun with web development

So, LiveJournal's growing too fast... it's going to get slow pretty quick here if I don't optimize code and/or add more servers. It's easy to add servers, so I thought a few weeks ago ... let's make it totally scalable ... no files on the disk ... everything in the database, and then the DB is the only bottleneck, and we can always put that on a fast machine, or improve that code ... well, so I'm started moving all the user-uploaded images into the database... that worked... then I wrote a quick FCGI app to serve images.... uh-oh ... binary data in the files (nulls) breaks FCGI and/or Apache ... so I upgraded ... didn't help, although people on the mailing list say it should ... do I have sfio compiled into my Perl? I forget... it's been so damn long. Hmm .. maybe my mod_fcgi ? Damn! It's old ... so's my Apache on this box! Okay, so upgrading all those... fun fun fun. When it's all done, the system will be good as new, and my little 20 line program will work as it should.

Update: 19 minutes later, it's all working.... all it took was a new Apache (1.3.12), new mod_fastcgi (2.2.4), and new (0.52). I'm happy.... I really didn't expect it to work.
Tags: perl, tech

  • Happy Birthday!

    Happy 20th Birthday, LiveJournal! 🐐🎂🎉

  • hi

    Posting from the iPhone app. Maybe I'm unblocked now.

  • Why, hello...

    Long time no see. How's my baby doing?

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.