|
|
|
@ -21,7 +21,7 @@ |
|
|
|
|
|
|
|
|
|
set -ex |
|
|
|
|
|
|
|
|
|
cd $(dirname $0) |
|
|
|
|
cd "$(dirname "$0")" |
|
|
|
|
|
|
|
|
|
CLOUD_PROJECT=grpc-testing |
|
|
|
|
ZONE=us-central1-b # this zone allows 32core machines |
|
|
|
@ -29,7 +29,7 @@ ZONE=us-central1-b # this zone allows 32core machines |
|
|
|
|
INSTANCE_NAME="${1:-grpc-performance-server1}" |
|
|
|
|
MACHINE_TYPE=n1-standard-32 |
|
|
|
|
|
|
|
|
|
gcloud compute instances create $INSTANCE_NAME \ |
|
|
|
|
gcloud compute instances create "$INSTANCE_NAME" \ |
|
|
|
|
--project="$CLOUD_PROJECT" \ |
|
|
|
|
--zone "$ZONE" \ |
|
|
|
|
--machine-type $MACHINE_TYPE \ |
|
|
|
@ -45,9 +45,9 @@ sleep 60 |
|
|
|
|
gcloud compute copy-files \ |
|
|
|
|
--project="$CLOUD_PROJECT" \ |
|
|
|
|
--zone "$ZONE" \ |
|
|
|
|
jenkins_master.pub linux_performance_worker_init.sh jenkins@${INSTANCE_NAME}:~ |
|
|
|
|
jenkins_master.pub linux_performance_worker_init.sh "jenkins@${INSTANCE_NAME}":~ |
|
|
|
|
|
|
|
|
|
gcloud compute ssh \ |
|
|
|
|
--project="$CLOUD_PROJECT" \ |
|
|
|
|
--zone "$ZONE" \ |
|
|
|
|
jenkins@${INSTANCE_NAME} --command "./linux_performance_worker_init.sh" |
|
|
|
|
"jenkins@${INSTANCE_NAME}" --command "./linux_performance_worker_init.sh" |
|
|
|
|