Vertical Scaling Scenario
In this scenario a hadoop cluster with one worker node getting monitored is deployed. As soon as the CPU utilization of the worker node reaches a critical level, a request against the OCCI API is performed, increasing the number of cores and memory available to the machine.
Instructions
In order to provide an easy use of the MART Server, a docker container embedding the server and all required plugins is provided. However, to use specialized plugins currently the docker image has to be recreated. Thus, a brief explanation of the single steps are given in the following:
- Install docker
- Clone the MOCCI repository
- Optional: Add martserver-plugins and roles to be used by the server. Adjust the authorized_keys file for ssh access.
- Navigate to src/test/resources/
- Create docker image: sudo docker build -t mart-server .
- Test the docker image: sudo docker run -p 8080:8080 -p 22:22 mart-server
- Store the docker image: sudo docker save mart-server >mart-server.tar
- To access the container you can use an ssh connection: ssh -i $key root@localhost
To build this container a fatjar of the MartServer is used. To use newer versions please refer to the documentation of the MartServer in how to create a docker container.
Loading a Docker Container
To initialize the proposed OCCI extensions, the following plugins need to be added to the OCCI-Studio. These allow to correctly depict OCCI models in the textual and graphical editor. To Install plugins the following steps have to be performed:
- Download/Navigate to the archive containing the docker image
- Load the docker image: docker load <mart-server.tar
- Start the image: sudo docker run -p 8080:8080 -p 22:22 mart-server
- Start with bash: sudo docker run -p 8080:8080 -p 22:22 -i -t mart-server /bin/bash
- To access the container you can use an ssh connection: ssh -i $key root@localhost
Configuring the MartServer to be used in OpenStack
Documentation on how to setup and configure the MartServer for an OpenStack Cloud