Slides for Chapter 14 Distributed transactions.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Slides for Chapter 14 Distributed transactions.ppt

Slides for Chapter 14: Distributed transactions From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 4, ? Addison-Wesley 2005 Commitment of dist. trans. - intro A distributed transaction refers to a flat or nested transaction that accesses objects managed by multiple servers Atomicity must still be preserved A process on one of the servers is coordinator, it must ensure the same outcome at all of the servers. The ‘two-phase commit protocol’ is the most commonly used protocol for achieving this Fig 14.1 Distributed transactions Fig. 14.2 Nested banking transaction Fig. 14.3 A dist. banking transaction Fig. 14.4 Ops for 2PC Fig. 14.5 Two-phase commit protocol Fig. 14.5 Two-phase commit protocol Fig. 14.6 Comm in 2PC protocol Summary of 2PC a distributed transaction involves several different servers. A nested transaction structure allows additional concurrency and independent committing by the servers in a distributed transaction. atomicity requires that the servers participating in a distributed transaction either all commit it or all abort it. continued ... Summary of 2PC atomic commit protocols are designed to achieve this effect, even if servers crash during their execution. the 2PC protocol allows a server to abort unilaterally. it includes timeout actions to deal with delays due to servers crashing. 2PC protocol can take an unbounded amount of time to complete but is guaranteed to complete eventually. 14.5 Distributed deadlocks Single server transactions can experience deadlocks prevent or detect and resolve use of timeouts is clumsy, detection is preferable. it uses wait-for graphs. Distributed transactions lead to distributed deadlocks in theory can construct global wait-for graph from local ones a cycle in a global wait-for graph that is not in local ones is a distributed deadlock 14.6 Transaction recovery Atomicity property of transactions durability and failure atomicity durability requires that objects ar

文档评论(0)

gshshxx + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档