Mailing List Archive

moderator and graceful restart
Hello,

we are using apache 1.3.17 and mod_backhand 1.1.1pre3.
After starting apache, the extra moderator task is started.
If we do a graceful restart (using apachectl), the moderator
task is killed and not restarted.
After this the backhand management does no longer work.
Is this behaviour ok?


Best regards

--
Andreas Scherbaum
moderator and graceful restart [ In reply to ]
Andreas Scherbaum wrote:
> we are using apache 1.3.17 and mod_backhand 1.1.1pre3.
> After starting apache, the extra moderator task is started.
> If we do a graceful restart (using apachectl), the moderator
> task is killed and not restarted.
> After this the backhand management does no longer work.
> Is this behaviour ok?

If the moderator is not running and the statistics pages doesn't work (or
shows expired data) then mod_backhand won't do anything useful. So, this
behaviour is not okay.

What OS are you running? If Linux, what distribution?

--
Theo Schlossnagle
1024D/A8EBCF8F/13BD 8C08 6BE2 629A 527E 2DC2 72C2 AD05 A8EB CF8F
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7
Re: moderator and graceful restart [ In reply to ]
Theo E. Schlossnagle wrote:
> > we are using apache 1.3.17 and mod_backhand 1.1.1pre3.
> > After starting apache, the extra moderator task is started.
> > If we do a graceful restart (using apachectl), the moderator
> > task is killed and not restarted.
> > After this the backhand management does no longer work.
> > Is this behaviour ok?
>
> If the moderator is not running and the statistics pages doesn't work (or
> shows expired data) then mod_backhand won't do anything useful. So, this
> behaviour is not okay.
>
> What OS are you running? If Linux, what distribution?

Moderator is not running and the statistic page means, all backhanded
server are down (after a graceful restart).
OS is linux, your own server, not a distri.

--
Andreas Scherbaum
Re: moderator and graceful restart [ In reply to ]
I can't replicate this at all. The moderator should die, but it should be
restarted by the parent Apache process. I have tested it under 1.3.17 and
1.3.19 and it seems to work fine here. Are you running apache as root with
user=nobdy? (i.e. binding to port 80).

Andreas Scherbaum wrote:
> Moderator is not running and the statistic page means, all backhanded
> server are down (after a graceful restart).
> OS is linux, your own server, not a distri.

--
Theo Schlossnagle
1024D/A8EBCF8F/13BD 8C08 6BE2 629A 527E 2DC2 72C2 AD05 A8EB CF8F
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7
Re: moderator and graceful restart [ In reply to ]
Theo E. Schlossnagle wrote:
> I can't replicate this at all. The moderator should die, but it should be
> restarted by the parent Apache process. I have tested it under 1.3.17 and
> 1.3.19 and it seems to work fine here. Are you running apache as root with
> user=nobdy? (i.e. binding to port 80).
>
> Andreas Scherbaum wrote:
> > Moderator is not running and the statistic page means, all backhanded
> > server are down (after a graceful restart).
> > OS is linux, your own server, not a distri.

The moderator dies, but isnt restarted. Same with apache 1.3.19.
Apache has his own userid (around 30 here, depends on the install
procedure).

from the errorlog on the master:

[Thu Mar 8 11:50:19 2001] [notice] mod_backhand -- UnixSocketDir set to
/var/apache/backhand
[Thu Mar 8 11:50:19 2001] [notice] mod_backhand -- Broadcast
192.168.1.6:4445 added
[Thu Mar 8 11:50:20 2001] [notice] mod_backhand -- UnixSocketDir set to
/var/apache/backhand
[Thu Mar 8 11:50:20 2001] [notice] mod_backhand -- Broadcast
192.168.1.6:4445 added
[Thu Mar 8 11:50:20 2001] [notice] backhand_init(10341) spawning
moderator (PID 10342)
[Thu Mar 8 11:50:21 2001] [notice] waiting for mod_backhand moderator
to start
[Thu Mar 8 11:50:21 2001] [notice] mod_backhand moderator ready to go
[Thu Mar 8 11:50:21 2001] [notice] Apache configured -- resuming normal
operations
[Thu Mar 8 11:50:21 2001] [notice] suEXEC mechanism enabled (wrapper:
/opt/apache/sbin/suexec)
[Thu Mar 8 11:51:06 2001] [notice] SIGUSR1 received. Doing graceful
restart
[Thu Mar 8 11:51:07 2001] [notice] mod_backhand -- UnixSocketDir set to
/var/apache/backhand
[Thu Mar 8 11:51:07 2001] [notice] mod_backhand -- Broadcast
192.168.1.6:4445 added
[Thu Mar 8 11:51:07 2001] [notice] Apache configured -- resuming normal
operations
[Thu Mar 8 11:51:07 2001] [notice] suEXEC mechanism enabled (wrapper:
/opt/apache/sbin/suexec)

--
Andreas Scherbaum
Re: moderator and graceful restart [ In reply to ]
Andreas,

Eureka! statically compiled! It all makes sense now.

I see the problem and have fixed it in CVS. I was assuming that mod_backhand
was being unloaded and reloaded. Of course, this doesn't happen when it is
statically compiled in.

I have tested it and replicated your problem when statically compiling it into
apache. The fix seems to work fine for both a static and a dynamic
mod_backhand. And the code is a little cleaner now too :-)

Thanks for the bug report.

And Wesley, thanks for the insight!

> Andreas Scherbaum wrote:
> > Moderator is not running and the statistic page means, all backhanded
> > server are down (after a graceful restart).
> > OS is linux, your own server, not a distri.

Wesley Darlington wrote:
> On Thu, Mar 08, 2001 at 12:00:15AM -0500, Theo E. Schlossnagle wrote:
> > I can't replicate this at all. The moderator should die, but it should be
> > restarted by the parent Apache process. I have tested it under 1.3.17 and
> > 1.3.19 and it seems to work fine here. Are you running apache as root with
> > user=nobdy? (i.e. binding to port 80).
>
> I got this behaviour once, when I compiled backhand in statically...



--
Theo Schlossnagle
1024D/A8EBCF8F/13BD 8C08 6BE2 629A 527E 2DC2 72C2 AD05 A8EB CF8F
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7