Fault-tolerant consensus #
Roughly speaking, a distributed consensus algorithm can tolerate f faults if up to f
processes can be "faulty" and yet the non-faulty processes can still reach a consensus.
The fault we consider here is limited to the crash fault, in which a process stops responding
to messages from some point onward. We do not consider Byzantine faults.
A process p cannot be both faulty and fair in an infinite execution. Note, however, that
it is possible for p to be neither faulty nor fair, because p can keep on receiving messages
but at the same time keep ignoring some messages sent to it.
If the number of faulty processes in an infinite execution is less than the total number of processes, then at least one process is not faulty.
If every process in a set ps is fair, then the number of faulty processes is bounded by
the total number of processes minus the cardinality of ps.
The notion of an infinite admissible execution for an algorithm a with input inp
and containing at most f faulty processes.
An algorithm a terminates with up to f faulty processes iff all its processes terminate
in every infinite admissible execution containing at most f faulty processes.
An algorithm a is a consensus algorithm tolerating up to f faulty processes iff
it both satisfies the consensus safety property a.SafeConsensus and terminates
with up to f faulty processes.
Specialize the definition of Algorithm.AdmissibleRun to the case of zero fault.
If an infinite execution is admissible with up to f faulty processes,
then it is also admissible with up to f' ≥ f faulty processes.
If a is a consensus algorithm tolerating up to f faulty processes,
then it is also a consensus algorithm tolerating up to f' ≤ f faulty processes.
If a process p is not fair in an infinite execution of an algorithm a, then there is
a message that is in-flight to, but never received, by p from some point onward.
In an infinite execution of an algorithm a, a process p is fair iff p is fair in
all suffixes of the execution.