Giter Club home page Giter Club logo

autoscaling-for-hybrid-cloud's Introduction

#######################################################################################

Package Requirements: Ansible, Libvirt, Python, Shell, sshpass, docker, .

A custom template.img was used to deploy VMs and similarly another template.img was used to deploy Controller VM. This scripts assume that these image files are located at /var/lib/libvirt/images/ directory. Also another docker image was created on top bae Ubuntu docker image with packages: iproute2,ping,isc-dhcp-server,openssh2,tcpdump and this image was used to deploy Containers.

Operating System tested on: Ubuntu 16.04.5 LTS

These scripts assume ssh keys are configured between the Hypervisors.

Required files: All files provided in the scripts directory. Schema.json can be modified.

Usage: cd into the scripts directory and run this command with the JSON Input File:

./main.sh

Creates the complete infrastructure for the Tenant including the Controller VMs. Controller.py - This script has the core logic built inside and needs to be scheduled using start_controller.py (Default 5 Min Cron job). Usage: python controller.py - takes no argument. This file assumes schema.json and mgmtdetails.json files are present.

Directory Structure: Onboarding: Contains scripts for initial setup till the Controller takes over. autoscaler: Controller resides in this directory and this will be run from Controller VM. Note that there are two versions of autoscaler - One for Containers and One for VMs.

To use Containers: copy Container/autoscaler and onboarding directories in the same directory in the main hypervisor. Make sure to AVOID copying any files from VM directory. Populate mgmtdetails in onboarding directory with available Hypervisor list. Create/take the schema.json. Run Main.sh with schema.json

To use VM: copy VM/autoscaler and onboarding directories in the same directory. Make sure to AVOID copying any files from Container directory. Populate mgmtdetails in onboarding directory with available Hypervisor list. Create/take the schema.json. Run Main.sh with schema.json

#######################################################################################

autoscaling-for-hybrid-cloud's People

Contributors

tapas1306 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.