OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright 2014 The LUCI Authors. All rights reserved. | 2 # Copyright 2014 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
5 | 5 |
6 # Script to be used on GCE slave startup to initiate a load test. Each VM will | 6 # Script to be used on GCE slave startup to initiate a load test. Each VM will |
7 # fire an equivalent number of bots and clients. Fine tune the value depending | 7 # fire an equivalent number of bots and clients. Fine tune the value depending |
8 # on what kind of load test is desired. | 8 # on what kind of load test is desired. |
9 # | 9 # |
10 # Please see https://developers.google.com/compute/docs/howtos/startupscript for | 10 # Please see https://developers.google.com/compute/docs/howtos/startupscript for |
11 # more details on how to use this script. | 11 # more details on how to use this script. |
12 # | 12 # |
13 # The script may run as root, which is counter intuitive. We don't mind much | 13 # The script may run as root, which is counter intuitive. We don't mind much |
14 # because is deleted right after the load test, but still keep this in mind! | 14 # because is deleted right after the load test, but still keep this in mind! |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 done | 93 done |
94 | 94 |
95 echo "5. Waiting for the bot processes to stop." | 95 echo "5. Waiting for the bot processes to stop." |
96 for i in $BOTS_PID; do | 96 for i in $BOTS_PID; do |
97 echo " Waiting for $i" | 97 echo " Waiting for $i" |
98 wait $i || true | 98 wait $i || true |
99 done | 99 done |
100 | 100 |
101 echo "6. Load test is complete." | 101 echo "6. Load test is complete." |
102 touch $LOG/done | 102 touch $LOG/done |
OLD | NEW |