OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # This file contains constants for the shell scripts which interact | 3 # This file contains constants for the shell scripts which interact |
4 # with the skia-docs Google Compute Engine instance. | 4 # with the skia frontend servers Google Compute Engine instance. |
5 # | 5 # |
6 # Copyright 2014 Google Inc. All Rights Reserved. | 6 # Copyright 2014 Google Inc. All Rights Reserved. |
7 | 7 |
8 # Sets all constants in compute_engine_cfg.py as env variables. | 8 # Sets all constants in compute_engine_cfg.py as env variables. |
9 $(python ../compute_engine_cfg.py) | 9 $(python ../compute_engine_cfg.py) |
10 if [ $? != "0" ]; then | 10 if [ $? != "0" ]; then |
11 echo "Failed to read compute_engine_cfg.py!" | 11 echo "Failed to read compute_engine_cfg.py!" |
12 exit 1 | 12 exit 1 |
13 fi | 13 fi |
14 | 14 |
15 # The base names of the VM instances. Actual names are VM_NAME_BASE-name | 15 # The base names of the VM instances. Actual names are VM_NAME_BASE-name |
16 VM_NAME_BASE=${VM_NAME_BASE:="skia"} | 16 VM_NAME_BASE=${VM_NAME_BASE:="skia"} |
17 | 17 |
18 # The name of instance where skia docs is running on. | 18 # The name of instance where skia docs is running on. |
19 INSTANCE_NAME=${VM_NAME_BASE}-docs | 19 INSTANCE_NAME=${VM_NAME_BASE}-skfe |
20 MACHINE_TYPE=n1-standard-1 | |
21 | 20 |
22 DOCS_IP_ADDRESS=104.154.112.101 | 21 NUM_INSTANCES=2 |
23 | 22 |
| 23 MACHINE_TYPE=n1-standard-4 |
OLD | NEW |