例の問題

困ったもんだ。

[Fri Feb 28 12:59:10 2003] [warn] (4)Interrupted system call: connect() timed out
[Fri Feb 28 12:59:12 2003] [error] (111)Connection refused: Child 11680 failed to establish umbilical to moderator!

* Apache URL Rewriting Guide

ふむふむ

3. Proxy Throughput Round-Robin 
このやり方では、mod_rewrite とそのプロキシー・スループット機能を使います。
まず、www0.foo.com が実際には DNS で単一のエントリ www.foo.com になるようにします。 
www    IN  CNAME   www0.foo.com.
それから www0.foo.com をプロキシーだけのサーバに変換します。
つまり、届く全ての URL が他の 5 つのサーバ(www1-www5)の一つに対する内部プロキシー
を通じてプッシュされるように、このマシンを設定します。
そのためには、全ての URL に対してロードバランスを取る lb.pl スクリプトと
接触するようなルールセットにします。 
RewriteEngine on
RewriteMap    lb      prg:/path/to/lb.pl
RewriteRule   ^/(.+)$ ${lb:$1}           [P,L]
 
それから lb.pl を書きます: 
$| = 1;
$name   = "www";     # the hostname base
$first  = 1;         # the first server (not 0 here, because 0 is myself)
$last   = 5;         # the last server in the round-robin
$domain = "foo.dom"; # the domainname
$cnt = 0;
while () {
    $cnt = (($cnt+1) % ($last+1-$first));
    $server = sprintf("%s%d.%s", $name, $cnt+$first, $domain);
    print "http://$server/$_";
}
最後に: 何故これが役に立つのでしょう?www0.foo.com がオーバーロードになるように
見えませんか?
答えは yes で、それはオーバーロードになります。
ただし単なるプロキシーのスループットとしてです!
全ての SSI、CGI、ePerl等の処理は完全に他のマシンで行われます。ここがミソです。 

* [m_b_users] Connection Pools in CVS Version

これかな?つまりは、あらゆる BackhandConnectionPools off かな?

I suspected I might be experiencing the looping problem Theo mentioned, so I
updated to the CVS version of mod_backhand recently.
After the upgrade I started getting some odd behaviour with lots of error
messages in the error log. I disabled the connection pools and it seems to
be fine now. Is this a known problem? The log entries are below.