. TELAMON
2004-05-05 13:07:02 UTC
Hello,
I am, at present, testing mod_backhand for Load Balancing.
I have written something like a "mod_perl servlet" and its behaviour has changed since I have installed mod_backhand : it seems like ih all the HTTP request were executed twice.
I think that this problem is due to the fact that mod_backhand is started twice as shown in the logs/error_log of Apache :
[Wed May 5 15:03:53 2004] [info] mod_unique_id: using ip addr 127.0.0.1
[Wed May 5 15:03:53 2004] [info] created shared memory segment #1277963
[Wed May 5 15:03:53 2004] [notice] mod_backhand -- UnixSocketDir set to /home/apache/backhand
[Wed May 5 15:03:53 2004] [notice] mod_backhand -- Broadcast 127.0.0.1:4445 added
[Wed May 5 15:03:53 2004] [notice] mod_backhand -- Multicast accept 127.0.0.0/24
[Wed May 5 15:03:54 2004] [notice] backhand_init(19628) spawning moderator (PID 19641)
[Wed May 5 15:03:54 2004] [notice] mod_backhand moderator ready to go
[Wed May 5 15:03:54 2004] [info] mod_unique_id: using ip addr 127.0.0.1
[Wed May 5 15:03:55 2004] [info] created shared memory segment #1310732
[Wed May 5 15:03:55 2004] [notice] mod_backhand -- UnixSocketDir set to /home/apache/backhand
[Wed May 5 15:03:55 2004] [notice] mod_backhand -- Broadcast 127.0.0.1:4445 added
[Wed May 5 15:03:55 2004] [notice] mod_backhand -- Multicast accept 127.0.0.0/24
[Wed May 5 15:03:55 2004] [notice] backhand_init(19642) spawning moderator (PID 19643)
[Wed May 5 15:03:55 2004] [notice] mod_backhand moderator ready to go
[Wed May 5 15:03:55 2004] [info] created shared memory segment #1343501
[Wed May 5 15:03:55 2004] [notice] Apache/1.3.29 (Unix) mod_perl/1.29 mod_backhand/1.2.2 configured -- resuming normal operations
[Wed May 5 15:03:55 2004] [info] Server built: May 5 2004 15:00:55
[Wed May 5 15:03:55 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
I am running Linux Fedora Core 1, this is my compilation/installation od mod_backhand/Apache :
# cd /tmp
# tar xvzf apache_1.3.29.tar.gz
# tar xvzf mod_backhand-1.2.2.tar.gz
# tar xvzf mod_perl-1.0-current.tar.gz
# cd mod_perl-1.29/
# perl Makefile.PL APACHE_SRC=../apache-1.3.29/src PREP_HTTPD=1 DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
# make
# make install
# cd ../mod_backhand-1.2.2/
# ./precompile ../apache_1.3.29/
# cd ../apache_1.3.29/
# ./configure --prefix=/home/apache/ --enable-module=so \
# make install
And my httpd.conf :
<Directory /usr/local/Bus_data/>
AllowOverride None
Options None
Order allow,deny
Allow from all
Backhand byAge 6
Backhand byRandom
Backhand byLogWindow
Backhand byCPU
</Directory>
<IfModule mod_backhand.c>
UnixSocketDir /home/apache/backhand
MulticastStats 127.0.0.1:4445
AcceptStats 127.0.0.0/24
<Location "/backhand/">
SetHandler backhand-handler
</Location>
</IfModule>
Do you have any ideas ?
Thank you by advance
Aymeric Masson
I am, at present, testing mod_backhand for Load Balancing.
I have written something like a "mod_perl servlet" and its behaviour has changed since I have installed mod_backhand : it seems like ih all the HTTP request were executed twice.
I think that this problem is due to the fact that mod_backhand is started twice as shown in the logs/error_log of Apache :
[Wed May 5 15:03:53 2004] [info] mod_unique_id: using ip addr 127.0.0.1
[Wed May 5 15:03:53 2004] [info] created shared memory segment #1277963
[Wed May 5 15:03:53 2004] [notice] mod_backhand -- UnixSocketDir set to /home/apache/backhand
[Wed May 5 15:03:53 2004] [notice] mod_backhand -- Broadcast 127.0.0.1:4445 added
[Wed May 5 15:03:53 2004] [notice] mod_backhand -- Multicast accept 127.0.0.0/24
[Wed May 5 15:03:54 2004] [notice] backhand_init(19628) spawning moderator (PID 19641)
[Wed May 5 15:03:54 2004] [notice] mod_backhand moderator ready to go
[Wed May 5 15:03:54 2004] [info] mod_unique_id: using ip addr 127.0.0.1
[Wed May 5 15:03:55 2004] [info] created shared memory segment #1310732
[Wed May 5 15:03:55 2004] [notice] mod_backhand -- UnixSocketDir set to /home/apache/backhand
[Wed May 5 15:03:55 2004] [notice] mod_backhand -- Broadcast 127.0.0.1:4445 added
[Wed May 5 15:03:55 2004] [notice] mod_backhand -- Multicast accept 127.0.0.0/24
[Wed May 5 15:03:55 2004] [notice] backhand_init(19642) spawning moderator (PID 19643)
[Wed May 5 15:03:55 2004] [notice] mod_backhand moderator ready to go
[Wed May 5 15:03:55 2004] [info] created shared memory segment #1343501
[Wed May 5 15:03:55 2004] [notice] Apache/1.3.29 (Unix) mod_perl/1.29 mod_backhand/1.2.2 configured -- resuming normal operations
[Wed May 5 15:03:55 2004] [info] Server built: May 5 2004 15:00:55
[Wed May 5 15:03:55 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
I am running Linux Fedora Core 1, this is my compilation/installation od mod_backhand/Apache :
# cd /tmp
# tar xvzf apache_1.3.29.tar.gz
# tar xvzf mod_backhand-1.2.2.tar.gz
# tar xvzf mod_perl-1.0-current.tar.gz
# cd mod_perl-1.29/
# perl Makefile.PL APACHE_SRC=../apache-1.3.29/src PREP_HTTPD=1 DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
# make
# make install
# cd ../mod_backhand-1.2.2/
# ./precompile ../apache_1.3.29/
# cd ../apache_1.3.29/
# ./configure --prefix=/home/apache/ --enable-module=so \
--enable-module=rewrite --enable-shared=rewrite \
--enable-module=status --enable-shared=status \
--enable-module=backhand --enable-shared=backhand \
--enable-module=unique_id --activate-module=src/modules/perl/libperl.a
# make--enable-module=status --enable-shared=status \
--enable-module=backhand --enable-shared=backhand \
--enable-module=unique_id --activate-module=src/modules/perl/libperl.a
# make install
And my httpd.conf :
<Directory /usr/local/Bus_data/>
AllowOverride None
Options None
Order allow,deny
Allow from all
Backhand byAge 6
Backhand byRandom
Backhand byLogWindow
Backhand byCPU
</Directory>
<IfModule mod_backhand.c>
UnixSocketDir /home/apache/backhand
MulticastStats 127.0.0.1:4445
AcceptStats 127.0.0.0/24
<Location "/backhand/">
SetHandler backhand-handler
</Location>
</IfModule>
Do you have any ideas ?
Thank you by advance
Aymeric Masson