SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Fault-Tolerant BPEL Workflow Execution via Cloud-Aware Recovery Policies Ernst Juhnke, Tim Dörnemann, Bernd Freisleben {ejuhnke,doernemt,freisleb}@informatik.uni-marburg.de Presentedby: Ernst Juhnke
2 Overview Motivation Fault Handling in BPEL Bird‘s Eye View of theArchitecture Design Implementation Experimental Results Conclusions
Motivation Whatis a SOA – andwhytouse a SOA? service-oriented manner leads to higher flexibility easeofreuse reducesdevelopmentcosts (at least theoretically) web services as implementing technology Couplingofservices composed applications are often called business processes -> workflows Highly distributed nature of composed applications failures are quite likely to occur network failures software failures on remote hosts … 3
Motivation (cont‘d) Fault handling is very important Many faults can be corrected by simplyretrying substituting the failed component by an equivalent one on-demandprovisioning Business Process Execution Language for Web Services BPEL is the de facto standard for web service composition enables the construction of complex web services offers a rich vocabulary of fault handling mechanisms (infrastructural) fault handling clutters the composition logic with non-functional aspects 4
Fault Handling in BPEL Faults related to the logic of the process have to be handled explicitly within the process the process must be able to react to these faults Faults related to infrastructural errorshave to be handled without interfering with the BPEL process 5 <faultHandlers>  <catch faultName="buy:CreditCardNotApproved"  faultVariable="Fault">   <!-- Make a callbacktotheclient -->   <invoke partnerLink="Client"  portType="buy:ClientCallbackPT"  operation="ClientCallbackFault"           inputVariable="Fault"/>  </catch>  <catchAll>   <sequence>    <assign>     <copy>      <!-- Create the Fault variable -->      <fromexpression="string('Other fault')"/>      <to variable="Fault" part="error"/>    </copy>    </assign>    <invoke partnerLink="Client"  portType="buy:ClientCallbackPT"  operation="ClientCallbackFault"            inputVariable="Fault"/>   </sequence>  </catchAll> </faultHandlers>
Bird‘s Eye View of theArchitecture Proposed solution adds a policy-based fault handling mechanism to BPEL  	without making any changes to the language standard changingtheengine'simplementation Uses a Cloudinfrastructuretoprovision spare machines on-demand 6
Design The solution substitutes the default invocation mechanism of the BPEL engine Fault Tolerant Invoke Handler (FTIH) executes and monitors every invoke operation FTIH is the only component that interacts with the workflow engine 7
Design (cont‘d) Fault Classifier categorizes fine-grained exceptions and invocation faults into course-grained fault categories Policy Processor looksupoperationsforpolicies 8 <Faults>	 <Fault name="NCName" final="true | false">   <byCausename="FaultCategory"/>   <OriginHostretry="true | false">     <MaxTriesvalue="int"/>   </OriginHost>?   <Substitute resources="NONE | PHYSICAL_ONLY                          | EXISTING | NEW                          | DIFFERENT | ALL">     <MaxTriesvalue="int"/>   </Substitute>? </Fault>+ <Faults>
Design (cont‘d) Policies 9 <Faults>	 <Fault name="TLF" final="true">   <byCausename="TransportLayerFault"/>   <OriginHostretry="true">     <MaxTriesvalue="1"/>   </OriginHost>   <Substitute resources="DIFFERENT">     <MaxTriesvalue="2"/>   </Substitute> </Fault> <Fault name="PermTLF" final="false">   <byCause    name="PermanentTransportLayerFault"/>   <Substitute resources="NEW">     <MaxTriesvalue="1"/>   </Substitute> </Fault>  <Faults>
Design (cont‘d) Dynamic Resolver schedules web service calls to underutilized machines dynamically 10 T. Dörnemann, E. Juhnke, and B. Freisleben. On-Demand Resource Provisioning for BPEL Workflows using Amazon’s Elastic Compute Cloud. In Proceedings of the 9th IEEE International Symposium on Cluster Computing and the Grid, page 140–147, Los Alamitos, CA, USA, 2009. IEEE Computer Society.
Implementation Integration of the FTIH into the engine is configured by using process deployment descriptors realized as a custom invoke handler (ActiveBPEL) URL-encoded definitions of policies 11 <partnerLink name="ecgAnalyzerPL"> 	<partnerRoleendpointReference="dynamic„ invokeHandler="java:FaultTolerantIH? GlobalPolicy='global.xml'; LocalPolicy='local.xml'" /> </partnerlink>
Implementation (cont‘d) Fault Tolerance Module encapsulatestheentirefunctionality 12 ILoadBalancerStatestate = newFTState(); PolicySetpS = newPolicySet(); // loadpoliciesconfigured in invokehandler pS.load(queryMap, invoke.getProcessName()); // ... // Repeat  while(state.getActualStrategy() != null) {  // performinvoke ...  IAeWebServiceResponseresponse =  super.handleInvoke(...); if (response.isFaultResponse()) {   // ... fault occurred FaultClassifierfc = getFaultClassifier(); IFault fault = fc.classify(response); APolicypolicy = pS.getPolicy(fault); policy.apply(state); state.incrementFaultCounter();  } }
Implementation (cont‘d) Dynamic Resolver enhanced to cope with restrictions induced by policies 13 <Faults>	 <Fault name="NCName" final="true | false">   <byCausename="FaultCategory"/>   <OriginHostretry="true | false">     <MaxTriesvalue="int"/>   </OriginHost>?   <Substitute resources="NONE | PHYSICAL_ONLY                          | EXISTING | NEW                          | DIFFERENT | ALL">     <MaxTriesvalue="int"/>   </Substitute>? </Fault>+ <Faults>
Experimental Results Sleepresearch based on components developed in cooperation with researchers of the MediGrid (Medical Grid)  project of the German Grid initiative (D-Grid) basically performs an ECG (electrocardiogram) analysis uses the produced results for apnea detection implementation uses the Physio Toolkit set of open source tools that is widely used in biomedical sciences 14
Experimental Results (cont‘d) The beat and apnea detection workflow data format of the recorded vital signs (EDF) at first needs a conversion performs beat and apnea detection in parallel is modeled using the Visual Grid Orchestrator (ViGO) 15
Experimental Results (cont‘d) Web services are programmed to throw different SOAP faults with a certain probability service faults are enforced randomly during the measurements probability is set to 30% probability of successful execution of the workflow is about 0.75 = 0.16807 policies for all fault categories are set to perform the same number of retries 16
Experimental Results (cont‘d) 0 retries 17 (the x axisenumeratesthenumberofexperiments)
Experimental Results (cont‘d) 1 retry 18
Experimental Results (cont‘d) 3 retries 19
Experimental Results (cont‘d) 3 retries, usingCloud-backedredundancy 20
Conclusions Policy-based fault handling mechanism for BPEL The solution is embedded into the BPEL engine without  changing the BPEL standard and the engine's implementation Use case based upon medical sleep research 21
Finish … Thank you for your attention! Any questions – or remarks? 22
BaCKupSlides 23
Implementation 24
Implementation 25

Weitere ähnliche Inhalte

Empfohlen

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Empfohlen (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Fault-Tolerant BPEL Workflow Execution via Cloud-Aware Recovery Policies, Euromicro SEAA 2009, Patras (Greece)

  • 1. Fault-Tolerant BPEL Workflow Execution via Cloud-Aware Recovery Policies Ernst Juhnke, Tim Dörnemann, Bernd Freisleben {ejuhnke,doernemt,freisleb}@informatik.uni-marburg.de Presentedby: Ernst Juhnke
  • 2. 2 Overview Motivation Fault Handling in BPEL Bird‘s Eye View of theArchitecture Design Implementation Experimental Results Conclusions
  • 3. Motivation Whatis a SOA – andwhytouse a SOA? service-oriented manner leads to higher flexibility easeofreuse reducesdevelopmentcosts (at least theoretically) web services as implementing technology Couplingofservices composed applications are often called business processes -> workflows Highly distributed nature of composed applications failures are quite likely to occur network failures software failures on remote hosts … 3
  • 4. Motivation (cont‘d) Fault handling is very important Many faults can be corrected by simplyretrying substituting the failed component by an equivalent one on-demandprovisioning Business Process Execution Language for Web Services BPEL is the de facto standard for web service composition enables the construction of complex web services offers a rich vocabulary of fault handling mechanisms (infrastructural) fault handling clutters the composition logic with non-functional aspects 4
  • 5. Fault Handling in BPEL Faults related to the logic of the process have to be handled explicitly within the process the process must be able to react to these faults Faults related to infrastructural errorshave to be handled without interfering with the BPEL process 5 <faultHandlers> <catch faultName="buy:CreditCardNotApproved" faultVariable="Fault"> <!-- Make a callbacktotheclient --> <invoke partnerLink="Client" portType="buy:ClientCallbackPT" operation="ClientCallbackFault" inputVariable="Fault"/> </catch> <catchAll> <sequence> <assign> <copy> <!-- Create the Fault variable --> <fromexpression="string('Other fault')"/> <to variable="Fault" part="error"/> </copy> </assign> <invoke partnerLink="Client" portType="buy:ClientCallbackPT" operation="ClientCallbackFault" inputVariable="Fault"/> </sequence> </catchAll> </faultHandlers>
  • 6. Bird‘s Eye View of theArchitecture Proposed solution adds a policy-based fault handling mechanism to BPEL without making any changes to the language standard changingtheengine'simplementation Uses a Cloudinfrastructuretoprovision spare machines on-demand 6
  • 7. Design The solution substitutes the default invocation mechanism of the BPEL engine Fault Tolerant Invoke Handler (FTIH) executes and monitors every invoke operation FTIH is the only component that interacts with the workflow engine 7
  • 8. Design (cont‘d) Fault Classifier categorizes fine-grained exceptions and invocation faults into course-grained fault categories Policy Processor looksupoperationsforpolicies 8 <Faults> <Fault name="NCName" final="true | false"> <byCausename="FaultCategory"/> <OriginHostretry="true | false"> <MaxTriesvalue="int"/> </OriginHost>? <Substitute resources="NONE | PHYSICAL_ONLY | EXISTING | NEW | DIFFERENT | ALL"> <MaxTriesvalue="int"/> </Substitute>? </Fault>+ <Faults>
  • 9. Design (cont‘d) Policies 9 <Faults> <Fault name="TLF" final="true"> <byCausename="TransportLayerFault"/> <OriginHostretry="true"> <MaxTriesvalue="1"/> </OriginHost> <Substitute resources="DIFFERENT"> <MaxTriesvalue="2"/> </Substitute> </Fault> <Fault name="PermTLF" final="false"> <byCause name="PermanentTransportLayerFault"/> <Substitute resources="NEW"> <MaxTriesvalue="1"/> </Substitute> </Fault> <Faults>
  • 10. Design (cont‘d) Dynamic Resolver schedules web service calls to underutilized machines dynamically 10 T. Dörnemann, E. Juhnke, and B. Freisleben. On-Demand Resource Provisioning for BPEL Workflows using Amazon’s Elastic Compute Cloud. In Proceedings of the 9th IEEE International Symposium on Cluster Computing and the Grid, page 140–147, Los Alamitos, CA, USA, 2009. IEEE Computer Society.
  • 11. Implementation Integration of the FTIH into the engine is configured by using process deployment descriptors realized as a custom invoke handler (ActiveBPEL) URL-encoded definitions of policies 11 <partnerLink name="ecgAnalyzerPL"> <partnerRoleendpointReference="dynamic„ invokeHandler="java:FaultTolerantIH? GlobalPolicy='global.xml'; LocalPolicy='local.xml'" /> </partnerlink>
  • 12. Implementation (cont‘d) Fault Tolerance Module encapsulatestheentirefunctionality 12 ILoadBalancerStatestate = newFTState(); PolicySetpS = newPolicySet(); // loadpoliciesconfigured in invokehandler pS.load(queryMap, invoke.getProcessName()); // ... // Repeat while(state.getActualStrategy() != null) { // performinvoke ... IAeWebServiceResponseresponse = super.handleInvoke(...); if (response.isFaultResponse()) { // ... fault occurred FaultClassifierfc = getFaultClassifier(); IFault fault = fc.classify(response); APolicypolicy = pS.getPolicy(fault); policy.apply(state); state.incrementFaultCounter(); } }
  • 13. Implementation (cont‘d) Dynamic Resolver enhanced to cope with restrictions induced by policies 13 <Faults> <Fault name="NCName" final="true | false"> <byCausename="FaultCategory"/> <OriginHostretry="true | false"> <MaxTriesvalue="int"/> </OriginHost>? <Substitute resources="NONE | PHYSICAL_ONLY | EXISTING | NEW | DIFFERENT | ALL"> <MaxTriesvalue="int"/> </Substitute>? </Fault>+ <Faults>
  • 14. Experimental Results Sleepresearch based on components developed in cooperation with researchers of the MediGrid (Medical Grid) project of the German Grid initiative (D-Grid) basically performs an ECG (electrocardiogram) analysis uses the produced results for apnea detection implementation uses the Physio Toolkit set of open source tools that is widely used in biomedical sciences 14
  • 15. Experimental Results (cont‘d) The beat and apnea detection workflow data format of the recorded vital signs (EDF) at first needs a conversion performs beat and apnea detection in parallel is modeled using the Visual Grid Orchestrator (ViGO) 15
  • 16. Experimental Results (cont‘d) Web services are programmed to throw different SOAP faults with a certain probability service faults are enforced randomly during the measurements probability is set to 30% probability of successful execution of the workflow is about 0.75 = 0.16807 policies for all fault categories are set to perform the same number of retries 16
  • 17. Experimental Results (cont‘d) 0 retries 17 (the x axisenumeratesthenumberofexperiments)
  • 20. Experimental Results (cont‘d) 3 retries, usingCloud-backedredundancy 20
  • 21. Conclusions Policy-based fault handling mechanism for BPEL The solution is embedded into the BPEL engine without changing the BPEL standard and the engine's implementation Use case based upon medical sleep research 21
  • 22. Finish … Thank you for your attention! Any questions – or remarks? 22