ArticleslgStudy

computer science

Failure detector

Failure detector is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Failure detector rather than just read about it. In short: In a distributed computing system, a failure detector is a computer application or a subsystem that is responsible for the detection of node failures or crashes. Failure detectors were first introduced in 1996 by Chandra and Toueg in their book Unreliable Failure Detectors for Reliable Distributed Systems.

Failure detector — main illustration
Failure detector — illustration

Key takeaways

  • Failure detector belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Failure detector to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Failure detector from memory before moving on to harder problems.

Reference excerpt

In a distributed computing system, a failure detector is a computer application or a subsystem that is responsible for the detection of node failures or crashes. Failure detectors were first introduced in 1996 by Chandra and Toueg in their book Unreliable Failure Detectors for Reliable Distributed Systems. The book depicts the failure detector as a tool to improve consensus (the achievement of reliability) and atomic broadcast (the same sequence of messages) in the distributed system. In other words, failure detectors seek errors in the process, and the system will maintain a level of reliability. In practice, after failure detectors spot crashes, the system will ban the processes that are making mistakes to prevent any further serious crashes or errors. In the 21st century, failure detectors are widely used in distributed computing systems to detect application errors, such as a software application stops functioning properly. As the distributed computing projects (see List of distributed computing projects) become more and more popular, the usage of the failure detects also becomes important and critical.

Origin

Unreliable failure detector Chandra and Toueg, the co-authors of the book Unreliable Failure Detectors for Reliable Distributed Systems (1996), approached the concept of detecting failure nodes by introducing the unreliable failure detector. They describe the behavior of an unreliable failure detector in a distributed computing system as: after each process in the system entered a local failure detector component, each local component will examine a portion of all processes within the system. In addition, each process must also contain programs that are currently suspected by failure detectors.

Failure detector

Chandra and Toueg claimed that an unreliable failure detector can still be reliable in detecting the errors made by the system. They generalize unreliable failure detectors to all forms of failure detectors because unreliable failure detectors and failure detectors share the same properties. Furthermore, Chandra and Toueg point out an important fact that the failure detector does not prevent any crashes in the system, even if the crashed program has been suspected previously. The construction of a failure detector is an essential, but a very difficult problem that occurred in the development of the fault-tolerant component in a distributed computer system. As a result, the failure detector was invented because of the need for detecting errors in the massive information transaction in distributed computing systems.

Properties The classes of failure detectors are distinguished by two important properties: completeness and accuracy. Completeness means that the failure detectors would find the programs that finally crashed in a process, whereas accuracy means that correct decisions that the failure detectors made in a process.

Degrees of completeness The degrees of completeness depend on the number of crashed process is suspected by a failure detector in a certain period.

Strong completeness: "every faulty process is eventually permanently suspected by every non-faulty process." Weak completeness: "every faulty process is eventually permanently suspected by some non-faulty process."

Degrees of accuracy The degrees of accuracy depend on the number of mistakes that a failure detector made in a certain period.

Strong accuracy: "no process is suspected (by anybody) before it crashes." Weak accuracy: "some non-faulty process is never suspected." Eventual strong accuracy: "no non-faulty process is suspected after some time since the end of the initial period of chaos as the time at which the last crash occurs." Eventual weak accuracy: "after some initial period of confusion, some non-faulty process is never suspected."

Classification Failure detectors can be categorized in the following eight types:

Perfect failure detector (P) Eventually perfect failure detectors (♦P) Strong failure detectors (S) Eventually strong failure detectors (♦S) Weak failure detectors (W) Eventually weak failure detectors (♦W) Quasi-perfect failure detectors (Q) Eventually quasi-perfect failure detectors (♦Q) The properties of these failure detectors are described below:

In a nutshell, the properties of failure detectors depend on how fast the failure detector detects actual failures and how well it avoids false detection. A perfect failure detector will find all errors without any mistakes, whereas a weak failure detector will not find any errors and make numerous mistakes.

Applications Different types of failure detectors can be obtained by changing the properties of failure detectors. The first examples show that how to increase completeness of a failure detector, and the second example shows that how to change one type of the failure detector to another.

Boosting completeness The following is an example abstracted from the Department of Computer Science at Yale University. It functions by boosting the completeness of a failure detector. From the example above, if p crashes, then the weak-detector will eventually suspect it. All failure detectors in the system will eventually suspect the p because of the infinite loop created by failure detectors. This example also shows that a weak completeness failure detector can also suspect all crashes eventually. The inspection of crashed programs does not depend on completeness.

Reducing a failure detector W to a failure detector S The following are correctness arguments to satisfy the algorithm of changing a failure detector W to a failure detector S. The failure detector W is weak in completeness, and the failure detector S is strong in completeness. They are both weak in accuracy.

It transforms weak completeness into strong completeness. It preserves the perpetual accuracy. It preserves the eventual accuracy. If all arguments above are satisfied, the reduction of a weak failure detector W to a strong failure detector S will agree with the algorithm within the distributed computing system.

See also Distributed computing List of distributed computing projects SWIM Protocol Crash (computing) Fault tolerance Consensus Atomic broadcast

References

External links http://www.cs.yale.edu/homes/aspnes/pinewiki/FailureDetectors.html cornell.edu

Worked examples

Example 1 — a first encounter with Failure detector

Start with the simplest possible case. Write down what Failure detector claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Failure detector before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Failure detector ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Failure detector

In research
Failure detector appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Failure detector in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Failure detector is common in secondary-school and first-year university syllabi. It links to neighbouring topics Distributed computing, Fault-tolerant computer systems, so understanding it makes those chapters shorter.
In everyday life
Look for Failure detector outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Failure detector” →

How to study Failure detector in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Failure detector means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Failure detector out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Failure detector in simple terms?

In a distributed computing system, a failure detector is a computer application or a subsystem that is responsible for the detection of node failures or crashes. Failure detectors were first introduced in 1996 by Chandra and Toueg in their book Unreliable Failure Detectors for Reliable Distributed…

Why does Failure detector matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Failure detector?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Failure detector.

Tags

  • Distributed computing
  • Fault-tolerant computer systems

Keep exploring