Browse files

k

  • Loading branch information...
1 parent 5e46fc2 commit d8fff0012ea6ae567ea6152a04d44bc1cf23865f @buzztroll committed Apr 6, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −1 cleanup.py
  2. +1 −0 run-em.sh
View
4 cleanup.py
@@ -32,12 +32,15 @@ def kill_asgs():
con = boto.ec2.autoscale.AutoScaleConnection(aws_access_key_id=s3id, aws_secret_access_key=s3pw, is_secure=is_secure, port=uparts.port, region=region)
con.host = uparts.hostname
+ print "get all groups"
asg_a = con.get_all_groups()
for asg in asg_a:
+ print "killing %s" % (asg)
asg.delete()
def kill_instances():
+ print "killing any VM instances"
s3url = os.environ['EC2_URL']
s3id = os.environ['EC2_ACCESS_KEY']
s3pw = os.environ['EC2_SECRET_KEY']
@@ -98,7 +101,6 @@ def queue_drain():
print ex
os.system("echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time")
-os.system("/etc/init.d/rabbitmq-server restart")
print "waiting out the keepalive"
time.sleep(60)
View
1 run-em.sh
@@ -11,6 +11,7 @@ do
echo "XXXXXXXXXXXXXX starting $i XXXXXXXXXXXXXXXXXXXXX" tee -a $logfile
python cleanup.py tee -a $logfile
+ sleep 60
run_logfile="/tmp/exprdata/run$i.log"
python runtest_new_domain.py data$i round$i | tee $run_logfile

0 comments on commit d8fff00

Please sign in to comment.