tosca workflows use cases. concurrency resolving 2 compute tosca.nodes.compute capabilities...

6
TOSCA Workflows Use Cases

Upload: daniel-jacobs

Post on 18-Jan-2016

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: TOSCA Workflows Use Cases. Concurrency resolving 2 compute tosca.nodes.Compute Capabilities Container HostedOn tomcat Tomcat Requirements Host mysql MySQL

TOSCA WorkflowsUse Cases

Page 2: TOSCA Workflows Use Cases. Concurrency resolving 2 compute tosca.nodes.Compute Capabilities Container HostedOn tomcat Tomcat Requirements Host mysql MySQL

Concurrency resolving

2

computecompute

tosca.nodes.Compute

Capabilities

ContainerContainer

HostedOn

tomcattomcat

Tomcat

Requirements

HostHost

mysqlmysql

MySQL

Requirements

HostHost

HostedOn

Scenario 1:Create operation download zip files and unzip them,

both in parallel in order to optimize bandwidth.

compute started

mysql creating tomcat creating

mysql create tomcat create

mysql created tomcat created

Page 3: TOSCA Workflows Use Cases. Concurrency resolving 2 compute tosca.nodes.Compute Capabilities Container HostedOn tomcat Tomcat Requirements Host mysql MySQL

Concurrency resolving

3

computecompute

tosca.nodes.Compute

Capabilities

ContainerContainer

HostedOn

tomcattomcat

Tomcat

Requirements

HostHost

mysqlmysql

MySQL

Requirements

HostHost

HostedOn

Scenario 2:Create operation performed through apt-get command that doesn’t support concurrency.

compute started

mysql creating

tomcat creating

mysql create

tomcat create

mysql created

tomcat created

Page 4: TOSCA Workflows Use Cases. Concurrency resolving 2 compute tosca.nodes.Compute Capabilities Container HostedOn tomcat Tomcat Requirements Host mysql MySQL

Hosted_On – Active hosting

4

computecompute

tosca.nodes.Compute

Capabilities

ContainerContainer

HostedOn

tomcattomcat

Tomcat

Capabilities

ContainerContainer

Requirements

HostHost

Many other scenaris like Database on DBMS, even some War on containers

compute started

tomcat creating

tomcat configuring

tomcat create

HostedOn pre_configure_source

tomcat created

tomcat configured

tomcat configure

HostedOn post_configure_source

Note: pre_configure_target and post_configure_target operations are not allowed as the compte node is not provided by the user but Substituated by the orchestrator.

The user has no ownership on it’s lifecycle.

tomcat start

tomcat starting

tomcat started

Page 5: TOSCA Workflows Use Cases. Concurrency resolving 2 compute tosca.nodes.Compute Capabilities Container HostedOn tomcat Tomcat Requirements Host mysql MySQL

Hosted_On – Passive hosting

5

TargetTarget

ElasticSearch

Capabilities

ContainerContainer

HostedOn

SourceSource

ElasticSearch Plugin

Requirements

HostHost

I need to create the plugin before the ElasticSearch is created

ElasticSearch Java plugins: Documentation extract:

These plugins contain only JAR files, and must be installed on every node in the cluster. After installation, each node must be restarted before the plugin becomes visible.

Page 6: TOSCA Workflows Use Cases. Concurrency resolving 2 compute tosca.nodes.Compute Capabilities Container HostedOn tomcat Tomcat Requirements Host mysql MySQL

Cluster Manager/Managed use case

• Need some nodes to be in certain states before next nodes do something.

• Cluster with master Election and then need the address of the master• Runtime impacts with new master election are also to consider.

• TODO detail the use-case

6