Skip to content

Assignment 2 : Details

nbafna04 edited this page Mar 22, 2020 · 13 revisions

Checklist of Assignment 2

  1. All our applications have been containerized using docker.
  2. The applications have been clusterized using Kubernetes for automatic deployment, scaling and management of containers.
  3. Deployment of system on JetStream using OpenStack.
  4. We have enabled CI/ CD pipeline using TravisCI for integration and deployment.
  5. Used JMeter and plotted graphs to evaluate scaling of our system.
  6. Addressed issues faced during Assignment 1.

Access details

  1. IP details of our cluster:

    nsa-kubs-master - 149.165.170.202

    nsa-kubs-slave1 - 149.165.170.186

    nsa-kubs-slave2 - 149.165.170.179

    To login into master system use: (Public cloud-key is in our git branch assignment 2 if needed)

    ssh -i cloud-key.pub [email protected]

  2. Travis CI:

    Can be accessed using your Git credentials using link below:

    https://www.travis-ci.org/

Flow

  1. Git clone our repository

    git clone -b assignment2 https://github.com/airavata-courses/NSA.git

  2. Before doing a test commit, do a git clone of deployment_scripts branch as below on our master:

    ssh cloud-key [email protected]

    mkdir scripts

    cd scripts

    git clone -b deployment_scripts https://github.com/airavata-courses/NSA.git

    cp -R NSA/* /home/ubuntu/

  3. Do a test commit on this folder

  4. Triggers Travis CI and runs the test cases for the services

  5. If the test cases are passed, build the docker images and push to docker hub.

  6. Deployment of Kubernetes pods from docker hub

Our Website is Deployed at : http://149.165.170.202:31001/

Feature branches

CI/CD is also implemented on individual feature branches. You can do a test commit on individual branch given below:

  1. feature/user-interface
  2. feature/user-management
  3. feature/api-gateway
  4. feature/data-retrieval
  5. feature/post-processing
  6. feature/session-management

Getting Started

Link to install and setup VM on Openstack from scratch: Openstack

Screenshots

We have captured the screenshots of Pods, services and deployments and how they look here

Scaling using Jmeter

Jmeter results were run on 3 replicas: 1 3 and 5 The results were captured here

Ports

You might need to open below ports

22 80 443 2181 2888 3002 3036 3888 5002 5003 8080 8081 8082 9092 30016 30462 30586 30718 30781 30824 30907 31001 31002 31005 31006 31009 31020 31036 31083 31156 31291 31448 32001 32450 32745