MOCCI
Mocci is an extension for the Open Cloud Computing Interface (OCCI) to enable a model-driven management of monitoring instruments in the cloud, as well as storing their results within an OCCI runtime model. Together with other tools from the OCCI ecosystem it provides a testing and execution environment for self-adaptive systems.
In addition to the getting started and the example scenarios discussed in this document, the main components of MOCCI are represented by the:
Getting Started
To getting started with MOCCI we provide a hands on experience in form of a virtualbox image in which everything required is already configured and ready to go. Alternatively, to manually setup the single components instructions can be found at the end of this document.
VirtualBox
To get a quick start in the OCCI ecosystem and the MOCCI monitoring extension download the following VM image. This image contains a version of OCCI-Studio with the MoDMaCAO and MOCCI plugins pre-installed. Moreover, it contains a checked out version of MOCCI and a local version of the MARTserver.
https://owncloud.gwdg.de/index.php/s/5u2ddnyyNlzecM5
password: mocci
After the download has finished, open Virtualbox and import the virtual appliance:
- Click on File->Import Appliance...
- Choose the destination of the downloaded image.
- Adjust the appliance settings according to your System.
- For a smooth experience 8Gb Ram, and 2 CPUs are recommended.
- Press Import.
Next start the virtual machine:
- Choose the recently imported VM and press Start.
- The username, and password are both: mocci
Step-by-step example scenarios
To get the ropes of MOCCI, we provide step-by-step instructions for three example scenarios, which are based on the same initial deployment model.
- Initial Deployment: This tutorial demonstrates how to deploy an initial cloud application getting monitored by MOCCI.
- Vertical Scaling: This scenario scales a VM in the initial deployment up and down according to its CPU utilization.
- Horizontal Scaling: This scenario dynamically adds and releases worker nodes in the hadoop cluster of the initial deployment.
- Sensor Creation: This scenario shows how to add sensors to an OCCI model.
Note: Please note that the execution of the example scenarios in an distributed environment, e.g., requires access to it as well as connectors implementing how the differen requests should be handled. Thus, the provided scenarios are based on monitoring data simulated by the MOCCI connector dummy.
OCCI-Studio and MoDMaCAO
OCCI-Studio is an IDE providing many convenient tools to develop around OCCI. For example, it provides a model editor, graphically and textually. Moreover, it allows to design OCCI extensions and automatically generate code from it. In addition to OCCI-Studio the Model-Driven Configuration Management of Cloud Applications with OCCI (MoDMaCAO) extension suite is needed.
Documentation on how to setup and configure OCCI-Studio
MartServer
The MartServer represents the OCCI interface to which requests are send in order to build and monitor the cloud application.