Replication (6) Flashcards

1
Q

What are the benefits of replication?

A

Better performance(parallel processing of client requests)

Less delay and network traffic because servers can be located closer to clients.

Better availability, if a replicated server fails we can just use a different while fixing it.

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

How can updates be propagated among replicas?

A

Push- based

Pull- based

Hybrid push- pull(lease- based, or pushing invalidations)

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

What is push- based propagation?

A

A replica pushes updates to everyone else.

Could push new data or parameters of update operation.

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

What is pull- based propagation?

A

A replica requests that another send their newest data. They first poll for new data.

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

What is ideal consistency?

A

If a system has ideal consistency it means that its behaviour is identical to a non- replicated system.

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

What is sequential consistency?

A

That for every possible global history produced by a system execution, there should exist a linearisation that fulfils the specification of each object (the order of operations should make sense basically)

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

What is active replication? (aka replicated state machine)

A

Every replica sees the exact same set of update messages in the same order and will process them in that order.

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

What are the advantages of using active replication?

A

Each server can respond to client queries with updated data.

If a server crashes, a different server can immediately complete its queries.

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

What are the limitations of using active replication?

A

Waste of resources since all replicas do the same operation.

It has update propagation only which demands determinism. (I think this means that every replica has to see the same set of update messages in same order)

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

what is passive replication(primary- backup replication)?

A

One server plays a primary role. The primary completes all updates and can propagate them to backups eagerly or lazily.

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

What are some advantages with passive replication compared to active?

A

It can be implemented without deterministic operations.

Easier to implement.

Creates less network traffic during normal operation.

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

What types passive replication have we gone through?

A

Cold backup

Warm backup

Hot standby

Local -write scheme

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

What is cold backup?

A

Only primary server is active. It checkpoints its state to backup periodically.
If primary falters, a backup is initiated.

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

What is warm backup?

A

It is similar to cold backup, but in this type the backup server is partially live so that recovery is quicker.

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

What is hot standby?

A

There is a primary server, but the backup server is also active and is constantly updated about changes in primary’s condition.

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

What is local- write scheme?

A

A type of passive replication where the role of primary migrates between server, for instance if a lot of traffic is expected. If a copy wants to write, it localizes the primary and requests to write.

17
Q

What is quorum- based replication?

A

The updates to state are executed on the majority of replicas. The idea is that clients must request and receive permission from the majority of servers to complete a (write) operation.

18
Q

What are the two rules in the generalized version of quorum- based replication and why do they exist?

A

number of nodes in read quorum: NR
number of nodes in write quorum: WR
Number of nodes in total: N

  1. NR + NW > N
    (prevents read- write conflict)
  2. NW > N / 2
    (prevents write- write conflicts)
19
Q

What does a group membership service do?

A

It does dynamic maintenance of the group. It discovers failures, distributes info about membership changes and does address expansion.

20
Q

What is a view in group communication?

A

A view is the time period between two consecutive membership changes.(node join/leave)
The evolution of the system can be seen as a global sequence of views.

21
Q

What is view delivery/ installation?

A

A member delivering a view happens when a membership occurs and the application is notified of the new membership.

22
Q

What are the basic requirements for view delivery in a membership service?

A

Order: If a process p delivers view v(g) and then v(g’) then no other process can deliver v(g’) before v(g)

Integrity: If process p delivers view v(g) then p is an element in v(g)

Non- triviality: If process q joins a group and becomes reachable from a different process p then q will always be in views delivered by p.