Skip to content

Commit

Permalink
templates: Add large and xlarge variants
Browse files Browse the repository at this point in the history
These variants increase the size of master nodes so we can launch
larger clusters.
  • Loading branch information
smarterclayton committed Nov 25, 2019
1 parent 38d8b78 commit cdf9716
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,12 @@ objects:
workers=0
fi
if [[ "${CLUSTER_TYPE}" = "aws" ]]; then
master_type=null
if [[ "${CLUSTER_VARIANT}" =~ "xlarge" ]]; then
master_type=m5.8xlarge
elif [[ "${CLUSTER_VARIANT}" =~ "large" ]]; then
master_type=m5.4xlarge
fi
subnets="[]"
if [[ "${CLUSTER_VARIANT}" =~ "shared-vpc" ]]; then
case $((RANDOM % 4)) in
Expand All @@ -518,6 +524,7 @@ objects:
replicas: 3
platform:
aws:
type: ${master_type}
zones:
- us-east-1a
- us-east-1b
Expand Down Expand Up @@ -588,7 +595,7 @@ objects:
EOF
elif [[ "${CLUSTER_TYPE}" == "gcp" ]]; then
# HACK: try to "poke" the token endpoint before the test starts
for i in `seq 1 30`; do
for i in $(seq 1 30); do
code="$( curl -s -o /dev/null -w "%{http_code}" https://oauth2.googleapis.com/token -X POST -d '' )"
if [[ "${code}" == "400" ]]; then
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,12 @@ objects:
workers=0
fi
if [[ "${CLUSTER_TYPE}" == "aws" ]]; then
master_type=null
if [[ "${CLUSTER_VARIANT}" =~ "xlarge" ]]; then
master_type=m5.8xlarge
elif [[ "${CLUSTER_VARIANT}" =~ "large" ]]; then
master_type=m5.4xlarge
fi
subnets="[]"
if [[ "${CLUSTER_VARIANT}" =~ "shared-vpc" ]]; then
case $((RANDOM % 4)) in
Expand All @@ -378,6 +384,7 @@ objects:
replicas: 3
platform:
aws:
type: ${master_type}
zones:
- us-east-1a
- us-east-1b
Expand Down

0 comments on commit cdf9716

Please sign in to comment.