Dear Sir,
Hello !
I have been using mod_backhand with apache 1.3.20 on Solaris9 x86. In
many case , our purpose has been attained. But when I checked the
simple HTML contents , it did not do the load balancing for HTML
contents.
Why ?
I have set the directive as folllows.
Backhand byAge
Backhand byLoad
Backhand bySession FSESSIONID=
We have tryed to get debugging log. Log is as follows.
---------------------------------------------------------------------------------------
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 6 -- headers(6)
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 7 (Chunked) (Keep-Alive)
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 8
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: (29897) Sending back fd(12).
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Request tally 1666 [33]
[Wed Mar 24 00:08:41 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Postread =>) = { DECLINED }
[Wed Mar 24 00:08:41 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Type <=) = { cgi-script, /cgi-bin/test.cgi, (null) }
[Wed Mar 24 00:08:41 2004] [notice] Func executed for (null) [byAge(NULL)] (2 -> 2)
[Wed Mar 24 00:08:41 2004] [notice] New server list: [ 0 1 ]
[Wed Mar 24 00:08:41 2004] [notice] Func executed for (null) [byRandom(NULL)] (2 -> 2)
[Wed Mar 24 00:08:41 2004] [notice] New server list: [ 1 0 ]
[Wed Mar 24 00:08:41 2004] [notice] Func executed for (null) [byLogWindow(NULL)] (2 -> 1)
[Wed Mar 24 00:08:41 2004] [notice] New server list: [ 1 ]
[Wed Mar 24 00:08:41 2004] [notice] Func executed for (null) [byLoad(NULL)] (1 -> 1)
[Wed Mar 24 00:08:41 2004] [notice] New server list: [ 1 ]
[Wed Mar 24 00:08:41 2004] [notice] All funcs executed -> web.flight.co.jp
[Wed Mar 24 00:08:41 2004] [notice] (Type =>) = *{ backhand-redirection, backhand:/cgi-
bin/test.cgi, backhand/redirect }
[Wed Mar 24 00:08:41 2004] [notice] (Postread =>) = { Backhanding to 1 }
[Wed Mar 24 00:08:41 2004] [notice] (Postread =>) = { backhand:/cgi-bin/test.cgi, backhand-
redirection, (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Translate <=) = { backhand:/cgi-bin/test.cgi, backhand-
redirection, (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Type <=) = { backhand-redirection, /cgi-bin/test.cgi, (null)
}
[Wed Mar 24 00:08:41 2004] [notice] (Type =>) = *{ backhand-redirection, /cgi-bin/test.cgi,
(null) }
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Received fd(12).
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 1
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 2
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 3 --
---------------------------------------------------------------------------------------
I have two worrisome points.
One is error messages.
Another is the 'DECLINED' message.
When HTML contents come , mod_backhand seems to give up balancing.
And when cgi contents come , mod_backhand seems to try to do balancing.
The log which was recorded with only HTML contents is as follows.
---------------------------------------------------------------------------------------
[Wed Mar 24 00:11:29 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Postread =>) = { DECLINED }
[Wed Mar 24 00:11:29 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Postread =>) = { DECLINED }
[Wed Mar 24 00:11:29 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
---------------------------------------------------------------------------------------
Why mod_backhand gives up to do load balancing ? We have given heavy
enough load to one server.
Directive is same about HTML and cgi.
## for HTML ##
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/opt/FLIGHTweb/web_service/web_root/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
Backhand byAge
Backhand byLoad
Backhand bySession FSESSIONID=
</Directory>
## for cgi ##
<IfModule mod_alias.c>
Alias /icons/ "/opt/FLIGHTapps/httpd/icons/"
<Directory "/opt/FLIGHTapps/httpd/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/opt/FLIGHTweb/web_service/web_root/cgi-bin/"
<Directory "/opt/FLIGHTweb/web_service/web_root/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
Backhand byAge
Backhand byLoad
Backhand bySession FSESSIONID=
</Directory>
</IfModule>
Best Regards,
Keiichiro Katayama
-------------------------------------------------------------
// Moved to the new office ! //
Keiichiro Katayama
< FLIGHT SYSTEM CONSULTING Inc. >
E-mail : katayama@flight.co.jp
Home Page : http://www.flight.co.jp/
Addr : 3F Ebisu MF BLdg. 4-6-1 , Ebisu , Shibuya-ku , Tokyo JAPAN 150-0013
TEL 81-3-3440-6100 / FAX 81-3-5791-2241
-------------------------------------------------------------
Hello !
I have been using mod_backhand with apache 1.3.20 on Solaris9 x86. In
many case , our purpose has been attained. But when I checked the
simple HTML contents , it did not do the load balancing for HTML
contents.
Why ?
I have set the directive as folllows.
Backhand byAge
Backhand byLoad
Backhand bySession FSESSIONID=
We have tryed to get debugging log. Log is as follows.
---------------------------------------------------------------------------------------
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 6 -- headers(6)
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 7 (Chunked) (Keep-Alive)
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 8
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: (29897) Sending back fd(12).
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Request tally 1666 [33]
[Wed Mar 24 00:08:41 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Postread =>) = { DECLINED }
[Wed Mar 24 00:08:41 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Type <=) = { cgi-script, /cgi-bin/test.cgi, (null) }
[Wed Mar 24 00:08:41 2004] [notice] Func executed for (null) [byAge(NULL)] (2 -> 2)
[Wed Mar 24 00:08:41 2004] [notice] New server list: [ 0 1 ]
[Wed Mar 24 00:08:41 2004] [notice] Func executed for (null) [byRandom(NULL)] (2 -> 2)
[Wed Mar 24 00:08:41 2004] [notice] New server list: [ 1 0 ]
[Wed Mar 24 00:08:41 2004] [notice] Func executed for (null) [byLogWindow(NULL)] (2 -> 1)
[Wed Mar 24 00:08:41 2004] [notice] New server list: [ 1 ]
[Wed Mar 24 00:08:41 2004] [notice] Func executed for (null) [byLoad(NULL)] (1 -> 1)
[Wed Mar 24 00:08:41 2004] [notice] New server list: [ 1 ]
[Wed Mar 24 00:08:41 2004] [notice] All funcs executed -> web.flight.co.jp
[Wed Mar 24 00:08:41 2004] [notice] (Type =>) = *{ backhand-redirection, backhand:/cgi-
bin/test.cgi, backhand/redirect }
[Wed Mar 24 00:08:41 2004] [notice] (Postread =>) = { Backhanding to 1 }
[Wed Mar 24 00:08:41 2004] [notice] (Postread =>) = { backhand:/cgi-bin/test.cgi, backhand-
redirection, (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Translate <=) = { backhand:/cgi-bin/test.cgi, backhand-
redirection, (null) }
[Wed Mar 24 00:08:41 2004] [notice] (Type <=) = { backhand-redirection, /cgi-bin/test.cgi, (null)
}
[Wed Mar 24 00:08:41 2004] [notice] (Type =>) = *{ backhand-redirection, /cgi-bin/test.cgi,
(null) }
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Received fd(12).
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 1
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 2
[Wed Mar 24 00:08:41 2004] [error] mod_backhand: Check 3 --
---------------------------------------------------------------------------------------
I have two worrisome points.
One is error messages.
Another is the 'DECLINED' message.
When HTML contents come , mod_backhand seems to give up balancing.
And when cgi contents come , mod_backhand seems to try to do balancing.
The log which was recorded with only HTML contents is as follows.
---------------------------------------------------------------------------------------
[Wed Mar 24 00:11:29 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Postread =>) = { DECLINED }
[Wed Mar 24 00:11:29 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Postread =>) = { DECLINED }
[Wed Mar 24 00:11:29 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate <=) = { /test1.html, (null), (null) }
[Wed Mar 24 00:11:29 2004] [notice] (Translate =>) = { /test1.html, (null), (null) }
---------------------------------------------------------------------------------------
Why mod_backhand gives up to do load balancing ? We have given heavy
enough load to one server.
Directive is same about HTML and cgi.
## for HTML ##
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/opt/FLIGHTweb/web_service/web_root/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
Backhand byAge
Backhand byLoad
Backhand bySession FSESSIONID=
</Directory>
## for cgi ##
<IfModule mod_alias.c>
Alias /icons/ "/opt/FLIGHTapps/httpd/icons/"
<Directory "/opt/FLIGHTapps/httpd/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/opt/FLIGHTweb/web_service/web_root/cgi-bin/"
<Directory "/opt/FLIGHTweb/web_service/web_root/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
Backhand byAge
Backhand byLoad
Backhand bySession FSESSIONID=
</Directory>
</IfModule>
Best Regards,
Keiichiro Katayama
-------------------------------------------------------------
// Moved to the new office ! //
Keiichiro Katayama
< FLIGHT SYSTEM CONSULTING Inc. >
E-mail : katayama@flight.co.jp
Home Page : http://www.flight.co.jp/
Addr : 3F Ebisu MF BLdg. 4-6-1 , Ebisu , Shibuya-ku , Tokyo JAPAN 150-0013
TEL 81-3-3440-6100 / FAX 81-3-5791-2241
-------------------------------------------------------------