Full text
A Fault Tolerant Architecture with A Fault Tolerant Architecture with Flexible Dynamic Redundancy Flexible Dynamic Redundancy By Guna Santos By Guna Santos
caos Key Points Key Points y yThe increasing number of applications demanding high The increasing number of applications demanding high performance and availability ( performance and availability (performability) performability) y yFault tolerance plays a major role in order to keep high Fault tolerance plays a major role in order to keep high availability availability y yA fault tolerant solution must A fault tolerant solution must generates generates minimal minimal overhead in its activities, in order to not affect the overhead in its activities, in order to not affect the application performance application performance y yAfter a fault ocurrence, some fault tolerant system After a fault ocurrence, some fault tolerant system generate system degradation, affecting the performance. generate system degradation, affecting the performance. 2
caos Challenges Challenges y yTo provide a fault tolerant solution able to mitigate or to To provide a fault tolerant solution able to mitigate or to avoid the system degradation avoid the system degradation y yRestoring the system configuration Restoring the system configuration y yAvoiding changes in number of active nodes Avoiding changes in number of active nodes y yAllowing perform maintenance tasks, preventing faults Allowing perform maintenance tasks, preventing faults 3
caos Contents Contents y yGoals Goals y yFault Tolerance and the RADIC Architecture Fault Tolerance and the RADIC Architecture y yRecovery Side Recovery Side- -Effect Effect y yProtecting the System Protecting the System y yImplementation and Experimental Results Implementation and Experimental Results y yConclusions Conclusions y yFuture Work and Open Lines Future Work and Open Lines 4
caos Goals Goals y yTo incorporate the ability to control the system To incorporate the ability to control the system degradation to a fault tolerant architecture with following degradation to a fault tolerant architecture with following characteristics: characteristics: y yFlexible, Decentralized, Transparent, Scalable Flexible, Decentralized, Transparent, Scalable y yTo extend the functionality of this architecture To extend the functionality of this architecture implementation implementation 5
caos A Fault Tolerance A Fault Tolerance Approach Approach y yFault tolerant architecture Fault tolerant architecture for message for message- -passing systems passing systems y yIt based on Rollback It based on Rollback- -recovery recovery protocol protocol y yIt creates a layer isolating the It creates a layer isolating the application from the cluster application from the cluster failures failures Parallel Computer Structure (Fault Parallel Computer Structure (Fault- -probable) probable) Message Message- -passing Standard passing Standard Parallel Application Parallel Application Different Paradigms Different Paradigms P P P PPP P P P P P P PPP P P P SPMD SPMD Master/Worke Master/Worke r r M W W WW M W W WW P 6
caos Parallel Application Parallel Application Parallel Application Parallel Application A Fault Tolerance A Fault Tolerance Approach Approach Parallel Computer Structure (Fault Parallel Computer Structure (Fault- -probable) probable) Fault Masking Functions Message-passing Standard Fault Tolerance Functions y yFault tolerant architecture Fault tolerant architecture for message for message- -passing systems passing systems y yIt based on Rollback It based on Rollback- -recovery recovery protocol protocol y yIt creates a layer isolating the It creates a layer isolating the application from the cluster application from the cluster failures failures 7
caos The RADIC The RADIC Architecture Architecture Node Node y yRADIC is a fault tolerant RADIC is a fault tolerant architecture for message architecture for message- - passing systems passing systems y yTwo kind of process Two kind of process perform the fault perform the fault tolerance activities tolerance activities y yProtectors Protectors y yObservers Observers Protect Protect or or Observer Observer Application Application Process Process • •It performs fault detection tasks using It performs fault detection tasks using a heartbeat/watchdog scheme a heartbeat/watchdog scheme • •It stores the redundancy data It stores the redundancy data (checkpoints and logs) (checkpoints and logs) • •It starts the recovery process It starts the recovery process •It manages the communications between processes •It takes checkpoints and event logs and sends to storage •It masks the faults using a table of the processes. •It detect communication failures 8
caos The RADIC The RADIC Architecture Architecture y yRADIC in Practice RADIC in Practice Node Node Protect Protect or or Observer Observer Application Process 9
caos Recovery Recovery Side Side- -Effect Effect SPMD SPMD – –one fault in different moments one fault in different moments 16 P P P PPP P P P
caos Recovery Recovery Side Side- -Effect Effect Static M/W Static M/W 17
caos Recovery Recovery Side Side- -Effect Effect Static M/W Static M/W 18 0 100 200 300 400 500 600 P0 P1 P2 P3 P4 P5 P6 P7 ExecutionTime(s) Processes 1000x1000Matrixproductwith8nodes‐Staticdistribution‐1faultat25% 100loops‐ ckpteach45s Withoutfaults WithFaults
caos Protecting Protecting the System the System y yWe incorporate a new protection level in RADIC using a We incorporate a new protection level in RADIC using a dynamic redundancy functionality, allowing to mitigate or dynamic redundancy functionality, allowing to mitigate or to avoid the recovery side to avoid the recovery side- -effects effects y yRestoring the system configuration Restoring the system configuration y yAvoiding system configuration changes Avoiding system configuration changes y yAllowing to prevent faults Allowing to prevent faults y yIt incorporates a transparent management of It incorporates a transparent management of spare nodes spare nodes y yIt does not mantain any central information about the spare node It does not mantain any central information about the spare nodes s y yThe spare nodes use does not affect the scalability The spare nodes use does not affect the scalability 19
caos Protecting Protecting the System the System y yRestoring the Restoring the configuration configuration N1 N1 T1 T1 O1 O1 P1 P1 N0 N0 T0 T0 O0 O0 P0 P0 N2 N2 T2 T2 O2 O2 P2 P2 N7 N7 T7 T7 O7 O7 P7 P7 N6 N6 T6 T6 O6 O6 P6 P6 N8 N8 T8 T8 N4 N4 T4 T4 O4 O4 P4 P4 O8 O8 P8 P8 O3 O3 P3 P3 N5 N5 T5 T5 O5 O5 P5 P5 N9 N9 T9 T9 T9 T9 O3 O3 P3 P3 20
caos Protecting Protecting the System the System y yAvoiding changes in Avoiding changes in number of active nodes number of active nodes N1 N1 T1 T1 O1 O1 P1 P1 N0 N0 T0 T0 O0 O0 P0 P0 N2 N2 T2 T2 O2 O2 P2 P2 N4 N4 T4 T4 O4 O4 P4 P4 N3 N3 T3 T3 O3 O3 P3 P3 N5 N5 T5 T5 O5 O5 P5 P5 N7 N7 T7 T7 O7 O7 P7 P7 N6 N6 T6 T6 O6 O6 P6 P6 N8 N8 T8 T8 O8 O8 P8 P8 N9 N9 T9 T9 21
caos Protecting Protecting the System the System y yRecovering with spare Recovering with spare node node N1 N1 T1 T1 O1 O1 P1 P1 N0 N0 T0 T0 O0 O0 P0 P0 N2 N2 T2 T2 O2 O2 P2 P2 N4 N4 T4 T4 O4 O4 P4 P4 N5 N5 T5 T5 O5 O5 P5 P5 N7 N7 T7 T7 O7 O7 P7 P7 N6 N6 T6 T6 O6 O6 P6 P6 N8 N8 T8 T8 O8 O8 P8 P8 N9 N9 T9 T9 T9 T9 O3 O3 P3 P3 22
caos Protecting Protecting the System the System y yRestoring the Restoring the configuration configuration N1 N1 T1 T1 O1 O1 P1 P1 N0 N0 T0 T0 O0 O0 P0 P0 N2 N2 T2 T2 O2 O2 P2 P2 N4 N4 T4 T4 O4 O4 P4 P4 N5 N5 T5 T5 O5 O5 P5 P5 N7 N7 T7 T7 O7 O7 P7 P7 N6 N6 T6 T6 O6 O6 P6 P6 N8 N8 T8 T8 O8 O8 P8 P8 N9 N9 O3 O3 P3 P3 N10 N10 T10 T10 T9 T9 23
caos Protecting Protecting the System the System y yPreventing Faults Preventing Faults N1 N1 T1 T1 O1 O1 P1 P1 N0 N0 T0 T0 O0 O0 P0 P0 N2 N2 T2 T2 O2 O2 P2 P2 N4 N4 T4 T4 O4 O4 P4 P4 N3 N3 T3 T3 O3 O3 P3 P3 N5 N5 T5 T5 O5 O5 P5 P5 N7 N7 T7 T7 O7 O7 P7 P7 N6 N6 T6 T6 O6 O6 P6 P6 N8 N8 T8 T8 O8 O8 P8 P8 N9 N9 T9 T9 24
caos Protecting Protecting the System the System y yPreventing Faults Preventing Faults N1 N1 T1 T1 O1 O1 P1 P1 N0 N0 T0 T0 O0 O0 P0 P0 N2 N2 T2 T2 O2 O2 P2 P2 N4 N4 T4 T4 O4 O4 P4 P4 N5 N5 T5 T5 O5 O5 P5 P5 N7 N7 T7 T7 O7 O7 P7 P7 N6 N6 T6 T6 O6 O6 P6 P6 N8 N8 T8 T8 O8 O8 P8 P8 N9 N9 T9 T9 T9 T9 O3 O3 P3 P3 25
caos Experimental Results Experimental Results y yEvaluating according with the fault moment Evaluating according with the fault moment 32
caos Experiment Design Experiment Design y yEvaluating according the number of nodes Evaluating according the number of nodes y yThe experiments were conduced in a twelve node cluster The experiments were conduced in a twelve node cluster y yWe executed a product of two 1000x1000 matrix using a dynamic We executed a product of two 1000x1000 matrix using a dynamic distribution and a product of two 1000x1000 matrixes using a distribution and a product of two 1000x1000 matrixes using a static distribution static distribution y yWe injected one fault at 25% We injected one fault at 25% y yWe ran the programs over three cluster sizes We ran the programs over three cluster sizes y y4 nodes + spare 4 nodes + spare y y8 nodes + spare 8 nodes + spare y y11 nodes + spare 11 nodes + spare y yWe measured the execution times in three situations We measured the execution times in three situations y yFault Fault- -free free y yWithout spare Without spare y yWith spare With spare 33
caos Experimental Results Experimental Results y yEvaluating according with the number of nodes Evaluating according with the number of nodes 34
caos Experimental Results Experimental Results y yEvaluating according with the number of nodes Evaluating according with the number of nodes 35
caos Experimental Results Experimental Results y yWe implemented a N We implemented a N- -Body simulation in order to study Body simulation in order to study the behavior of our solution over continuous running the behavior of our solution over continuous running applications applications P P P P 36
caos Experimental Results Experimental Results y yWe implemented a N We implemented a N- -Body simulation in order to study Body simulation in order to study the behavior of our solution over continuous running the behavior of our solution over continuous running applications applications P P P P 37
caos Experiment Design Experiment Design y yThroughput of 24x7 applications Throughput of 24x7 applications y yWe executed this application simulating 2000 particles in a We executed this application simulating 2000 particles in a ten node pipeline ten node pipeline y yWe measured the throughput (in simulation steps per We measured the throughput (in simulation steps per minute) in four scenarios minute) in four scenarios y yFault Fault- -free free y yInjecting three faults without spare: Injecting three faults without spare: y yProcesses recovering in different nodes Processes recovering in different nodes y yProcess recovering in same node without spare Process recovering in same node without spare y yInjecting three faults using two initial spares and re Injecting three faults using two initial spares and re- -insert a insert a “ “repaired repaired” ”one after the first fault. one after the first fault. 38
caos 0 5 10 15 20 25 30 35 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 SimulationStepsperminute Elapsedtime(inminutes) N‐BodySimulationof2000particlesina10nodespipeline with3faults FaultFree DifferentNodes SameNodes UsingSpare Experimental Results Experimental Results y yThroughput of 24x7 applications with three faults Throughput of 24x7 applications with three faults A spare node is inserted A spare node is inserted without affects the without affects the performance performance Recovery overhead Recovery overhead caused by: caused by: - -Moment of fault (large Moment of fault (large log to process) log to process) - -No optimized code No optimized code 39
caos Conclusions Conclusions y yWe implemented a dynamic redundancy functionality that We implemented a dynamic redundancy functionality that avoids or mitigates the recovery side avoids or mitigates the recovery side- -effects effects y yThis functionality is flexible because This functionality is flexible because y yIt allows system configuration restablishment by dynamic inserti It allows system configuration restablishment by dynamic insertion on of spare nodes of spare nodes - -RESTORING RESTORING y yIt allows a transparent management of the spare nodes use It allows a transparent management of the spare nodes use - - AVOIDING AVOIDING y yIt incorporates a It incorporates a maintenance maintenance feature that also allows to feature that also allows to prevent failures by replacing fault prevent failures by replacing fault- -probable nodes probable nodes – – PREVENTING PREVENTING y yConfigurable, allowing from 0 to N number of spares Configurable, allowing from 0 to N number of spares y yWe extend the RADICMPI functionality, implementing a set of We extend the RADICMPI functionality, implementing a set of MPI non MPI non- -blocking functions blocking functions 40
caos Conclusions Conclusions y yOur results show the benefits of the dynamic redundancy Our results show the benefits of the dynamic redundancy solution in different scenarios. solution in different scenarios. y yThe results also show a strong dependency between the The results also show a strong dependency between the recovery side recovery side- -effects and the application characteristics effects and the application characteristics and how we can adapt to each one. and how we can adapt to each one. 41