Distributed Transactions Flashcards

1
Q

Shared Memory Properties

A
  • Nodes share both RAM and disk
  • Dozens to hundreds of processors
  • Easy to use and program
  • But very expensive to scale
    -> (Cheaper) RDMA may change the picture
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Shared Disk Properties

A
  • All nodes access the same disks
    -> Found in the largest “single-box” (non-cluster) multiprocessors
  • Traditionally: Hard to scale past a certain point
    -> Contention on storage bandwidth
    -> Existing deployments typically have <10 machines
  • Scale to Cloud
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Shared Nothing

A
  • Cluster of machines on high-speed network
  • Each machine has its own memory and disk
  • Most scalable architecture
  • Most difficult to administer and tune
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Ways to implement Distributed Locking

A
  • Centralized: One site does all locking
  • Primary Copy: All locking for an object done at the primary copy site for this object (reading requires access to locking site as well as site where the object is stored)
  • Fully distributed: Locking for a copy done at site where the copy is stored (locks at all sites while writing an object)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Distributed Deadlock Detection

A
  • Each site maintains a local waits-for graph
  • A global deadlock might exist even with acyclic local graphs
  • Three solutions:
    -> Centralized: send all local graphs to one site
    -> Hierarchical: organize sites into a hierarchy and send local graphs to parent in the hierarchy
    -> Timeout: abort transaction if it waits too long
How well did you know this?
1
Not at all
2
3
4
5
Perfectly