Skip to content

Commit

Permalink
Merge pull request #1069 from smarterclayton/default_disk
Browse files Browse the repository at this point in the history
aws: Increase the default master instance size to reduce etcd timeouts
  • Loading branch information
openshift-merge-robot committed Jan 17, 2019
2 parents 8069e14 + 82bd538 commit b63074b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion data/data/aws/variables-aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ variable "aws_master_ec2_type" {
description = "Instance size for the master node(s). Example: `m4.large`."

# FIXME: get this wired up to the machine default
default = "m4.large"
default = "m4.xlarge"
}

variable "aws_ec2_ami_override" {
Expand Down
10 changes: 8 additions & 2 deletions docs/user/aws/limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,14 @@ to be created.

## Instance Limits

By default, a cluster will create 6 nodes (3 masters and 3 workers). Currently, these are m4.large and within a new
account's default limit. If you intend to start with a higher number of workers, enable autoscaling and large workloads
By default, a cluster will create:

* One m4.large bootstrap machine (removed after install)
* Three m4.xlarge master nodes.
* Three m4.large worker nodes.

Currently, these instance type counts are within a new account's default limit.
If you intend to start with a higher number of workers, enable autoscaling and large workloads
or a different instance type, please ensure you have the necessary remaining instance count within the instance type's
limit to satisfy the need. If not, please ask AWS to increase the limit via a support case.

Expand Down
1 change: 1 addition & 0 deletions pkg/asset/machines/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func (m *Master) Generate(dependencies asset.Parents) error {
switch ic.Platform.Name() {
case awstypes.Name:
mpool := defaultAWSMachinePoolPlatform()
mpool.InstanceType = "m4.xlarge"
mpool.Set(ic.Platform.AWS.DefaultMachinePlatform)
mpool.Set(pool.Platform.AWS)
if len(mpool.Zones) == 0 {
Expand Down
5 changes: 2 additions & 3 deletions pkg/asset/machines/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ import (
)

func defaultAWSMachinePoolPlatform() awstypes.MachinePool {
return awstypes.MachinePool{
InstanceType: "m4.large",
}
return awstypes.MachinePool{}
}

func defaultLibvirtMachinePoolPlatform() libvirttypes.MachinePool {
Expand Down Expand Up @@ -94,6 +92,7 @@ func (w *Worker) Generate(dependencies asset.Parents) error {
switch ic.Platform.Name() {
case awstypes.Name:
mpool := defaultAWSMachinePoolPlatform()
mpool.InstanceType = "m4.large"
mpool.Set(ic.Platform.AWS.DefaultMachinePlatform)
mpool.Set(pool.Platform.AWS)
if len(mpool.Zones) == 0 {
Expand Down

0 comments on commit b63074b

Please sign in to comment.