Giter Club home page Giter Club logo

cli-application-load-balancer's Introduction

Update the weights in an ALB Load Balancing Cloudlet

This tool modifies the weights (%) in a Load Balancing ID used by the Application Load Balancer Cloudlet.

The user can optionally select to immediately push the change to staging or production by using the '-x' option. Also the user can optionally chose to work based on the active version in staging or production by using the '-s' option.

USAGE:

The script has three main commands, each with with sub functions.

usage: cloudlet_alb_balancing.py [--version]  ...

Application Load Balancer Cloudlet Weitghts Updater

optional arguments:
  --version  show program's version number and exit

Commands:

    help     Show available help
    update   Modify target rule
    activate
             Activate a Load Balancing ID to Staging or Production
    search   Search for policies and load balancing IDs

Update

Update the weights on a Load Balancing ID. A new balancing ID is created from the existing version activated on Staging or Production.

usage: cloudlet_alb_balancing.py update --loadid LOADID --datacenters
                                        DATACENTERS [--stage]
                                        [--activate {STAGING,PRODUCTION}]
                                        [--edgerc EDGERC] [--section SECTION]
                                        [--verbose]

required arguments:
  --loadid LOADID       Load Balancing ID name
  --datacenters DATACENTERS
                        Data Center Name and Percentge Value, Example:
                        'DC1:20,DC2:35,DC3:45'

optional arguments:
  --stage               Work based on the last active verion in staging. By
                        default the script works on the last version activated
                        in production
  --activate {STAGING,PRODUCTION}
                        Activate the policy to the specified network. Default
                        is PRODUCTION
  --edgerc EDGERC       Config file [default: ~/.edgerc]
  --section SECTION     Config section in .edgerc [default: cloudlets]
  --verbose             Enable verbose mode

Activate

Activate an existing Load Balancing ID. No modifications are made to the weights.

usage: cloudlet_alb_balancing.py activate --loadid LOADID --version VERSION
                                          [--network {STAGING,PRODUCTION}]
                                          [--edgerc EDGERC]
                                          [--section SECTION] [--verbose]

required arguments:
  --loadid LOADID       Load Balancing ID name
  --version VERSION     Version of the Load Balancing ID to activate

optional arguments:
  --network {STAGING,PRODUCTION}
                        Activate the policy to the specified network. Default
                        is PRODUCTION
  --edgerc EDGERC       Config file [default: ~/.edgerc]
  --section SECTION     Config section in .edgerc [default: cloudlets]
  --verbose             Enable verbose mode

Search

  • Search the associated load balancing IDs and properties to an ALB policy.
  • Search the associated ALB policy name and properties to a load balancing Id.

The results are displayed in a trew view form.

usage: cloudlet_alb_balancing.py search --type {loadid,policy} --name NAME
                                        [--edgerc EDGERC] [--section SECTION]

required arguments:
  --type {loadid,policy}
                        Select to search for a policy or load balancing ID
  --name NAME           Name to search for

optional arguments:
  --edgerc EDGERC       Config file [default: ~/.edgerc]
  --section SECTION     Config section in .edgerc [default: cloudlets]

cli-application-load-balancer's People

Contributors

jaescalo avatar

Watchers

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.