Distributed computing


TWO-PHASE COMMIT: PHASE 1



Download 0,86 Mb.
bet20/38
Sana24.04.2022
Hajmi0,86 Mb.
#578449
1   ...   16   17   18   19   20   21   22   23   ...   38
Bog'liq
distcomp

TWO-PHASE COMMIT: PHASE 1

    • Transaction manager asks all servers whether they can commit.
    • Upon receipt, each able server saves all updates to stable storage and responds yes.
  • If server cannot say yes (e.g., because of a concurrency control problem), then it says no. In that case, it can immediately forget the transaction. Transaction manager will abort the transaction at all sites.
  • TM
  • Servers
  • Prepare
  • Prepare
  • Prepare
  • Yes
  • Yes
  • Yes

TWO-PHASE COMMIT: PHASE 2

    • If all servers say yes, then transaction manager writes a commit record to stable storage and tells them all to commit, but if some say no or don’t respond, transaction manager tells them all to abort.
    • Upon receipt, the server writes the commit record and then sends an acknowledgement. The transaction manager is done when it receives all acknowledgements.
  • If a database server fails during first step, all abort.
  • If a database server fails during second step, it can consult the transaction manager to see whether it should commit.
  • TM
  • Commit
  • Commit
  • Ack
  • Ack
  • Ack
  • Commit

ALL OF TWO-PHASE COMMIT

  • Transaction Manager
  • Server
  • Prepare
  • Yes
  • Commit
  • Done
  • Active
  • Committed
  • Aborted
  • Prepare
  • Commit
  • Cannot prepare

Download 0,86 Mb.

Do'stlaringiz bilan baham:
1   ...   16   17   18   19   20   21   22   23   ...   38




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish