Paxos Flashcards

(11 cards)

1
Q

What is the Paxos algorithm?

A

A consensus algorithm for distributed systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What roles can nodes have in paxos?

A
  1. Proposer
  2. Acceptors
  3. Learners
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a proposer node?

A

A node that suggests values to be chosen, or an update to be made.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an acceptor node?

A

A node that decides which value will be chosen. Once a majority of acceptors agree on a value that value is considered chosen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a learner node?

A

Learners are informed about which value has been chosen. They don’t participate in the decision-making process but need to know the outcome.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does proposal work?

A

Each value is proposed with a unique proposal number, ensuring that proposals are ordered and older ones can be superseded by newer ones.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does a system achieve consensus?

A

The system achieves consensus when a majority of acceptors agree on the same value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a Quoram?

A

A Quorum is a majority of acceptors and is required to proceed with both proposing and accepting value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many phases does Paxos have?

A

Two Phases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What take place in phase 1?

A

A proposer created a prepare message with unique ID, the acceptors promise to ignore any earlier proposals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What takes place in Phase 2?

A

If a proposer has received a majority of promises, it will send an accept message with the ID and value. Learners will then learn the decided value after receiving accepted messages from a majority of acceptors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly