What is a crashloop?
Asked Answered
T

1

11

I'm reading Google's Site Reliability Engineering book and ran across the word crashloop which I've never heard before and have not been able to locate a definition

"If a task tries to use more resources than it requested, Borg kills the task and restarts it (as a slowly crashlooping task is usually preferable to a task that hasn’t been restar‐ ted at all)."

What is a crashloop and how does it compare to an infinite loop if at all?

Thionate answered 31/8, 2018 at 15:0 Comment(0)
C
19

A crashloop is when a process crashes and is restarted by a watchdog daemon, indefinitely.

That is, the history is:

  • Process starts at time T.
  • Process crashes at time T+1.
  • Watchdog daemon restarts process.
  • Process started at time T+2.
  • Process crashes at time T+3.
  • Watchdog daemon restarts process.
  • Process starts...etc.

Here, the watchdog deamon is Borg, and the process is encapsulated into a task.


In general, in distributed computing if you want something to eventually succeed, you have to write down your intent for it to be completed and you need a worker to loop continually to act on this intent. This is "at least once delivery" of a work item.

Here, the intent is that the task runs (written down into Borg), and Borg itself is running the loop that is constantly trying to make sure the task runs. This is why when a task crashes, it is restarted. When a task crashes repeatedly, together you end up with a crashloop.

Confluent answered 7/9, 2018 at 4:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.