-
Notifications
You must be signed in to change notification settings - Fork 3
Getting started
DICER defines a modeling method to be followed which is based on UML Deployment Diagram to be annotated with sterotypes provided by the DDSM package of the DICE-Profiles. In particular, the DDSM package provides stereotypes to model the deployment of data-intensive technologies on top of Cloud platforms and of DIAs on top of the resulting infrastructure.
DICER comes with a set of pre-defined models which can be imported into a default Eclipse project using the DICER plugin from the DICE IDE:
Alternatively you can create a new DICE project which comes with an empty deployment model already configured with the DICE-Profiles:
In the following we are going to define a sample DICER model step by step with the aim of illustrating the DICER modeling method.
First, one should model the necessary Cloud resources. Data-intensive technologies are tipYcally distributed systems running on clusters of nodes (virtual machines or containers). To model such aspect it is possible to use the DdsmVMsCluster stereotype to be applied on a UML Device element:
Data-intensive technologies are then just software platforms running on the available clusters in a distributed fashion. Some of them are responsible to actually executing DIAs and are called execution engines. The DDSM package of the DICE-Profiles provides specific stereotypes for the various supported technologies (such as Spark, Storm or Cassandra). Such stereotypes have to be applied on UML Node elements that are placed within the previously instantiated DdsmVMsCluster Devices. Execution engines, e.g. Spark or Storm, should be model as UML ExecutionEnvironment with applied the corresponding stereotype.
Finally DIA running on top of the resulting infrastructure can be represented as UML Artifacts annotated with the DdsmBigDataJob stereotype with a UML Deployment Dependency connecting them to the ExecutionEnvironment which is supposed to execute them. If a DIA needs other data-intensive platforms in order to operate, a UML Dependency can be used to model such aspect.
All the provided stereotypes provide attributes to configure each data-intensive platform as well as the way DIAs are deployed.
Once the modeling activities have been finalized, it is possible to invoke the DICER service via the provided Eclipse plugin to obtain the corresponding generated TOSCA blueprint. To this aim, the DICER plugin provides a specific Run Configuration, which can be configured, besides the location of the running instance of the DICER sevices, with the location of the input UML model and of the blueprint that will be received back. The obtained TOSCA blueprint can be visualized using a text editor and subsequently deployed using the DICE-Deployment-Service: