Code Monkey home page Code Monkey logo

microarmy's People

Contributors

benjaminws avatar robbyt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

microarmy's Issues

IDEA: microarmy could take a list of URLS.

You could have microarmy take a list of urls to write to a file and test against.

E.G.

microarmy> urls
    urls: ['http://one', 'http://two', 'http://three']

Then it could write /tmp/urls.txt on all the cannons, and execute siege like so:

$ siege -f /tmp/urls.txt

This would be useful for a subsequent idea I'm about to submit an issue on ;)

Microarmy bails out with 380 instances.

Tried to use 380 and 200 instances for a big test, microarmy just stopped during the deploy phase. Instances where created but the command never returned.
Manually added the microarmy tag to the created instances and used 'find_cannons', worked.
Tried 'deploy' but after a long time got a long list of EOF exception (all the same traceback)

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 336, in fire_timers
    timer()
  File "/usr/lib/python2.7/site-packages/eventlet/hubs/timer.py", line 56, in __call__
    cb(*args, **kw)
  File "/usr/lib/python2.7/site-packages/eventlet/semaphore.py", line 95, in _do_acquire
    waiter.switch()
  File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 192, in main
    result = function(*args, **kwargs)
  File "/home/coredump/dev/microarmy/microarmy/firepower.py", line 155, in _setup_a_cannon
    ssh_conn = ssh_connect(hostname)
  File "/home/coredump/dev/microarmy/microarmy/communications.py", line 36, in ssh_connect
    transport.connect(username=ec2_ssh_username, pkey=rsa_key)
  File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 989, in connect
    self.start_client()
  File "/usr/lib/python2.7/site-packages/paramiko/transport.py", line 461, in start_client
    raise e
EOFError

IDEA: microarmy could take a dict of key/values to datafill a siege config

What about allowing "target" in the fire operation to take a dictionary of key/values that then datafills a siege template to distribute to the cannons? Assuming the idea in issue #1 is implemented as well...

E.G.:

microarmy> urls
    urls: ['http://one', 'http://two', 'http://three']
microarmy> fire
    target: {'concurrency': 15, 'connection': 'keep-alive', 'benchmark': 'true', 'file': '/tmp/urls.txt' }

Then microarmy would write a config in $HOME/.siegerc that looks like this:

concurrency = 15
connection = keep-alive
benchmark = true
file = /tmp/urls.txt

...and run siege like so:

$ siege

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.