Difference between revisions of "WorkflowJDLAdaptor"

From Gcube Wiki
Jump to: navigation, search
(JDL attributes)
(JDL attributes)
Line 11: Line 11:
 
*Rank (optional)
 
*Rank (optional)
 
*Requirements (optional)
 
*Requirements (optional)
 
+
Workflow Engine Extensions to the JDL syntax
 
*ParsingMode (optional)
 
*ParsingMode (optional)
 +
*:Whether the adaptor should create a plan that orchestrates the execution as a series of sequential and parallel steps, or by defining a bag of execution units with execution conditions made up from their dependency lists. Supported values for this are ''Plan'' and ''Bag'' for the two alternatives respectively.
 
*ConnectionMode (optional)
 
*ConnectionMode (optional)
 +
*:When contacting a remote execution unit, the execution engine can either maintain  a steady connection with the remote site or wait for the remote side to perform a callback to report its completion. Supported values for this are '''KeepAlive' and ''Callback'' for the two alternatives respectively.
  
 
==Job==
 
==Job==
Line 29: Line 31:
 
*Rank (optional)
 
*Rank (optional)
 
*Requirements (optional)
 
*Requirements (optional)
 
+
Workflow Engine Extensions to the JDL syntax
 +
*ParsingMode (optional)
 +
*:Whether the adaptor should create a plan that orchestrates the execution as a series of sequential and parallel steps, or by defining a bag of execution units with execution conditions made up from their dependency lists. Supported values for this are ''Plan'' and ''Bag'' for the two alternatives respectively.
 
*ConnectionMode (optional)
 
*ConnectionMode (optional)
*RetryInterval (optional)
+
*:When contacting a remote execution unit, the execution engine can either maintain  a steady connection with the remote site or wait for the remote side to perform a callback to report its completion. Supported values for this are '''KeepAlive' and ''Callback'' for the two alternatives respectively.
  
 
=Highlights=
 
=Highlights=

Revision as of 17:31, 30 January 2010

Overview

This adaptor as part of the adaptors offered by the WorkflowEngine constructs an ExecutionPlan based on the description of a job defined in JDL syntax. This description can be of a single job or it can include a Directed Acyclic Graph (DAG) of jobs. The JDL description is parsed and the adaptor then processed the retrieved parsed info to create the ExecutionPlan. During the parsing procedure, the jobs Input and Output sandboxes are examined to determin what is the overall input and output set of the workflow. The input set is covered by the submitting client through the attached resources he provides. The output resources of the workflow are constructed from the elements found in all the jobs Output Sandboxes.

JDL attributes

DAG

Supported attributes in a JDL description defining a DAG of jobs are the following

  • Max_Running_Nodes (optional)
  • Nodes (optional)
  • Dependencies (optional)
  • NodesCollocation (optional)
  • Rank (optional)
  • Requirements (optional)

Workflow Engine Extensions to the JDL syntax

  • ParsingMode (optional)
    Whether the adaptor should create a plan that orchestrates the execution as a series of sequential and parallel steps, or by defining a bag of execution units with execution conditions made up from their dependency lists. Supported values for this are Plan and Bag for the two alternatives respectively.
  • ConnectionMode (optional)
    When contacting a remote execution unit, the execution engine can either maintain a steady connection with the remote site or wait for the remote side to perform a callback to report its completion. Supported values for this are KeepAlive' and Callback for the two alternatives respectively.

Job

  • JobType (mandatory)
  • Executable (mandatory)
  • Arguments (optional)
  • StdInput (optional)
  • StdOutput (optional)
  • StdError (optional)
  • InputSandbox (optional)
  • OutputSandbox (optional)
  • Environment (optional)
  • RetryCount (optional)
  • ShallowRetryCount (optional)
  • Rank (optional)
  • Requirements (optional)

Workflow Engine Extensions to the JDL syntax

  • ParsingMode (optional)
    Whether the adaptor should create a plan that orchestrates the execution as a series of sequential and parallel steps, or by defining a bag of execution units with execution conditions made up from their dependency lists. Supported values for this are Plan and Bag for the two alternatives respectively.
  • ConnectionMode (optional)
    When contacting a remote execution unit, the execution engine can either maintain a steady connection with the remote site or wait for the remote side to perform a callback to report its completion. Supported values for this are KeepAlive' and Callback for the two alternatives respectively.

Highlights

Parellization factor

Depending on the configuration, the adaptor will create the ExecutionPlan that will orchestrate the execution of a DAG of jobs either as a series of ppSequencePlanElement]] and FlowPlanElement elements or as a single BagPlanElement. The first case allows for a well defined series of operation but since the creation of such a series of constructs is an exercise on graph topological sorting, which as a problem can provide multiple answers that depending on the nature of the original graph might restrict the parallelization factor of the overall DAG, in cases of complex graphs, this case can damage the parallelization capabilities of the overall plan. The second case is much more dynamic. It allows for execution time decision making of the nodes to be executed. This of course comes as a tradeoff with increased complexity at runtime with respect to the well defined plan, but it can provide optimal parallelization capabilities.

Staging

Staging of input for the executables constituting the execution units of the jobs, is performed at a level of Input Sandbox defined for each job. The resources that are attached to the adaptor are stored in the StorageSystem and are retrieved in the node that hosts the Input Sandbox that declares them. The files declared in the Output Sandbox of a job are stored in the StorageSystem and information on the way to retrieve the output is provided through the Output Resources defined by the adaptor and are valid after the completion of the execution.

Known limitations

  • JDL parsing needs all declerations to start and begin with angle brackets ([,])
  • JDL attributes parsing is case sensitive
  • JDL Dependencies attribute only support pairs not inner lists
  • Supported jobs are only those of type Normal
  • Node collocation
    The case of node collocation in DAG jobs is not handled correctly because multiple BoundaryPlanElement are created. The node used is still a single one but it is contacted multiple times and data locality is not exploited correctly.
  • The arguments defined for an executable in the respective JDL attribute, when passed to the ShellPlanElement are split using the space character (' ') as a delimiter. This way no space containing phrase can be passed as a single argument
  • The Retry and Shallow Retry attributes of the JDl are treated equally and are used at the level of ShellPlanElement and not at the level of BoundaryPlanElement depending on the case
  • After the execution completion no cleanup in the StorageSystem is done.