jmsdnns / microarmy Goto Github PK
View Code? Open in Web Editor NEWDeploy N AWS micro instances and launch coordinated siege against webservers.
Deploy N AWS micro instances and launch coordinated siege against webservers.
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 ;)
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
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
Did you perform a reboot to apply the kernel parameters? This isn't required if you do sysctl, -n, -p
to reload changes to /etc/sysctl.conf
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.