SlideShare a Scribd company logo
Leases: An Efficient Fault Tolerant
Mechanism for Distributed File
Presented by Lingxiang Tai
Part I - Problem With Distributed
System Caching
Background
Caching is mechanism to improve the speed and
performance of the system by replicating copies of
frequently accessed data.
● Complexity of ensuring consistency
○ with reams of clients, one can modify data
without consent of the others, cause the stale
data reading for the others.
● Complication of communication and host failtures
(Non-Byzantine failure)
○ Message lost due to these failures
Part II- Lease
Lease
● General Meaning
○ A lease is a contract that give its holder specified right
over property for a limited period of time.
● Caching Meaning
○ A lease is promise by the server that it will not conduct
any writes to the datum covered by your lease before
asking you for consent or waiting for the lease’s expiry
a granted period of time
Read And Write under Lease
● Read
○ First access will get the copy and a term of lease(eg: 10 seconds)
○ Latter read (within 10s) use the cached copy
○ Latter read (beyond 10s) require server to refresh data and Lease
● Write (here only consider write through)
○ client send write to server directly.
○ server defer the request until all the files’ leaseholder granted
approvals or all these leases expired
client
(cache)
server
Read Write
Short Term Lease
● Main Prons
○ Deferring write request, server will wait for a failed client to grant approval,
short term lease expiring fast.
○ When a server crashed, recovery work should wait all those leases granted
before to expire, short term lease make make it quick.
○ Short term lease can minimize the overhead callback in False Sharing cases.
(False Sharing means a client holds a relative long lease, while it’s not currently
accessing it)
Long Term Lease
● Main Prons
○ better for the files accessed repeatedly and have relatively little
write-sharing.
○ Especially, for the read-only file, you can take the lease as a infinite value.
Part III- Lease Analysis
How to chose a lease term
● It is a trade off between minimizing the lease extension overhead versus
minimizing false sharing
● If we can build a function with lease term (variable X) and other target
Metric (variable Y), we can distinguish it much easier.
○ y = Y(x)
Performance parameters
● N number of clients
● R rate of reads for each client
● W rate of writes for each client
● mprop
propagation delay for a message
● mproc
time to process a message (send or receive)
● ε allowance for uncertainty in clocks
● ts
lease term at server
● tc
lease term at client
Server load
● define the Y1
as the observable server load
○ Y1
=
Average latency
● define the Y2
as the observable average latency
○ Y2
=
Average latency(under a delay of network)
● base on average latency,we added 100ms
to the network latency
Conclusion
● Lease have the benefit of increasing the ratio of clients to servers (by reducing the
consistency overhead), thereby reducing the cost (or improving the performance ) of
large-scale systems.
Part IV - Others
Options for lease management
● Separate the files apart according to file’s characteristics, with the different leases to
manage them (improve the both performance for R&W)
● Group a batch of files managed with a same lease (can reduce the number of lease, server
lease overload and so on)
● Let the server multicast the lease extension periodically to all clients, rather client’s
fetching. (reduce the traffic to contact with every client & reduce the server’s track work of
every leaseholder)
Fault Tolerance
● Client Failure
○ No impact to READ,short delay for other client WRITE
● Server Failure
○ Client with old lease can still be accessed to READ but lease extension is shortly
delayed;
○ WRITE operation will be shortly delayed untill server is recovered from crash.
● Physical Clock drift
○ see next sheet...
Physical Clock Drift
● Server clock advances
○ server may allow a WRITE before the term of
a lease held by a previous client has expired
at that client.
● Client clock slows
○ client may still use a lease which the server regards as having expired.
● Server clock slows
○ no inconsistency, but generate extra traffic(sever always gives clients a “expired
lease”)
● Client clock advances
○ no inconsistency, but generate extra traffic (sever always gives clients a “expired
lease”)
Server
Client
Reading Source
Thank You !

More Related Content

PDF
Introduction to GCP
PPTX
key management in cryptography and network security
PDF
Mod05lec21(sla tutorial)
PPTX
Stream oriented communication
PDF
Introduction to Distributed System
PDF
Multiprocessing operating systems
PPTX
Introduction to Distributed System
PPTX
Scope of parallelism
Introduction to GCP
key management in cryptography and network security
Mod05lec21(sla tutorial)
Stream oriented communication
Introduction to Distributed System
Multiprocessing operating systems
Introduction to Distributed System
Scope of parallelism

What's hot (20)

PPTX
CLOUD COMPUTING UNIT-1
PDF
drag and drop.pdf
PDF
Introduction to Vault
PPT
multiprocessors and multicomputers
PDF
Course outline of parallel and distributed computing
PPT
HCI 3e - Ch 8: Implementation support
PPTX
Concurrency Control in Distributed Systems.pptx
PDF
Symmetric Cipher Model, Substitution techniques, Transposition techniques, St...
PDF
Human computer interaction-web interface design and mobile eco system
PPTX
cloud computing, Principle and Paradigms: 1 introdution
PPT
HCI 3e - Ch 13: Socio-organizational issues and stakeholder requirements
PPTX
Distributed system architecture
PPT
message passing
PPTX
unit 4.pptx of hash function in cryptography
PDF
Mobile Design
PPTX
5. message authentication and hash function
PDF
Mobile 2.0
PPT
1.intro. to distributed system
PPTX
High performance computing
PPT
Cloud Computing - Benefits and Challenges
CLOUD COMPUTING UNIT-1
drag and drop.pdf
Introduction to Vault
multiprocessors and multicomputers
Course outline of parallel and distributed computing
HCI 3e - Ch 8: Implementation support
Concurrency Control in Distributed Systems.pptx
Symmetric Cipher Model, Substitution techniques, Transposition techniques, St...
Human computer interaction-web interface design and mobile eco system
cloud computing, Principle and Paradigms: 1 introdution
HCI 3e - Ch 13: Socio-organizational issues and stakeholder requirements
Distributed system architecture
message passing
unit 4.pptx of hash function in cryptography
Mobile Design
5. message authentication and hash function
Mobile 2.0
1.intro. to distributed system
High performance computing
Cloud Computing - Benefits and Challenges
Ad

Similar to [Paper Reading] Leases: An Efficient Fault-Tolerant Mechanism for Distributed File Cache Consistency (20)

PPT
Lease Fault Tolerance New
PPT
Centrifuge
PDF
quota-voucher-paper.pdf
PPT
Dfs (Distributed computing)
PPT
Chapter 17 - Distributed File Systems
PPT
Ch16 OS
 
PPT
PPTX
Distributed file systems chapter 9
PPT
운영체제론 Ch17
PPT
PPT
nfs.ppt
PPT
DISTRIBUTED FILE SYSTEM- Design principles, consistency models
PPT
Introduction to distributed file systems
PPTX
Directory Write Leases in MagFS
PDF
Priority based scheduling for Lease management in cloud computing
PPT
Distributed File System.ppt
PDF
KoprowskiT_SQLSat152_Bulgaria_HighAvailabilityOfSQLintheContextOfSLA
PDF
Don’t give up, You can... Cache!
PDF
Optimizing Uptime in SOA
Lease Fault Tolerance New
Centrifuge
quota-voucher-paper.pdf
Dfs (Distributed computing)
Chapter 17 - Distributed File Systems
Ch16 OS
 
Distributed file systems chapter 9
운영체제론 Ch17
nfs.ppt
DISTRIBUTED FILE SYSTEM- Design principles, consistency models
Introduction to distributed file systems
Directory Write Leases in MagFS
Priority based scheduling for Lease management in cloud computing
Distributed File System.ppt
KoprowskiT_SQLSat152_Bulgaria_HighAvailabilityOfSQLintheContextOfSLA
Don’t give up, You can... Cache!
Optimizing Uptime in SOA
Ad

More from PingCAP (20)

PPTX
[Paper Reading] Efficient Query Processing with Optimistically Compressed Has...
PDF
[Paper Reading]Orca: A Modular Query Optimizer Architecture for Big Data
PPTX
[Paper Reading]KVSSD: Close integration of LSM trees and flash translation la...
PPTX
[Paper Reading]Chucky: A Succinct Cuckoo Filter for LSM-Tree
PPTX
[Paper Reading]The Bw-Tree: A B-tree for New Hardware Platforms
PPTX
[Paper Reading] QAGen: Generating query-aware test databases
PDF
[Paper reading] Interleaving with Coroutines: A Practical Approach for Robust...
PDF
[Paperreading] Paxos made easy (by sen han)
PPTX
[Paper Reading] Generalized Sub-Query Fusion for Eliminating Redundant I/O fr...
PDF
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
PDF
The Dark Side Of Go -- Go runtime related problems in TiDB in production
PDF
TiDB DevCon 2020 Opening Keynote
PDF
Finding Logic Bugs in Database Management Systems
PDF
Chaos Practice in PingCAP
PDF
TiDB at PayPay
PPTX
Paper Reading: FPTree
PPTX
Paper Reading: Smooth Scan
PPTX
Paper Reading: Flexible Paxos
PPTX
Paper reading: Cost-based Query Transformation in Oracle
PPTX
Paper reading: HashKV and beyond
[Paper Reading] Efficient Query Processing with Optimistically Compressed Has...
[Paper Reading]Orca: A Modular Query Optimizer Architecture for Big Data
[Paper Reading]KVSSD: Close integration of LSM trees and flash translation la...
[Paper Reading]Chucky: A Succinct Cuckoo Filter for LSM-Tree
[Paper Reading]The Bw-Tree: A B-tree for New Hardware Platforms
[Paper Reading] QAGen: Generating query-aware test databases
[Paper reading] Interleaving with Coroutines: A Practical Approach for Robust...
[Paperreading] Paxos made easy (by sen han)
[Paper Reading] Generalized Sub-Query Fusion for Eliminating Redundant I/O fr...
[Paper Reading] Steering Query Optimizers: A Practical Take on Big Data Workl...
The Dark Side Of Go -- Go runtime related problems in TiDB in production
TiDB DevCon 2020 Opening Keynote
Finding Logic Bugs in Database Management Systems
Chaos Practice in PingCAP
TiDB at PayPay
Paper Reading: FPTree
Paper Reading: Smooth Scan
Paper Reading: Flexible Paxos
Paper reading: Cost-based Query Transformation in Oracle
Paper reading: HashKV and beyond

Recently uploaded (20)

PPTX
Construction Project Organization Group 2.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
web development for engineering and engineering
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Well-logging-methods_new................
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Welding lecture in detail for understanding
PDF
composite construction of structures.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Construction Project Organization Group 2.pptx
Lecture Notes Electrical Wiring System Components
web development for engineering and engineering
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Well-logging-methods_new................
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Embodied AI: Ushering in the Next Era of Intelligent Systems
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
CH1 Production IntroductoryConcepts.pptx
R24 SURVEYING LAB MANUAL for civil enggi
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Welding lecture in detail for understanding
composite construction of structures.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
bas. eng. economics group 4 presentation 1.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

[Paper Reading] Leases: An Efficient Fault-Tolerant Mechanism for Distributed File Cache Consistency

  • 1. Leases: An Efficient Fault Tolerant Mechanism for Distributed File Presented by Lingxiang Tai
  • 2. Part I - Problem With Distributed System Caching
  • 3. Background Caching is mechanism to improve the speed and performance of the system by replicating copies of frequently accessed data. ● Complexity of ensuring consistency ○ with reams of clients, one can modify data without consent of the others, cause the stale data reading for the others. ● Complication of communication and host failtures (Non-Byzantine failure) ○ Message lost due to these failures
  • 5. Lease ● General Meaning ○ A lease is a contract that give its holder specified right over property for a limited period of time. ● Caching Meaning ○ A lease is promise by the server that it will not conduct any writes to the datum covered by your lease before asking you for consent or waiting for the lease’s expiry a granted period of time
  • 6. Read And Write under Lease ● Read ○ First access will get the copy and a term of lease(eg: 10 seconds) ○ Latter read (within 10s) use the cached copy ○ Latter read (beyond 10s) require server to refresh data and Lease ● Write (here only consider write through) ○ client send write to server directly. ○ server defer the request until all the files’ leaseholder granted approvals or all these leases expired client (cache) server Read Write
  • 7. Short Term Lease ● Main Prons ○ Deferring write request, server will wait for a failed client to grant approval, short term lease expiring fast. ○ When a server crashed, recovery work should wait all those leases granted before to expire, short term lease make make it quick. ○ Short term lease can minimize the overhead callback in False Sharing cases. (False Sharing means a client holds a relative long lease, while it’s not currently accessing it)
  • 8. Long Term Lease ● Main Prons ○ better for the files accessed repeatedly and have relatively little write-sharing. ○ Especially, for the read-only file, you can take the lease as a infinite value.
  • 9. Part III- Lease Analysis
  • 10. How to chose a lease term ● It is a trade off between minimizing the lease extension overhead versus minimizing false sharing ● If we can build a function with lease term (variable X) and other target Metric (variable Y), we can distinguish it much easier. ○ y = Y(x)
  • 11. Performance parameters ● N number of clients ● R rate of reads for each client ● W rate of writes for each client ● mprop propagation delay for a message ● mproc time to process a message (send or receive) ● ε allowance for uncertainty in clocks ● ts lease term at server ● tc lease term at client
  • 12. Server load ● define the Y1 as the observable server load ○ Y1 =
  • 13. Average latency ● define the Y2 as the observable average latency ○ Y2 =
  • 14. Average latency(under a delay of network) ● base on average latency,we added 100ms to the network latency
  • 15. Conclusion ● Lease have the benefit of increasing the ratio of clients to servers (by reducing the consistency overhead), thereby reducing the cost (or improving the performance ) of large-scale systems.
  • 16. Part IV - Others
  • 17. Options for lease management ● Separate the files apart according to file’s characteristics, with the different leases to manage them (improve the both performance for R&W) ● Group a batch of files managed with a same lease (can reduce the number of lease, server lease overload and so on) ● Let the server multicast the lease extension periodically to all clients, rather client’s fetching. (reduce the traffic to contact with every client & reduce the server’s track work of every leaseholder)
  • 18. Fault Tolerance ● Client Failure ○ No impact to READ,short delay for other client WRITE ● Server Failure ○ Client with old lease can still be accessed to READ but lease extension is shortly delayed; ○ WRITE operation will be shortly delayed untill server is recovered from crash. ● Physical Clock drift ○ see next sheet...
  • 19. Physical Clock Drift ● Server clock advances ○ server may allow a WRITE before the term of a lease held by a previous client has expired at that client. ● Client clock slows ○ client may still use a lease which the server regards as having expired. ● Server clock slows ○ no inconsistency, but generate extra traffic(sever always gives clients a “expired lease”) ● Client clock advances ○ no inconsistency, but generate extra traffic (sever always gives clients a “expired lease”) Server Client