Snapshot Algorithm - Working

Working

The snapshot algorithm works like this:

  1. The observer process (the process taking a snapshot):
    1. Saves its own local state
    2. Sends a snapshot request message bearing a snapshot token to all other processes
  2. A process receiving the snapshot token for the first time on any message:
    1. Sends the observer process its own saved state
    2. Attaches the snapshot token to all subsequent messages (to help propagate the snapshot token)
  3. Should a process that has already received the snapshot token receive a message that does not bear the snapshot token, this process will forward that message to the observer process. This message was obviously sent before the snapshot “cut off” (as it does not bear a snapshot token and thus must have come from before the snapshot token was sent out) and needs to be included in the snapshot.

From this, the observer builds up a complete snapshot: a saved state for each process and all messages “in the ether” are saved.

Read more about this topic:  Snapshot Algorithm

Famous quotes containing the word working:

    I shall never send for a priest or recite an Act of Contrition in my last moments. I do not mind if I lose my soul for all eternity. If the kind of God exists Who would damn me for not working out a deal with Him, then that is unfortunate. I should not care to spend eternity in the company of such a person.
    Mary McCarthy (1912–1989)

    Faith is synonymous with working hypothesis.
    William James (1842–1910)

    English audiences of working people are like an instrument that responds to the player. Thought ripples up and down them, and if in some heart the speaker strikes a dissonance there is a swift answer. Always the voice speaks from gallery or pit, the terrible voice which detaches itself in every English crowd, full of caustic wit, full of irony or, maybe, approval.
    Mary Heaton Vorse (1874–1966)