SlideShare una empresa de Scribd logo
1 de 52
Descargar para leer sin conexión
S-Cube Learning Package

Chemical Modeling: Workflow Enactment
   based on the Chemical Metaphor



           INRIA, CNR, SZTAKI


          Zsolt Németh, SZTAKI


             www.s-cube-network.eu
Learning Package Categorization


                        S-Cube




                  Service Infrastructure




             Multi-level and self-adaptation



               Supporting adaptation of
              service-based applications
Learning Package Overview


 Workflow, workflow management
 Problem and requirement analysis
   – enactment in large-scale heterogeneous environments

 A chemical metaphor for workflow enactment
 A coordination model for workflow enactment formalized in
  the -calculus
 Further challenges
This talk is about workflow but…

 Workflow is just an example
   – It is a common programming model for grids
   – Features many coordination problems

 Focus: coordination
   – Large-scale distributed, dynamic, error prone environment and
     applications
   – Some degree of autonomy, adaptability, self-* must be provided
Workflow




  “The computerized facilitation or automation of a
   business process in whole or in part” – The Workflow Management
   Coalition

  a collection of activities that are processed in some order
   and where both data-flow and control-flow relationships
   may be present
The workflow Management Reference
Model (Workflow Management Coalition)


 Process Design                  Process Analysis, Modeling
                                 & Definition Tools
 & Definition
                                     Process Definition
 Build time
 Run time


 Process Instantiation          Workflow Enactment Service
 & Control

 Interaction with            User (human)
                                                   Applications &
 Users & Application Tools                         Tools
Scope of enactment



                          Abstract workflow
       Problem               standalone application components
                             the order in which they are executed
                             names, references, etc. are logical
   Abstract workflow
                          Represented by a graph
                             typically: DAG
   Concrete workflow



  Physical environment
Scope of enactment



                          Concrete workflow
       Problem               standalone application components
                             the order in which they are executed
                             selected resources, services
   Abstract workflow
                             additional activities (e.g. file transfer,
                              staging, etc.)
                             all names, references, etc. are physical
   Concrete workflow



  Physical environment
Learning Package Overview


 Workflow, workflow management
 Problem and requirement analysis
   – enactment in large-scale heterogeneous environments

 A chemical metaphor for workflow enactment
 A coordination model for workflow enactment formalized in
  the -calculus
 Further challenges
A common scenario
(e.g. grid workflow)



  Abstract workflow




                       Workflow engine

                                         Resources
A common scenario
(e.g. grid workflow)




 Abstract workflow
                                         Information system




                       Workflow engine

                                             Resources
A common scenario
(e.g. grid workflow)




 Abstract workflow
                                       Information system




                     Workflow engine
                                           Resources
A common scenario
(e.g. grid workflow)




  Abstract workflow
                                        Information system




                      Workflow engine

Concrete workflow                           Resources
A common scenario
(e.g. grid workflow)




  Abstract workflow
                                        Information system




                      Workflow engine
Concrete workflow                           Resources
Problem analysis (current approaches)



 The abstract workflow is static
 (Typically) no advanced control structures
 A priori mapping/ partly a priori mapping
 Mapping based on stored information
 A priori simulation/ a priori test/ a priori optimisation
 Centralised engine
 Human interaction
 Limited autonomy, limited ability for adaptation
 Overall lack of any high level model
Requirement analysis




  Workflow enactment in large-scale heterogeneous
   environments
    – should provide a higher level of autonomy
    – should be able to adapt to changing conditions
    – should be distributed
    – should be able to make decisions on partial and actual
      information
    – should support arbitrarily complex control structures
  Often a complex problem can be solved in a more simple
   way using nature inspired models
Learning Package Overview


 Workflow, workflow management
 Problem and requirement analysis
   – enactment in large-scale heterogeneous environments

 A chemical metaphor for workflow enactment
 A coordination model for workflow enactment formalized in
  the -calculus
 Further challenges
This talk is about a chemical
metaphor but…


  It is just an example
    – Chemical reactions are reasonably similar to workflow enactment
    – It has a well established formalism

  Generally: nature inspiration for solving complex problems
    – Simple, primitive parts behave “intelligently” as a whole
    – Ants, termites, cells, molecules, etc.
A chemical metaphor

 Reactions are
   – autonomous
   – distributed
   – concurrent
   – depending on local conditions
   – depending on actual conditions
   – not following any a priori pattern
   – evolving in time
A chemical metaphor



   Reactions are             Workflow enactment should
      autonomous               provide a higher level of
      distributed               autonomy

      concurrent               be able to adapt to changing
                                 conditions
      depending on local
       conditions               be distributed

      depending on actual      be able to make decisions on
       conditions                partial and actual information

      not following any a priori support arbitrarily complex
                               
       pattern                    control structures

      evolving in time
A vision of chemical enactment



  Resources
A vision of chemical enactment



  Resources
  Activities
A vision of chemical enactment



  Resources
  Activities
  Control
A vision of chemical enactment



  React
Learning Package Overview


 Workflow, workflow management
 Problem and requirement analysis
   – enactment in large-scale heterogeneous environments

 A chemical metaphor for workflow enactment
 A coordination model for workflow enactment formalized
  in the -calculus
 Further challenges
From a vision to a model



  Materialize information: resource quantums
  Define an abstract chemical coordination model
    – independent from actual technical realizations
    – provide a high-level abstract framework for refinement
    – formalism: -calculus
  Advance, refine: find chemical examples for
    – Complex control
    – Fault tolerance
    – Resource management
    – Optimization
    – etc
Resource quantums



  The usual solutions




                                              P4 P6
                                      P1P2

                                   P5 P3


 • stored information may be time sensitive
Resource quantums



  The usual solutions




                    P4
                    P2
                    P1
                      P6
                    P3
                    P5
Resource quantums
(« materialization of information »)


 resources are represented as tickets




                                                  P4 P6
                                           P1P2

                                         P5 P3


• tickets represent a guaranteed service
Resource quantums
(« materialization of information »)




                                 P2

  P6                             P5


  P4
                                 P1

                                 P3
The -calculus



 a declarative, functional formalism
 inherently concurrent model of computation
 basic data structure: multiset (chemical solution)
   – passive molecules: booleans, integers, tuples, naming molecules
   – active molecules: -abstraction

 reaction: active molecules capture other molecules
   – x.M, N → M[x:=N]

 execution: perform reactions until a stable (inert) chemical
  solution is resulted
The -calculus: -abstraction




 Active molecules: -abstraction: PC.M
   – P is a pattern that selects elements for the reaction
   – C is a condition; the reaction takes place if C is true
   – M is the action

 Example:  i:x, j:y i≤j, x>y. (j+1):x, j:y
 Semantics: capture i:x and j:y and replace them by (j+1):x,
  j:y if i≤j, x>y
 -abstraction is one-shot
 Universal matching symbol: 
The -calculus


 -terms are
   – Commutative: M1,M2≡M2,M1
   – Associative: (M1,M2),M3≡M1,(M2,M3)
   – Realize Brownian motion

 Reactions
   – Locality: if M1→M2, then M,M1→M,M2
   – Solution: if M1→M2, then <M1>→<M2>

 Conditional reactions
   –  xC.M

 Atomic capture
   –  x1,x2,…xn.M
Resources




 a resource quantum is modeled as a sub-solution
   – recall: chemical solutions can be nested

 elements in the solution are inert attribute:value pairs
 there are mandatory attributes otherwise, the format is felxible
 <id:R1, type:comp, proc:16, OS:Linux, …>
 <id:N1, type:net, bandwidth:23, …>
 <id:R3, type:comp, proc:1, installed:equsolver, network:N1 …>
Elementary activities


 the chemical model does not execute an activity, just enacts
  it – execution is external
 exit from the chemical world:
   – execute activity on resource using parameter
   – a symbolic notation that can be realised in many ways
 return to the chemical world
   – the execution produces some result or error put back in form of a
     solution (control molecule)
   – <ActivityID:result>
   – <ActivityID:result, error:errorcode, …>
   – <ActivityID:result, executed:R1, …>
 execute A on R→ <A:result…>,<id:R,…>
Resource dependency

 activity A needs a resource
 <id:r, type:comp, proc:1, >. execute A on r



                        < id:R2, type:comp, proc:1,…>
< id:R1, type:comp,
proc:16, OS:Linux, …>
                                                 < id:R3, type:comp,
                                                 proc:1, OS:SunOS, …>

                <id:r, type:comp, proc:1, >.
                     execute A on r
  < id:R4, type:comp,
                                      < id:R5, type:comp,
  proc:1, memory:23, …>
                                      proc:1, disk:12, …>
Resource dependency

 <id:r, type:comp, proc:1, >. execute A on r
 Captured a matching resource



                    < id:R2, type:comp, proc:1,…>
 < id:R1, type:comp,
 proc:16, OS:Linux, …>


                               execute A on R3



  < id:R4, type:comp,              < id:R5, type:comp,
  proc:1, memory:23, …>            proc:1, disk:12, …>
Resource dependency

 Both the resource and the activity are replaced by a control
  molecule




                    < id:R2, type:comp, proc:1,…>
 < id:R1, type:comp,
 proc:16, OS:Linux, …>
                                                < id:R3, type:comp,
                                                proc:1, OS:SunOS, …>


                          <A:12, error:0, executed:R3>

  < id:R4, type:comp,                 < id:R5, type:comp,
  proc:1, memory:23, …>               proc:1, disk:12, …>
Data and control dependency

 activity A waits a result from activity B
 <B:x, >. execute A using x




                   <C:0, error:5>


  <B:18>        <B:x, >. execute A using x


                                               <D:42>
                 <H:apple>
Data and control dependency

 <B:x, >. execute A using x
 Captured a corresponding control molecule




                 <C:0, error:5>


      execute A using 18


                                              <D:42>
               <H:apple>
Data and control dependency

 Replaced by the result




                     <C:0, error:5>


       <A:2, error:0,...>


                                      <D:42>
                  <H:apple>
Complex dependencies




 An activity needs both input from another activity and
  resources
   – <id:r, 1>, <B:x, 2>. execute A on r using x

 Dependencies can be arbitrarily combined
   – find a resource r1 for activity A and a resource r2 for B so that r1 and r2
     have the same operating system
   – <id:r1, OS:x, 1>, <id:r2, OS:x, 2> .
                          execute A on r1, execute B on r2

 Conditions can be added as well
   – <id:r, disk:x, memory:y, > x>30, y>12.
                               execute A on r
Workflow patterns



    Sequence
    Conditional
    Split
    Synchronizing merge
    P-split
      – p-out-of-n activities follow A

    P-merge
      – p-out-of-n results trigger activity A

    Loop
Learning Package Overview


 Workflow, workflow management
 Problem and requirement analysis
   – enactment in large-scale heterogeneous environments

 A chemical metaphor for workflow enactment
 A coordination model for workflow enactment formalized in
  the -calculus
 Further challenges
Challenges



  What we have so far is a framework
    – Principles of a chemical coordination model
    – It is just the beginning!

  Let’s explore and advance
    – Solve further aspects of workflow enactment: fault tolerance,
      optimization, resource control, complex workflow structures,
      constraints, co-allocation, compensation, etc.
    – Find further nature analogon within the chemical model:
      temperature, weight, magnetic properties, size, gravity, catalysts,
      membranes, etc.
Challenges (examples)



 Resource control by chemical agents
   – withdraw, modify, block, accept, reject, group, etc.

 Assert a neutralization agent: <id:r1, >.
 Replace a molecule:
  <id:r1, proc:1, OS:x, >.<id:r1, proc:1, OS:Linux, >
 Combine two molecules:
  (<id:r1, proc:1, >, <id:r1, proc:1, >).
  <id:r1, proc:2, >
Challenges (examples)



 Fault-tolerance by chemical agents
   – error molecules, retry, rollback, redundancy, compensation, etc.

 Assert an error handling molecule that reactivates in case of
  error
 (<Ai:x, >, <Aj:y, >, <id:r, R, >).
  (execute A on r using x y,
  (<A:errork, >,<id:r’, R, >).execute A on r’ using x y))
Challenges (examples)



 Complex resource allocation and co-llocation scenarios by
  molecules
   – e.g. reserve r1 and r2 so that there is a network link between them
   – (<id:r1, proc:1, network:n, >,
      <id:r2, proc:4, network:n, >,
      <id:n, type:net, >).
     (execute A on r1, (<A:x, >.execute B on r2 using x))
Conclusion



 The chemical metaphor: autonomous, adapting, distributed,
  actual
 The nature inspired coordination model
   – activities, resources and control are modeled using the same
     formalism
   – -calculus is not just description but defines execution semantics as
     well
   – workflow structure, resources and control can be
     added/withdrawn/modified in a fully dynamic and adaptive way
Connections to other teaching units



 Foundations
   – The Chemical Computing model and HOCL Programming

 Applications
   – Dynamic Adaptation with the Chemical Model




                                                   © S-Cube – 50/<Max>
References




 Zsolt Németh, Christian Pérez, Thierry Priol: Distributed workflow coordination: molecules and reactions.
 IPDPS 2006



 Zsolt Németh, Christian Pérez, Thierry Priol: Workflow Enactment Based on a Chemical Metaphor. SEFM
 2005: 127-136



 Manuel Caeiro, Zsolt Németh, Thierry Priol: A Chemical Model for Dynamic Workflow Coordination. PDP 2011:
 215-222
Acknowledgements




      The research leading to these results has
      received funding from the European
      Community’s Seventh Framework
      Programme [FP7/2007-2013] under grant
      agreement 215483 (S-Cube).

Más contenido relacionado

Similar a S-CUBE LP: Chemical Modeling: Workflow Enactment based on the Chemical Metaphor

S-CUBE LP: Executing the HOCL: Concept of a Chemical Interpreter
S-CUBE LP: Executing the HOCL: Concept of a Chemical InterpreterS-CUBE LP: Executing the HOCL: Concept of a Chemical Interpreter
S-CUBE LP: Executing the HOCL: Concept of a Chemical Interpreter
virtual-campus
 
20110516_ria_ENC
20110516_ria_ENC20110516_ria_ENC
20110516_ria_ENC
riamaehb
 
Cost Based Performance Modelling
Cost Based Performance ModellingCost Based Performance Modelling
Cost Based Performance Modelling
Eugene Margulis
 
B2 2005 introduction_load_testing_blackboard_primer_draft
B2 2005 introduction_load_testing_blackboard_primer_draftB2 2005 introduction_load_testing_blackboard_primer_draft
B2 2005 introduction_load_testing_blackboard_primer_draft
Steve Feldman
 
An Overview of VIEW
An Overview of VIEWAn Overview of VIEW
An Overview of VIEW
Shiyong Lu
 
Systems Lifecycle workbook
Systems Lifecycle workbookSystems Lifecycle workbook
Systems Lifecycle workbook
MISY
 

Similar a S-CUBE LP: Chemical Modeling: Workflow Enactment based on the Chemical Metaphor (20)

S-CUBE LP: Executing the HOCL: Concept of a Chemical Interpreter
S-CUBE LP: Executing the HOCL: Concept of a Chemical InterpreterS-CUBE LP: Executing the HOCL: Concept of a Chemical Interpreter
S-CUBE LP: Executing the HOCL: Concept of a Chemical Interpreter
 
Cybernetics in supply chain management
Cybernetics in supply chain managementCybernetics in supply chain management
Cybernetics in supply chain management
 
20110516_ria_ENC
20110516_ria_ENC20110516_ria_ENC
20110516_ria_ENC
 
Tapp11 presentation
Tapp11 presentationTapp11 presentation
Tapp11 presentation
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
Big learning 1.2
Big learning   1.2Big learning   1.2
Big learning 1.2
 
P229 godfrey
P229 godfreyP229 godfrey
P229 godfrey
 
Java Batch for Cost Optimized Efficiency
Java Batch for Cost Optimized EfficiencyJava Batch for Cost Optimized Efficiency
Java Batch for Cost Optimized Efficiency
 
Cost Based Performance Modelling
Cost Based Performance ModellingCost Based Performance Modelling
Cost Based Performance Modelling
 
A conceptual framework for behavioural adaptation @ Meeting ASCENS 2011
A conceptual framework for behavioural adaptation @ Meeting ASCENS 2011A conceptual framework for behavioural adaptation @ Meeting ASCENS 2011
A conceptual framework for behavioural adaptation @ Meeting ASCENS 2011
 
Independent tasks scheduling based on genetic
Independent tasks scheduling based on geneticIndependent tasks scheduling based on genetic
Independent tasks scheduling based on genetic
 
Ikc 2015
Ikc 2015Ikc 2015
Ikc 2015
 
B2 2005 introduction_load_testing_blackboard_primer_draft
B2 2005 introduction_load_testing_blackboard_primer_draftB2 2005 introduction_load_testing_blackboard_primer_draft
B2 2005 introduction_load_testing_blackboard_primer_draft
 
An Overview of VIEW
An Overview of VIEWAn Overview of VIEW
An Overview of VIEW
 
Systems Lifecycle workbook
Systems Lifecycle workbookSystems Lifecycle workbook
Systems Lifecycle workbook
 
Instrumentation and measurement
Instrumentation and measurementInstrumentation and measurement
Instrumentation and measurement
 
Reactive programming with examples
Reactive programming with examplesReactive programming with examples
Reactive programming with examples
 
Dileo Presentation (in English)
Dileo Presentation (in English)Dileo Presentation (in English)
Dileo Presentation (in English)
 
Challenges on Distributed Machine Learning
Challenges on Distributed Machine LearningChallenges on Distributed Machine Learning
Challenges on Distributed Machine Learning
 
oneM2M - Management, Abstraction and Semantics
oneM2M - Management, Abstraction and SemanticsoneM2M - Management, Abstraction and Semantics
oneM2M - Management, Abstraction and Semantics
 

Más de virtual-campus

S-CUBE LP: Analysis Operations on SLAs: Detecting and Explaining Conflicting ...
S-CUBE LP: Analysis Operations on SLAs: Detecting and Explaining Conflicting ...S-CUBE LP: Analysis Operations on SLAs: Detecting and Explaining Conflicting ...
S-CUBE LP: Analysis Operations on SLAs: Detecting and Explaining Conflicting ...
virtual-campus
 
S-CUBE LP: Quality of Service-Aware Service Composition: QoS optimization in ...
S-CUBE LP: Quality of Service-Aware Service Composition: QoS optimization in ...S-CUBE LP: Quality of Service-Aware Service Composition: QoS optimization in ...
S-CUBE LP: Quality of Service-Aware Service Composition: QoS optimization in ...
virtual-campus
 
S-CUBE LP: The Chemical Computing model and HOCL Programming
S-CUBE LP: The Chemical Computing model and HOCL ProgrammingS-CUBE LP: The Chemical Computing model and HOCL Programming
S-CUBE LP: The Chemical Computing model and HOCL Programming
virtual-campus
 
S-CUBE LP: SLA-based Service Virtualization in distributed, heterogenious env...
S-CUBE LP: SLA-based Service Virtualization in distributed, heterogenious env...S-CUBE LP: SLA-based Service Virtualization in distributed, heterogenious env...
S-CUBE LP: SLA-based Service Virtualization in distributed, heterogenious env...
virtual-campus
 
S-CUBE LP: Service Discovery and Task Models
S-CUBE LP: Service Discovery and Task ModelsS-CUBE LP: Service Discovery and Task Models
S-CUBE LP: Service Discovery and Task Models
virtual-campus
 
S-CUBE LP: Impact of SBA design on Global Software Development
S-CUBE LP: Impact of SBA design on Global Software DevelopmentS-CUBE LP: Impact of SBA design on Global Software Development
S-CUBE LP: Impact of SBA design on Global Software Development
virtual-campus
 
S-CUBE LP: Techniques for design for adaptation
S-CUBE LP: Techniques for design for adaptationS-CUBE LP: Techniques for design for adaptation
S-CUBE LP: Techniques for design for adaptation
virtual-campus
 
S-CUBE LP: Self-healing in Mixed Service-oriented Systems
S-CUBE LP: Self-healing in Mixed Service-oriented SystemsS-CUBE LP: Self-healing in Mixed Service-oriented Systems
S-CUBE LP: Self-healing in Mixed Service-oriented Systems
virtual-campus
 
S-CUBE LP: Analyzing and Adapting Business Processes based on Ecologically-aw...
S-CUBE LP: Analyzing and Adapting Business Processes based on Ecologically-aw...S-CUBE LP: Analyzing and Adapting Business Processes based on Ecologically-aw...
S-CUBE LP: Analyzing and Adapting Business Processes based on Ecologically-aw...
virtual-campus
 
S-CUBE LP: Preventing SLA Violations in Service Compositions Using Aspect-Bas...
S-CUBE LP: Preventing SLA Violations in Service Compositions Using Aspect-Bas...S-CUBE LP: Preventing SLA Violations in Service Compositions Using Aspect-Bas...
S-CUBE LP: Preventing SLA Violations in Service Compositions Using Aspect-Bas...
virtual-campus
 
S-CUBE LP: Analyzing Business Process Performance Using KPI Dependency Analysis
S-CUBE LP: Analyzing Business Process Performance Using KPI Dependency AnalysisS-CUBE LP: Analyzing Business Process Performance Using KPI Dependency Analysis
S-CUBE LP: Analyzing Business Process Performance Using KPI Dependency Analysis
virtual-campus
 
S-CUBE LP: Process Performance Monitoring in Service Compositions
S-CUBE LP: Process Performance Monitoring in Service CompositionsS-CUBE LP: Process Performance Monitoring in Service Compositions
S-CUBE LP: Process Performance Monitoring in Service Compositions
virtual-campus
 
S-CUBE LP: Service Level Agreement based Service infrastructures in the conte...
S-CUBE LP: Service Level Agreement based Service infrastructures in the conte...S-CUBE LP: Service Level Agreement based Service infrastructures in the conte...
S-CUBE LP: Service Level Agreement based Service infrastructures in the conte...
virtual-campus
 
S-CUBE LP: Runtime Prediction of SLA Violations Based on Service Event Logs
S-CUBE LP: Runtime Prediction of SLA Violations Based on Service Event LogsS-CUBE LP: Runtime Prediction of SLA Violations Based on Service Event Logs
S-CUBE LP: Runtime Prediction of SLA Violations Based on Service Event Logs
virtual-campus
 
S-CUBE LP: Proactive SLA Negotiation
S-CUBE LP: Proactive SLA NegotiationS-CUBE LP: Proactive SLA Negotiation
S-CUBE LP: Proactive SLA Negotiation
virtual-campus
 
S-CUBE LP: A Soft-Constraint Based Approach to QoS-Aware Service Selection
S-CUBE LP: A Soft-Constraint Based Approach to QoS-Aware Service SelectionS-CUBE LP: A Soft-Constraint Based Approach to QoS-Aware Service Selection
S-CUBE LP: A Soft-Constraint Based Approach to QoS-Aware Service Selection
virtual-campus
 
S-CUBE LP: Variability Modeling and QoS Analysis of Web Services Orchestrations
S-CUBE LP: Variability Modeling and QoS Analysis of Web Services OrchestrationsS-CUBE LP: Variability Modeling and QoS Analysis of Web Services Orchestrations
S-CUBE LP: Variability Modeling and QoS Analysis of Web Services Orchestrations
virtual-campus
 
S-CUBE LP: Run-time Verification for Preventive Adaptation
S-CUBE LP: Run-time Verification for Preventive AdaptationS-CUBE LP: Run-time Verification for Preventive Adaptation
S-CUBE LP: Run-time Verification for Preventive Adaptation
virtual-campus
 
S-CUBE LP: Online Testing for Proactive Adaptation
S-CUBE LP: Online Testing for Proactive AdaptationS-CUBE LP: Online Testing for Proactive Adaptation
S-CUBE LP: Online Testing for Proactive Adaptation
virtual-campus
 
S-CUBE LP: Using Data Properties in Quality Prediction
S-CUBE LP: Using Data Properties in Quality PredictionS-CUBE LP: Using Data Properties in Quality Prediction
S-CUBE LP: Using Data Properties in Quality Prediction
virtual-campus
 

Más de virtual-campus (20)

S-CUBE LP: Analysis Operations on SLAs: Detecting and Explaining Conflicting ...
S-CUBE LP: Analysis Operations on SLAs: Detecting and Explaining Conflicting ...S-CUBE LP: Analysis Operations on SLAs: Detecting and Explaining Conflicting ...
S-CUBE LP: Analysis Operations on SLAs: Detecting and Explaining Conflicting ...
 
S-CUBE LP: Quality of Service-Aware Service Composition: QoS optimization in ...
S-CUBE LP: Quality of Service-Aware Service Composition: QoS optimization in ...S-CUBE LP: Quality of Service-Aware Service Composition: QoS optimization in ...
S-CUBE LP: Quality of Service-Aware Service Composition: QoS optimization in ...
 
S-CUBE LP: The Chemical Computing model and HOCL Programming
S-CUBE LP: The Chemical Computing model and HOCL ProgrammingS-CUBE LP: The Chemical Computing model and HOCL Programming
S-CUBE LP: The Chemical Computing model and HOCL Programming
 
S-CUBE LP: SLA-based Service Virtualization in distributed, heterogenious env...
S-CUBE LP: SLA-based Service Virtualization in distributed, heterogenious env...S-CUBE LP: SLA-based Service Virtualization in distributed, heterogenious env...
S-CUBE LP: SLA-based Service Virtualization in distributed, heterogenious env...
 
S-CUBE LP: Service Discovery and Task Models
S-CUBE LP: Service Discovery and Task ModelsS-CUBE LP: Service Discovery and Task Models
S-CUBE LP: Service Discovery and Task Models
 
S-CUBE LP: Impact of SBA design on Global Software Development
S-CUBE LP: Impact of SBA design on Global Software DevelopmentS-CUBE LP: Impact of SBA design on Global Software Development
S-CUBE LP: Impact of SBA design on Global Software Development
 
S-CUBE LP: Techniques for design for adaptation
S-CUBE LP: Techniques for design for adaptationS-CUBE LP: Techniques for design for adaptation
S-CUBE LP: Techniques for design for adaptation
 
S-CUBE LP: Self-healing in Mixed Service-oriented Systems
S-CUBE LP: Self-healing in Mixed Service-oriented SystemsS-CUBE LP: Self-healing in Mixed Service-oriented Systems
S-CUBE LP: Self-healing in Mixed Service-oriented Systems
 
S-CUBE LP: Analyzing and Adapting Business Processes based on Ecologically-aw...
S-CUBE LP: Analyzing and Adapting Business Processes based on Ecologically-aw...S-CUBE LP: Analyzing and Adapting Business Processes based on Ecologically-aw...
S-CUBE LP: Analyzing and Adapting Business Processes based on Ecologically-aw...
 
S-CUBE LP: Preventing SLA Violations in Service Compositions Using Aspect-Bas...
S-CUBE LP: Preventing SLA Violations in Service Compositions Using Aspect-Bas...S-CUBE LP: Preventing SLA Violations in Service Compositions Using Aspect-Bas...
S-CUBE LP: Preventing SLA Violations in Service Compositions Using Aspect-Bas...
 
S-CUBE LP: Analyzing Business Process Performance Using KPI Dependency Analysis
S-CUBE LP: Analyzing Business Process Performance Using KPI Dependency AnalysisS-CUBE LP: Analyzing Business Process Performance Using KPI Dependency Analysis
S-CUBE LP: Analyzing Business Process Performance Using KPI Dependency Analysis
 
S-CUBE LP: Process Performance Monitoring in Service Compositions
S-CUBE LP: Process Performance Monitoring in Service CompositionsS-CUBE LP: Process Performance Monitoring in Service Compositions
S-CUBE LP: Process Performance Monitoring in Service Compositions
 
S-CUBE LP: Service Level Agreement based Service infrastructures in the conte...
S-CUBE LP: Service Level Agreement based Service infrastructures in the conte...S-CUBE LP: Service Level Agreement based Service infrastructures in the conte...
S-CUBE LP: Service Level Agreement based Service infrastructures in the conte...
 
S-CUBE LP: Runtime Prediction of SLA Violations Based on Service Event Logs
S-CUBE LP: Runtime Prediction of SLA Violations Based on Service Event LogsS-CUBE LP: Runtime Prediction of SLA Violations Based on Service Event Logs
S-CUBE LP: Runtime Prediction of SLA Violations Based on Service Event Logs
 
S-CUBE LP: Proactive SLA Negotiation
S-CUBE LP: Proactive SLA NegotiationS-CUBE LP: Proactive SLA Negotiation
S-CUBE LP: Proactive SLA Negotiation
 
S-CUBE LP: A Soft-Constraint Based Approach to QoS-Aware Service Selection
S-CUBE LP: A Soft-Constraint Based Approach to QoS-Aware Service SelectionS-CUBE LP: A Soft-Constraint Based Approach to QoS-Aware Service Selection
S-CUBE LP: A Soft-Constraint Based Approach to QoS-Aware Service Selection
 
S-CUBE LP: Variability Modeling and QoS Analysis of Web Services Orchestrations
S-CUBE LP: Variability Modeling and QoS Analysis of Web Services OrchestrationsS-CUBE LP: Variability Modeling and QoS Analysis of Web Services Orchestrations
S-CUBE LP: Variability Modeling and QoS Analysis of Web Services Orchestrations
 
S-CUBE LP: Run-time Verification for Preventive Adaptation
S-CUBE LP: Run-time Verification for Preventive AdaptationS-CUBE LP: Run-time Verification for Preventive Adaptation
S-CUBE LP: Run-time Verification for Preventive Adaptation
 
S-CUBE LP: Online Testing for Proactive Adaptation
S-CUBE LP: Online Testing for Proactive AdaptationS-CUBE LP: Online Testing for Proactive Adaptation
S-CUBE LP: Online Testing for Proactive Adaptation
 
S-CUBE LP: Using Data Properties in Quality Prediction
S-CUBE LP: Using Data Properties in Quality PredictionS-CUBE LP: Using Data Properties in Quality Prediction
S-CUBE LP: Using Data Properties in Quality Prediction
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

S-CUBE LP: Chemical Modeling: Workflow Enactment based on the Chemical Metaphor

  • 1. S-Cube Learning Package Chemical Modeling: Workflow Enactment based on the Chemical Metaphor INRIA, CNR, SZTAKI Zsolt Németh, SZTAKI www.s-cube-network.eu
  • 2. Learning Package Categorization S-Cube Service Infrastructure Multi-level and self-adaptation Supporting adaptation of service-based applications
  • 3. Learning Package Overview  Workflow, workflow management  Problem and requirement analysis – enactment in large-scale heterogeneous environments  A chemical metaphor for workflow enactment  A coordination model for workflow enactment formalized in the -calculus  Further challenges
  • 4. This talk is about workflow but…  Workflow is just an example – It is a common programming model for grids – Features many coordination problems  Focus: coordination – Large-scale distributed, dynamic, error prone environment and applications – Some degree of autonomy, adaptability, self-* must be provided
  • 5. Workflow  “The computerized facilitation or automation of a business process in whole or in part” – The Workflow Management Coalition  a collection of activities that are processed in some order and where both data-flow and control-flow relationships may be present
  • 6. The workflow Management Reference Model (Workflow Management Coalition) Process Design Process Analysis, Modeling & Definition Tools & Definition Process Definition Build time Run time Process Instantiation Workflow Enactment Service & Control Interaction with User (human) Applications & Users & Application Tools Tools
  • 7. Scope of enactment  Abstract workflow Problem  standalone application components  the order in which they are executed  names, references, etc. are logical Abstract workflow  Represented by a graph  typically: DAG Concrete workflow Physical environment
  • 8. Scope of enactment  Concrete workflow Problem  standalone application components  the order in which they are executed  selected resources, services Abstract workflow  additional activities (e.g. file transfer, staging, etc.)  all names, references, etc. are physical Concrete workflow Physical environment
  • 9. Learning Package Overview  Workflow, workflow management  Problem and requirement analysis – enactment in large-scale heterogeneous environments  A chemical metaphor for workflow enactment  A coordination model for workflow enactment formalized in the -calculus  Further challenges
  • 10. A common scenario (e.g. grid workflow) Abstract workflow Workflow engine Resources
  • 11. A common scenario (e.g. grid workflow) Abstract workflow Information system Workflow engine Resources
  • 12. A common scenario (e.g. grid workflow) Abstract workflow Information system Workflow engine Resources
  • 13. A common scenario (e.g. grid workflow) Abstract workflow Information system Workflow engine Concrete workflow Resources
  • 14. A common scenario (e.g. grid workflow) Abstract workflow Information system Workflow engine Concrete workflow Resources
  • 15. Problem analysis (current approaches)  The abstract workflow is static  (Typically) no advanced control structures  A priori mapping/ partly a priori mapping  Mapping based on stored information  A priori simulation/ a priori test/ a priori optimisation  Centralised engine  Human interaction  Limited autonomy, limited ability for adaptation  Overall lack of any high level model
  • 16. Requirement analysis  Workflow enactment in large-scale heterogeneous environments – should provide a higher level of autonomy – should be able to adapt to changing conditions – should be distributed – should be able to make decisions on partial and actual information – should support arbitrarily complex control structures  Often a complex problem can be solved in a more simple way using nature inspired models
  • 17. Learning Package Overview  Workflow, workflow management  Problem and requirement analysis – enactment in large-scale heterogeneous environments  A chemical metaphor for workflow enactment  A coordination model for workflow enactment formalized in the -calculus  Further challenges
  • 18. This talk is about a chemical metaphor but…  It is just an example – Chemical reactions are reasonably similar to workflow enactment – It has a well established formalism  Generally: nature inspiration for solving complex problems – Simple, primitive parts behave “intelligently” as a whole – Ants, termites, cells, molecules, etc.
  • 19. A chemical metaphor  Reactions are – autonomous – distributed – concurrent – depending on local conditions – depending on actual conditions – not following any a priori pattern – evolving in time
  • 20. A chemical metaphor  Reactions are  Workflow enactment should  autonomous  provide a higher level of  distributed autonomy  concurrent  be able to adapt to changing conditions  depending on local conditions  be distributed  depending on actual  be able to make decisions on conditions partial and actual information  not following any a priori support arbitrarily complex  pattern control structures  evolving in time
  • 21. A vision of chemical enactment  Resources
  • 22. A vision of chemical enactment  Resources  Activities
  • 23. A vision of chemical enactment  Resources  Activities  Control
  • 24. A vision of chemical enactment  React
  • 25. Learning Package Overview  Workflow, workflow management  Problem and requirement analysis – enactment in large-scale heterogeneous environments  A chemical metaphor for workflow enactment  A coordination model for workflow enactment formalized in the -calculus  Further challenges
  • 26. From a vision to a model  Materialize information: resource quantums  Define an abstract chemical coordination model – independent from actual technical realizations – provide a high-level abstract framework for refinement – formalism: -calculus  Advance, refine: find chemical examples for – Complex control – Fault tolerance – Resource management – Optimization – etc
  • 27. Resource quantums  The usual solutions P4 P6 P1P2 P5 P3 • stored information may be time sensitive
  • 28. Resource quantums  The usual solutions P4 P2 P1 P6 P3 P5
  • 29. Resource quantums (« materialization of information »)  resources are represented as tickets P4 P6 P1P2 P5 P3 • tickets represent a guaranteed service
  • 30. Resource quantums (« materialization of information ») P2 P6 P5 P4 P1 P3
  • 31. The -calculus  a declarative, functional formalism  inherently concurrent model of computation  basic data structure: multiset (chemical solution) – passive molecules: booleans, integers, tuples, naming molecules – active molecules: -abstraction  reaction: active molecules capture other molecules – x.M, N → M[x:=N]  execution: perform reactions until a stable (inert) chemical solution is resulted
  • 32. The -calculus: -abstraction  Active molecules: -abstraction: PC.M – P is a pattern that selects elements for the reaction – C is a condition; the reaction takes place if C is true – M is the action  Example:  i:x, j:y i≤j, x>y. (j+1):x, j:y  Semantics: capture i:x and j:y and replace them by (j+1):x, j:y if i≤j, x>y  -abstraction is one-shot  Universal matching symbol: 
  • 33. The -calculus  -terms are – Commutative: M1,M2≡M2,M1 – Associative: (M1,M2),M3≡M1,(M2,M3) – Realize Brownian motion  Reactions – Locality: if M1→M2, then M,M1→M,M2 – Solution: if M1→M2, then <M1>→<M2>  Conditional reactions –  xC.M  Atomic capture –  x1,x2,…xn.M
  • 34. Resources  a resource quantum is modeled as a sub-solution – recall: chemical solutions can be nested  elements in the solution are inert attribute:value pairs  there are mandatory attributes otherwise, the format is felxible  <id:R1, type:comp, proc:16, OS:Linux, …>  <id:N1, type:net, bandwidth:23, …>  <id:R3, type:comp, proc:1, installed:equsolver, network:N1 …>
  • 35. Elementary activities  the chemical model does not execute an activity, just enacts it – execution is external  exit from the chemical world: – execute activity on resource using parameter – a symbolic notation that can be realised in many ways  return to the chemical world – the execution produces some result or error put back in form of a solution (control molecule) – <ActivityID:result> – <ActivityID:result, error:errorcode, …> – <ActivityID:result, executed:R1, …>  execute A on R→ <A:result…>,<id:R,…>
  • 36. Resource dependency  activity A needs a resource  <id:r, type:comp, proc:1, >. execute A on r < id:R2, type:comp, proc:1,…> < id:R1, type:comp, proc:16, OS:Linux, …> < id:R3, type:comp, proc:1, OS:SunOS, …> <id:r, type:comp, proc:1, >. execute A on r < id:R4, type:comp, < id:R5, type:comp, proc:1, memory:23, …> proc:1, disk:12, …>
  • 37. Resource dependency  <id:r, type:comp, proc:1, >. execute A on r  Captured a matching resource < id:R2, type:comp, proc:1,…> < id:R1, type:comp, proc:16, OS:Linux, …> execute A on R3 < id:R4, type:comp, < id:R5, type:comp, proc:1, memory:23, …> proc:1, disk:12, …>
  • 38. Resource dependency  Both the resource and the activity are replaced by a control molecule < id:R2, type:comp, proc:1,…> < id:R1, type:comp, proc:16, OS:Linux, …> < id:R3, type:comp, proc:1, OS:SunOS, …> <A:12, error:0, executed:R3> < id:R4, type:comp, < id:R5, type:comp, proc:1, memory:23, …> proc:1, disk:12, …>
  • 39. Data and control dependency  activity A waits a result from activity B  <B:x, >. execute A using x <C:0, error:5> <B:18>  <B:x, >. execute A using x <D:42> <H:apple>
  • 40. Data and control dependency  <B:x, >. execute A using x  Captured a corresponding control molecule <C:0, error:5> execute A using 18 <D:42> <H:apple>
  • 41. Data and control dependency  Replaced by the result <C:0, error:5> <A:2, error:0,...> <D:42> <H:apple>
  • 42. Complex dependencies  An activity needs both input from another activity and resources – <id:r, 1>, <B:x, 2>. execute A on r using x  Dependencies can be arbitrarily combined – find a resource r1 for activity A and a resource r2 for B so that r1 and r2 have the same operating system – <id:r1, OS:x, 1>, <id:r2, OS:x, 2> . execute A on r1, execute B on r2  Conditions can be added as well – <id:r, disk:x, memory:y, > x>30, y>12. execute A on r
  • 43. Workflow patterns  Sequence  Conditional  Split  Synchronizing merge  P-split – p-out-of-n activities follow A  P-merge – p-out-of-n results trigger activity A  Loop
  • 44. Learning Package Overview  Workflow, workflow management  Problem and requirement analysis – enactment in large-scale heterogeneous environments  A chemical metaphor for workflow enactment  A coordination model for workflow enactment formalized in the -calculus  Further challenges
  • 45. Challenges  What we have so far is a framework – Principles of a chemical coordination model – It is just the beginning!  Let’s explore and advance – Solve further aspects of workflow enactment: fault tolerance, optimization, resource control, complex workflow structures, constraints, co-allocation, compensation, etc. – Find further nature analogon within the chemical model: temperature, weight, magnetic properties, size, gravity, catalysts, membranes, etc.
  • 46. Challenges (examples)  Resource control by chemical agents – withdraw, modify, block, accept, reject, group, etc.  Assert a neutralization agent: <id:r1, >.  Replace a molecule: <id:r1, proc:1, OS:x, >.<id:r1, proc:1, OS:Linux, >  Combine two molecules: (<id:r1, proc:1, >, <id:r1, proc:1, >). <id:r1, proc:2, >
  • 47. Challenges (examples)  Fault-tolerance by chemical agents – error molecules, retry, rollback, redundancy, compensation, etc.  Assert an error handling molecule that reactivates in case of error  (<Ai:x, >, <Aj:y, >, <id:r, R, >). (execute A on r using x y, (<A:errork, >,<id:r’, R, >).execute A on r’ using x y))
  • 48. Challenges (examples)  Complex resource allocation and co-llocation scenarios by molecules – e.g. reserve r1 and r2 so that there is a network link between them – (<id:r1, proc:1, network:n, >, <id:r2, proc:4, network:n, >, <id:n, type:net, >). (execute A on r1, (<A:x, >.execute B on r2 using x))
  • 49. Conclusion  The chemical metaphor: autonomous, adapting, distributed, actual  The nature inspired coordination model – activities, resources and control are modeled using the same formalism – -calculus is not just description but defines execution semantics as well – workflow structure, resources and control can be added/withdrawn/modified in a fully dynamic and adaptive way
  • 50. Connections to other teaching units  Foundations – The Chemical Computing model and HOCL Programming  Applications – Dynamic Adaptation with the Chemical Model © S-Cube – 50/<Max>
  • 51. References Zsolt Németh, Christian Pérez, Thierry Priol: Distributed workflow coordination: molecules and reactions. IPDPS 2006 Zsolt Németh, Christian Pérez, Thierry Priol: Workflow Enactment Based on a Chemical Metaphor. SEFM 2005: 127-136 Manuel Caeiro, Zsolt Németh, Thierry Priol: A Chemical Model for Dynamic Workflow Coordination. PDP 2011: 215-222
  • 52. Acknowledgements The research leading to these results has received funding from the European Community’s Seventh Framework Programme [FP7/2007-2013] under grant agreement 215483 (S-Cube).