PROPHET/OS

NAME

takeoverv: the carrier of the takeover between two machines (R12-TOLERANZ-01)

SYNOPSIS

takeoverv <peer> <rank> [--port n] [--takt ms] [--frist ms]

DESCRIPTION

takeoverv --once <peer> <rank> ...

The carrier of the takeover between two machines (R12-TOLERANZ-01): it sends this machine's heartbeat on a beat, reads the other one's, and says which of the two drives.

The decision is **not** in this program and may not be: it lies in lib/os/failover.c with every input as an argument, so test failover drives every case without a wire, including the one a wire cannot stage, two machines driving at the same moment.

--once    one beat and one look, then the verdict
--port    the port of the heartbeat, 9999 by default
--takt    the beat in milliseconds, 100 by default
--frist   how long silence means gone, 500 by default

The deadline has to be at least three beats, and a rank of zero and two equal ranks are refused: one lost packet may not declare a machine dead, and two equal ranks have no order to fall back on.

Whether this machine is fit to drive comes out of level in /state/safestate, which is the level of R12-TOLERANZ-02: a machine with something at rest does not drive, not even when the other one is gone.

It says what it decided and it **drives nothing**. A machine that takes over has to hand over its state too, and what that state is is the open half of the entry.

EXAMPLE

$ takeoverv --help
takeoverv <peer> <rank> [--port n] [--takt ms] [--frist ms]
  the carrier of the takeover: sends this machine's heartbeat on
  a beat, reads the other one's, and says which of the two drives
takeoverv --once <peer> <rank> ...
  one beat and one look, then the verdict

SEE ALSO

kernel, state, netd