Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: compute_engine_scripts/telemetry/vm_create_cluster.sh

Issue 199843006: Telemetry instances should now be created with rtb-n1-standard-8-d (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # Create all the Skia telemetry VM instances 3 # Create all the Skia telemetry VM instances
4 # 4 #
5 # You have to run this when bringing up new VMs or migrating VMs from one 5 # You have to run this when bringing up new VMs or migrating VMs from one
6 # zone to another. Note that VM names are global across zones, so to migrate 6 # zone to another. Note that VM names are global across zones, so to migrate
7 # you may have to run vm_delete_cluster.sh first. 7 # you may have to run vm_delete_cluster.sh first.
8 # 8 #
9 # Copyright 2013 Google Inc. All Rights Reserved. 9 # Copyright 2013 Google Inc. All Rights Reserved.
10 # Author: rmistry@google.com (Ravi Mistry) 10 # Author: rmistry@google.com (Ravi Mistry)
11 11
12 source vm_config.sh 12 source vm_config.sh
13 13
14 SCOPES="https://www.googleapis.com/auth/devstorage.full_control" 14 SCOPES="https://www.googleapis.com/auth/devstorage.full_control"
15 15
16 for SLAVE_NUM in $(seq 0 $NUM_SLAVES); do 16 for SLAVE_NUM in $(seq 0 $NUM_SLAVES); do
17 FREE_IP_LIST[$SLAVE_NUM]='108.170.222.'$SLAVE_NUM 17 FREE_IP_LIST[$SLAVE_NUM]='108.170.222.'$SLAVE_NUM
18 done 18 done
19 FREE_IP_INDEX=0 19 FREE_IP_INDEX=0
20 20
21 # Create the telemetry master. 21 # Create the telemetry master.
22 $GCOMPUTE_CMD addinstance ${VM_NAME_BASE}-${VM_MASTER_NAME} \ 22 $GCOMPUTE_CMD addinstance ${VM_NAME_BASE}-${VM_MASTER_NAME} \
23 --zone=$ZONE \ 23 --zone=$ZONE \
24 --external_ip_address=${FREE_IP_LIST[$FREE_IP_INDEX]} \ 24 --external_ip_address=${FREE_IP_LIST[$FREE_IP_INDEX]} \
25 --service_account=default \ 25 --service_account=default \
26 --service_account_scopes="$SCOPES" \ 26 --service_account_scopes="$SCOPES" \
27 --network=skia \ 27 --network=skia \
28 --image=skiatelemetry-3-0-v20131101 \ 28 --image=skiatelemetry-3-0-v20131101 \
29 --machine_type=n1-standard-8-d \ 29 --machine_type=rtb-n1-standard-8-d \
30 --nopersistent_boot_disk \ 30 --nopersistent_boot_disk \
31 --service_version=v1beta16 31 --service_version=v1beta16
32 32
33 FREE_IP_INDEX=$(expr $FREE_IP_INDEX + 1) 33 FREE_IP_INDEX=$(expr $FREE_IP_INDEX + 1)
34 34
35 # Create all telemetry slaves. 35 # Create all telemetry slaves.
36 for SLAVE_NUM in $(seq 1 $NUM_SLAVES); do 36 for SLAVE_NUM in $(seq 1 $NUM_SLAVES); do
37 SLAVE_NAME=${VM_NAME_BASE}-${VM_SLAVE_NAME}${SLAVE_NUM} 37 SLAVE_NAME=${VM_NAME_BASE}-${VM_SLAVE_NAME}${SLAVE_NUM}
38 $GCOMPUTE_CMD addinstance ${SLAVE_NAME} \ 38 $GCOMPUTE_CMD addinstance ${SLAVE_NAME} \
39 --zone=$ZONE \ 39 --zone=$ZONE \
40 --service_account=default \ 40 --service_account=default \
41 --service_account_scopes="$SCOPES" \ 41 --service_account_scopes="$SCOPES" \
42 --network=skia \ 42 --network=skia \
43 --image=skiatelemetry-3-0-v20131101 \ 43 --image=skiatelemetry-3-0-v20131101 \
44 --machine_type=n1-standard-8-d \ 44 --machine_type=rtb-n1-standard-8-d \
45 --external_ip_address=${FREE_IP_LIST[$FREE_IP_INDEX]} \ 45 --external_ip_address=${FREE_IP_LIST[$FREE_IP_INDEX]} \
46 --nopersistent_boot_disk \ 46 --nopersistent_boot_disk \
47 --service_version=v1beta16 47 --service_version=v1beta16
48 FREE_IP_INDEX=$(expr $FREE_IP_INDEX + 1) 48 FREE_IP_INDEX=$(expr $FREE_IP_INDEX + 1)
49 done 49 done
50 50
51 cat <<INP 51 cat <<INP
52 If you did not see a table which looked like 52 If you did not see a table which looked like
53 +---------------------+------------------------------------------- 53 +---------------------+-------------------------------------------
54 | name | operation-1327681189228-4b784dda81d58-b99dd05c | 54 | name | operation-1327681189228-4b784dda81d58-b99dd05c |
(...skipping 21 matching lines...) Expand all
76 * Run the following to be able to download massive files from gsutil: 76 * Run the following to be able to download massive files from gsutil:
77 sudo apt-get install lua5.1 gcc python-dev python-setuptools && sudo easy_ install -U pip && sudo pip install setuptools --no-use-wheel --upgrade && sudo p ip install -U crcmod 77 sudo apt-get install lua5.1 gcc python-dev python-setuptools && sudo easy_ install -U pip && sudo pip install setuptools --no-use-wheel --upgrade && sudo p ip install -U crcmod
78 * Install the following missing packages: 78 * Install the following missing packages:
79 sudo apt-get install python-django 79 sudo apt-get install python-django
80 * Run vm_recover_slaves_from_crashes.sh 80 * Run vm_recover_slaves_from_crashes.sh
81 * Verify that all slaves are healthy by running: 81 * Verify that all slaves are healthy by running:
82 bash vm_run_command_with_output_on_slaves.sh "ls -l storage/" 82 bash vm_run_command_with_output_on_slaves.sh "ls -l storage/"
83 * Start the /home/default/skia-repo/buildbot/compute_engine_scripts/telemetry/ telemetry_master_scripts/appengine_poller.py script. 83 * Start the /home/default/skia-repo/buildbot/compute_engine_scripts/telemetry/ telemetry_master_scripts/appengine_poller.py script.
84 INP 84 INP
85 85
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698