[ClusterLabs] Antw: [EXT] Re: Trying to understand dampening (ping)

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Fri Oct 15 06:09:50 EDT 2021


>>> Andrei Borzenkov <arvidjaar at gmail.com> schrieb am 15.10.2021 um 12:00 in
Nachricht
<CAA91j0XHEqVKEDHatE=qJ2XA58Ye3XKqR5BW3vqXEsiPOdzrHA at mail.gmail.com>:
> On Fri, Oct 15, 2021 at 9:25 AM Klaus Wenninger <kwenning at redhat.com>
wrote:
> 
>> Main pain‑point here is that ping‑RA allows us to configure the count of
pings 
> sent, but it
>> is just using the exit‑value from ping that becomes negative already when
one 
> of the
>> answers is missing.

The manual says:
       If  ping  does  not  receive any reply packets at all it will exit
with
       code 1. If a packet count and deadline are both  specified,  and 
fewer
       than  count  packets are received by the time the deadline has
arrived,
       it will also exit with code 1.  On other error it exits  with  code 
2.
       Otherwise  it exits with code 0. This makes it possible to use the
exit
       code to see if a host is alive or not.

That's odd: The higher the ping count, the more likely an error exit is.

> 
> Use fping instead? Which is supported by ping RA and should behave
> exactly as needed ‑ report host alive if at least one reply was
> received.
> 
> Maybe when using ping RA could also parse ping output instead of
> relying on exit status.
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users 
> 
> ClusterLabs home: https://www.clusterlabs.org/ 





More information about the Users mailing list