Coder Social home page Coder Social logo

lbaas-node-kicker's Introduction

CloudServers API tools that build Nodes for the lbaas project.

Requires python 2.6 with paramiko
    For MacPorts users: sudo port install py26-paramiko
    For Unbuntu 10.04 users: sudo apt-get install python-paramiko


This project uses the following projects

    git://github.com/crc32a/dnsxmlserver.git for the XMLRPC controllable 
    DNS server

    git://github.com/crc32a/NodeToys.git for the NodeToys project that 
    actually gets deployed by the servers tools.





Check out the project from git hub.
git clone git://github.com/crc32a/lbaas-node-kicker.git
cd into ./lbaas-node-kicker/servers
un tar the file json.tar.gz attached to this email
tar -xvcf json.tar.gz 


run the command
./getauth cgarza.json (this has my info in it - although it says cGarza)
This creates the auth_headers.db file which stores the auth token for the lsServers script.

now run
./lsServers  xxxx This will fetch all the machines stored in the umagoring account. This part is crumby as Cloud Servers API isn't real hit or miss if it fails you may
keep re running it till it works. The script will create a file called server_list.json which is used so the genRequest script doesn't need to even hit
the CloudServers api to see what nodes are available. IE you only need to run ./lsServers once because its too painful to keep running over and over.

Edit the reqConfig.json file to you likings. You can change the quantity fields if you want. 3000 lbs may be to much for your likeings.


now run
./genRequests 
This build the requests and stores then in requests.json

Finaly run
./buildLBRequests.py lbConfig.json
This will call the api and create the loadbalancers. Edit the lbConfig.json if
you intend to hit a different end point. 
Also note that the code is going throgh the management interface and uses the extra_headers.json file to 
bypass auth.


The ./lsServers assume that servers have been created.

In order to spin up servers if servers have not been created do
To add 100 servers with password uma
./addServers 1 100 
./lsServers xxxx
./passwdservers uma 1 100
./initkick uma 1 5

//in order to see what goes into initkick script look at initkick in 
/Users/uma.goring/lbaasPerformance/lbaas-node-kicker/servers/skel/usr/local/sbin

lbaas-node-kicker's People

Contributors

the2hill avatar

Stargazers

Carlos D. Garza avatar

Watchers

Jorge Miramontes avatar Sudarshan Acharya avatar  avatar  avatar Carlos D. Garza avatar James Cloos 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.