AWS: Change master to m3.medium by default

m3.large for > 150 nodes.

t2.micro often runs out of memory.  The t2 class has very
difficult-to-understand behaviour when it runs out of CPU.  The
m3.medium is reasonably affordable, and avoids these problems.

Fix #21151

Issue #18975
This commit is contained in:
Justin Santa Barbara
2016-02-12 11:05:56 -05:00
parent b5c12d10b8
commit a16372ce40
3 changed files with 40 additions and 13 deletions

View File

@@ -34,12 +34,10 @@ fi
# Dynamically set the master size by the number of nodes, these are guesses
# TODO: gather some data
if [[ -z ${MASTER_SIZE} ]]; then
if (( ${NUM_NODES} < 50 )); then
MASTER_SIZE="t2.micro"
elif (( ${NUM_NODES} < 150 )); then
MASTER_SIZE="t2.small"
if (( ${NUM_NODES} < 150 )); then
MASTER_SIZE="m3.medium"
else
MASTER_SIZE="t2.medium"
MASTER_SIZE="m3.large"
fi
fi