Distributed computing



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

QUESTIONS AND ANSWERS

  • Q: What happens if the transaction manager fails?
  • A: A database server who said yes to the first phase but has received neither a commit nor abort instruction must wait until the transaction manager recovers. It is said to be blocked.
  • Q: How does a recovering transaction manager know whether it committed a given transaction before failing?
  • A: The transaction manager must write a commit T record to stable storage after it receives yes’s from all data base servers on behalf of T and before it sends any commit messages to them.
  • Q: Is there any way to avoid having a data base server block when the transaction manager fails?
  • A: A database server may consult other database servers who have participated in the transaction, if it knows who they are.

OPTIMIZATION FOR READ-ONLY TRANSACTIONS

  • Read-only transactions.
  • Suppose a given server has done only reads (no updates) for a transaction.

THREE-PHASE COMMIT

  • A non-blocking protocol, assuming that:
  • Non-blocking = surviving servers can decide what to do.

PROTOCOL

  • Transaction Manager
  • (Initiator)
  • Server
  • (Agent)
  • Willing?
  • Willing-Yes
  • Prepare
  • OK
  • Committed
  • Done

STATES OF SERVER ASSUMING FIRST TM DOES NOT FAIL

  • Active
  • Willing
  • Ready to
  • Commit
  • Abort
  • Send
  • Willing-Yes
  • Receive
  • Prepare
  • No
  • Committed
  • Receive
  • Committed

Download 0,86 Mb.

Do'stlaringiz bilan baham:
1   ...   17   18   19   20   21   22   23   24   ...   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