module4_distributed
module4_distributed
Dedule
teain abt longpat: Beg
sot-e-eaasslce psoeem,
ottt it
deail.
TeeeAAetyeS fitsib2}cd
(2eeciteCosttatiagisest ette sh
gneitate eropeg
ispleoeSarE8ibzidsaic
2asaSisCuE in
hootite b e l z e d e t R o i o i s k o d s e t e g r o i o s k
isanalaetrtrtis eltoesetat B,
At
e a é e e eteste aeiscol2seia.e tisa
eetat enbecered
ceiagdbeiae(ctociogavayi t i a e
apaes decdeetlathe
eisel gais
A
ilstotebc peoceeR iee
atbealet a o e tbe toler
’etefaatAess Aetel htbembe auo.
pesanpetpa
’ e t t e n tbee~RACT0S Doe Guba lol,onbe J,
istotet batporit )
nota]-o
AG-sitbn.
CJ= e
ustet]= (aobeo]trabe(1]+
Bave Saee
aetec.
urabeliJ=0;
key baceA Reeback Recovery
’ Af log bated poebtK lecoYeyaes re fteteroisicbe
ad ndeteeroiicse eeotsinacoop24tobo.
detesoite oesr: he sodepetoyevst
fsarn apaccees
dor-dtesoistic
te: Paehe aet/aeeve frocoe
fror a Sodea digtaletots.
hoy based goebak eovEacseEtoott
et ebeacendetericoceveotpat 9caR
dége Sthe
e e:AeetSe p O E S t t deee
aadeteaoioicbe eNeote ACepäoceE&tate
Aepedsa)
Cet
egle)'tyepseKer At aye ggedtoe Ceg f
e'e detchodot itbchVAaSeeoy
Yaiabttat
Gass
ettesThat e avepRoer aloepsoreP
Addtfeietbk PBee depedsaetehairs
Gyeste se deteroits eaotbeaored
otDe
1tasADEg taatafiGueCn Oeo aay
oteeh
S-pheepoçeS loq deterozols
Atee|eollel-o
freveot is ootint e Gate Chalebe
’ttasSagEthotoGi oiebeCorpete
befnte failwe s s
eantal
’aobiorTbe oçefbet
pesigissendpbsstp
TtCte.
Qirt&itetedbaeytekeaadagg
pesabar Casbenee
tSeedta been
aprtas)
beseroo Pype ( A e e s khe
data pase
gsler)
No eoony bottleoK (as eachpseg
feeot-BpesfsRyEin sCebcKAECNey
’ Lastsages
’Ospngese
04:55 O Þ33 Vo 91l l 30%
1. Coordinated Checkpointing with Message Logging
Concept
In this approach, all processes in the system coordinate to take a checkpoint:
simultaneously. Additionally, all messages sent and received between checkpoints are
logged.
Benefits:
Ensures a globally consistent state at each checkpoint.
Simplifies recovery by restoring the checkpoint and replaying the logged messages.
Implementation:
Periodically, all processes agree on a checkpoint time.
Each process logs messages it receives after the checkpoint.
In the event of a failure, the system restores the state from the last coordinated
checkpoint and replays the logged messages to recover.
Challenges:
oRequires synchronization, which can introduce latency and performance overhead.
The frequency of checkpoints and the volume af logged messages must be managed
efficiently.
" Concept
Processes take checkpoints independently without coordination. Messages are logged
to ensure that lost messages can be replayed during recovery.
"Benefits:
Reduces the need for synchronization, potentially improving performance.
Each process can operate more independently, enhancing scalability.
"Implementation:
Each process periodically saves its state independently
All incoming messages are logged with information about the sender, receiver, and
content.
During recovery. processes restore their state from their latest checkpoint and replay
logged messages in the order they were originally recelved.
Challenges:
Risk of the domino effect, where a failure in one process might require multiple
processes to roll back to their previous checkpoints.
Ensuring consistency across independently checkpointed processes can be complex.
" Concept:
Processes take independent checkpoints but are occasionally forced to take coordinated
checkpoints based on communication patterns. Message logging is used to log