Skip to content
Snippets Groups Projects

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:

  1. Install docker
  2. Clone the MOCCI repository
  3. Optional: Add martserver-plugins and roles to be used by the server. Adjust the authorized_keys file for ssh access.
  4. Navigate to src/test/resources/
  5. Create docker image: sudo docker build -t mart-server .
  6. Test the docker image: sudo docker run -p 8080:8080 -p 22:22 mart-server
  7. Store the docker image: sudo docker save mart-server
    >
    mart-server.tar
  8. 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:

  1. Download/Navigate to the archive containing the docker image
  2. Load the docker image: docker load
    <
    mart-server.tar
  3. Start the image: sudo docker run -p 8080:8080 -p 22:22 mart-server
  4. Start with bash: sudo docker run -p 8080:8080 -p 22:22 -i -t mart-server /bin/bash
  5. 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