Skip to content
Permalink
Browse files
Merge pull request #15 from smgoller/sole-tenant
Convert to sole tenant style cluster.
  • Loading branch information
smgoller committed Dec 5, 2018
2 parents eb4dcab + 16047b2 commit 0ee9ec6e0c57117c3e5fe472adbcb51e6f4c3206
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
@@ -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}
@@ -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

0 comments on commit 0ee9ec6

Please sign in to comment.