Perlbal on danga.com -- config from hell

Brad Fitzpatrick brad at danga.com
Wed Aug 17 16:10:30 PDT 2005


All the domains on danga.com are now behind Perlbal.  Including funky stuff like:

  http://updates.sixapart.com/
and:
  http://danga.com/misc/jsdraw/

Which wouldn't be possible without Perlbal.

Here's our config.  Little ugly, but it works.


LOAD AtomStream
LOAD AtomInject
LOAD jslab
LOAD vhosts

SERVER max_connections = 10000

CREATE POOL rt_mod_perl
  POOL rt_mod_perl ADD 127.0.0.1:83

CREATE POOL apache
  POOL apache ADD 127.0.0.1:86
CREATE SERVICE apache_proxy
  SET role = reverse_proxy
  SET pool = apache
  SET persist_backend = on
  SET backend_persist_cache = 2
  SET verify_backend = on
ENABLE apache_proxy

CREATE POOL danga_mod_perl
  POOL danga_mod_perl ADD 127.0.0.1:81
CREATE SERVICE danga_proxy
  SET role = reverse_proxy
  SET pool = danga_mod_perl
  SET plugins = jslab
  SET persist_backend = on
  SET backend_persist_cache = 2
  SET verify_backend = on
ENABLE danga_proxy

CREATE POOL openid_mod_perl
  POOL openid_mod_perl ADD 127.0.0.1:82
CREATE SERVICE openid_proxy
  SET role = reverse_proxy
  SET pool = openid_mod_perl
  SET backend_persist_cache = 2
  SET verify_backend = on
ENABLE openid_proxy

CREATE SERVICE updates_sixapart
  SET listen = 66.150.15.140:8081
  SET role = web_server
  SET plugins = AtomStream
  SET docroot = /home/bradfitz/updates.sixapart.com/
  SET dirindexing = on
ENABLE updates_sixapart

CREATE SERVICE ljorg
  SET role = web_server
  SET docroot = /home/www/ljorg/htdocs/
  SET dirindexing = on
ENABLE ljorg

CREATE SERVICE bml
  SET role = web_server
  SET docroot = /home/www/bml/htdocs/
  SET dirindexing = on
ENABLE bml

CREATE SERVICE web
 SET listen         = 66.150.15.140:80
 SET role           = selector
 SET plugins        = vhosts
 SET persist_client = on
 VHOST *.openid.net          = openid_proxy
 VHOST *.danga.com           = danga_proxy
 VHOST rt.danga.com          = rt_mod_perl
 VHOST updates.sixapart.com  = updates_sixapart
 VHOST bml.danga.com         = bml
 VHOST *.livejournal.org     = ljorg
 VHOST cvs.livejournal.org   = apache_proxy
 VHOST cvs.danga.com         = apache_proxy
 VHOST *                     = apache_proxy
ENABLE web

CREATE SERVICE mgmt
  SET role = management
  SET listen = 127.0.0.1:8065
ENABLE mgmt

CREATE SERVICE atom_inject
  SET listen = <omitted>
  SET role = web_server
  SET plugins = AtomInject
ENABLE atom_inject


More information about the perlbal mailing list