tosca workflows use cases. concurrency resolving 2 compute tosca.nodes.compute capabilities...
TRANSCRIPT
TOSCA WorkflowsUse Cases
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
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
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
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.
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