extracting more concurrency from distributed transactions
play

Extracting More Concurrency from Distributed Transactions - PowerPoint PPT Presentation

Extracting More Concurrency from Distributed Transactions Shuai Mu and Yang Cui and Yang Zhang and Wya0 Lloyd and Jinyang Li (OSDI 2014)


  1. Extracting ¡More ¡ Concurrency ¡from ¡ Distributed ¡Transactions ¡ Shuai ¡Mu ¡and ¡Yang ¡Cui ¡and ¡Yang ¡Zhang ¡and ¡Wya0 ¡Lloyd ¡ and ¡Jinyang ¡Li ¡ ¡ (OSDI ¡2014) ¡ Presented ¡by: ¡Haonan ¡Lu ¡ 0 ¡

  2. Problem ¡ • Tradi@onal ¡concurrency ¡control ¡techniques ¡like ¡2PL ¡and ¡OCC ¡ have ¡bad ¡performance ¡when ¡conten@on ¡is ¡high ¡ • Why? ¡ • 2PL ¡– ¡lock ¡queue ¡& ¡deadlocks ¡(abort) ¡ • OCC ¡– ¡abort ¡ ¡ • Too ¡many ¡abort ¡and ¡retries ¡lead ¡to ¡ • Low ¡throughput ¡ • High ¡latency ¡ • Not-­‑scalable ¡for ¡distributed ¡transac@ons. ¡ ¡ ¡ 1 ¡

  3. Problem ¡ -­‑-­‑ ¡compare ¡with ¡primary ¡paper ¡ • Spanner ¡ • How ¡to ¡design ¡a ¡strictly ¡serializable ¡database ¡system ¡that ¡is ¡at ¡ global ¡scale ¡and ¡accommodates ¡produc@on ¡workloads ¡ • Rococo ¡ • How ¡to ¡make ¡distributed ¡concurrency ¡control ¡more ¡performant ¡ while ¡ensuring ¡strict ¡serializability. ¡ ¡ ¡ 2 ¡

  4. Key ¡Techniques ¡ • Reorder ¡instead ¡of ¡abort ¡ • Pieces ¡ • Immediate ¡(key/value ¡dependence) ¡ • Deferrable ¡ ¡ • Two ¡components ¡ • Offline ¡checker ¡ • Iden@fy ¡non-­‑reorderable ¡pieces, ¡and ¡treat ¡them ¡specially ¡ ¡ • Run-­‑@me ¡protocol ¡ • Start ¡phase ¡ • Each ¡server ¡computes ¡dependency ¡graph ¡ • Commit ¡phase ¡ • Coordinator ¡aggregates ¡dep ¡graphs ¡and ¡servers ¡re-­‑order ¡pieces ¡if ¡ 3 ¡ necessary ¡for ¡strict ¡serializability ¡ ¡

  5. 4 ¡

  6. Key ¡Technique ¡ -­‑-­‑ ¡how ¡related ¡to ¡primary ¡ • Spanner: ¡ • TrueTime ¡API ¡– ¡physical ¡clocks ¡with ¡bounded ¡uncertainty. ¡ ¡ • Paxos ¡+ ¡2PL/2PC ¡ ¡ ¡ • Rococo: ¡ • Insuring ¡real-­‑@me ¡order ¡by ¡checking ¡dependencies ¡ • Re-­‑order ¡conflic@ng ¡pieces ¡if ¡possible ¡instead ¡of ¡simply ¡abor@ng ¡ and ¡retrying. ¡ 5 ¡

  7. Key ¡Findings ¡ 6 ¡

  8. Key ¡Findings ¡ 7 ¡

  9. Findings ¡ -­‑-­‑ ¡compare ¡to ¡primary ¡ ¡ • Spanner ¡ • Transac@on’s ¡commit ¡latency ¡is ¡determined ¡by ¡TrueTime’s ¡ uncertain ¡@me ¡and ¡Paxos ¡latency. ¡ ¡ • Base ¡value ¡of ¡uncertainty ¡@me ¡is ¡sensi@ve ¡to ¡many ¡factors ¡and ¡ could ¡be ¡big ¡in ¡some ¡cases ¡ • Rococo ¡ • Using ¡dependency ¡to ¡track ¡and ¡maintain ¡real-­‑@me ¡order ¡among ¡ transac@ons ¡can ¡greatly ¡reduce ¡the ¡need ¡of ¡abor@ng ¡and ¡hence ¡ improve ¡performance ¡ ¡ ¡ 8 ¡ ¡ ¡

  10. Take-­‑away ¡ • Dependency ¡can ¡be ¡used ¡to ¡track ¡real-­‑@me ¡order ¡among ¡ transac@ons. ¡ • Tradi@onal ¡concurrency ¡control ¡protocols ¡(2PL, ¡OCC) ¡are ¡not ¡ performant ¡with ¡conten@on ¡workloads. ¡ • Be0er ¡performance ¡can ¡be ¡achieved ¡by ¡deferring ¡and ¡re-­‑ ordering ¡conflic@ng ¡pieces ¡instead ¡of ¡abor@ng ¡them ¡(Rococo) ¡ ¡ 9 ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend