smgoller closed pull request #15: Convert to sole tenant style cluster. URL: https://github.com/apache/geode-benchmarks/pull/15
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/infrastructure/google_cloud/destroy_cluster.sh b/infrastructure/google_cloud/destroy_cluster.sh index 828264b..7247107 100755 --- a/infrastructure/google_cloud/destroy_cluster.sh +++ b/infrastructure/google_cloud/destroy_cluster.sh @@ -19,6 +19,10 @@ TAG=${1} PREFIX="geode-performance-${TAG}" +NODE_TEMPLATE="${PREFIX}-node-template" +NODE_GROUP="${PREFIX}-node-group" gcloud compute instance-groups managed delete ${PREFIX} --quiet gcloud compute instance-templates delete ${PREFIX}-template --quiet +gcloud compute sole-tenancy node-groups delete ${NODE_GROUP} +gcloud compute sole-tenancy node-templates delete ${NODE_TEMPLATE} \ No newline at end of file diff --git a/infrastructure/google_cloud/launch_cluster.sh b/infrastructure/google_cloud/launch_cluster.sh index f720ad8..51be8a0 100755 --- a/infrastructure/google_cloud/launch_cluster.sh +++ b/infrastructure/google_cloud/launch_cluster.sh @@ -24,16 +24,21 @@ COUNT=${2} SUBNET=${3} IMAGE_FAMILY="geode-performance" PREFIX="geode-performance-${TAG}" -INSTANCE_TYPE=n1-standard-16 +NODE_TEMPLATE="${PREFIX}-node-template" +NODE_GROUP="${PREFIX}-node-group" +INSTANCE_TYPE=n1-highmem-96 KEY_FILE=/tmp/id_${TAG} ssh-keygen -b 2048 -t rsa -f $KEY_FILE -q -N "" +gcloud compute sole-tenancy node-templates create ${NODE_TEMPLATE} --node-type=n1-node-96-624 +gcloud compute sole-tenancy node-groups create ${NODE_GROUP} --node-template=${NODE_TEMPLATE} --target-size=${COUNT} gcloud compute instance-templates create ${PREFIX}-template \ --machine-type=${INSTANCE_TYPE} \ --subnet=${SUBNET} \ + --node-group="${NODE_GROUP}" \ --image-family=${IMAGE_FAMILY} \ --boot-disk-size=50GB \ --boot-disk-type=pd-ssd ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services