GithubHelp home page GithubHelp logo

Comments (3)

nicolasferry avatar nicolasferry commented on July 16, 2024

Hi,

The deployment order is defined on the basis of the dependencies between the components.
It is not an ordering between the resources but between the commands in the resources.
The process can be simplified as follows:

  1. Provision and prepare all VMs and PaaS services
  2. For each internal component
    2.1. Execute the upload and download commands
    2.2. Install all its dependencies (in term of component)
    2.3. Execute the install command
  3. Execute the commands associated to the relationships
  4. Execute all start command

Best regards,
Nicolas

from cloudml.

paxti avatar paxti commented on July 16, 2024

Thank you far an answer, but what if i absolutely need to have some software to be installed in all instances before executing any command for actually Resources. Is there is a way to use RequiredExecutionPlatform for this somehow? And can you elaborate a bit more on "2.2. Install all its dependencies (in term of component) "

from cloudml.

nicolasferry avatar nicolasferry commented on July 16, 2024

About 2.2, if a component instance requires another component instance meaning it has a requiredPort instance linked with a relationship instance to a provided Port from another component, and if this requiredPort is defined as mandatory, then the required component will be installed first. Similarly, if a component require an execution platform, the component offering the execution platform will be installed first. In both cases, by install I mean: the download, configure and install commands are executed. Components are installed only once.

Thus, if you want a component to be installed before the others there are several options:

  • you can for instance specify that all the other components will require it as execution platform
  • you can use relationships with the mandatory property set to true in the required port.

Regarding your question about the possibility to define the order in which the commands are executed, this is an ongoing work which is not yet available.

Also, if you just want to log the order in which the commands will be performed you can activate the debug mode in the facade: https://github.com/SINTEF-9012/cloudml/tree/master/facade/src/main/java/org/cloudml/facade/commands

from cloudml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.