-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OSDOCS#9028: Selecting a single AZ in a multi AZ cluster for a machinepool #71679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ You can create additional machine pools for your {product-title} (ROSA) cluster | |
|
|
||
| * To add a machine pool that does not use autoscaling, create the machine pool and define the instance type, compute (also known as worker) node count, and node labels: | ||
| + | ||
| -- | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa create machinepool --cluster=<cluster-name> \ | ||
|
|
@@ -30,7 +31,7 @@ $ rosa create machinepool --cluster=<cluster-name> \ | |
| --spot-max-price=0.5 \ <7> | ||
| ifdef::openshift-rosa[] | ||
| --disk-size=<disk_size> <8> | ||
| --availability-zone=<az> <9> | ||
| --availability-zone=<availability_zone_name> <9> | ||
| --additional-security-group-ids <sec_group_id> <10> | ||
|
|
||
| endif::openshift-rosa[] | ||
|
|
@@ -41,17 +42,32 @@ endif::openshift-rosa[] | |
| <4> Optional: Defines the labels for the machine pool. Replace `<key>=<value>,<key>=<value>` with a comma-delimited list of key-value pairs, for example `--labels=key1=value1,key2=value2`. | ||
| <5> Optional: Defines the taints for the machine pool. Replace `<key>=<value>:<effect>,<key>=<value>:<effect>` with a key, value, and effect for each taint, for example `--taints=key1=value1:NoSchedule,key2=value2:NoExecute`. Available effects include `NoSchedule`, `PreferNoSchedule`, and `NoExecute`. | ||
| <6> Optional: Configures your machine pool to deploy machines as non-guaranteed AWS Spot Instances. For information, see link:https://aws.amazon.com/ec2/spot/[Amazon EC2 Spot Instances] in the AWS documentation. If you select *Use Amazon EC2 Spot Instances* for a machine pool, you cannot disable the option after the machine pool is created. | ||
| <7> Optional: If you have opted to use Spot Instances, you can specify this argument to define a maximum hourly price for a Spot Instance. If this argument is not specified, the on-demand price is used. | ||
| ifdef::openshift-rosa[] | ||
| <8> Optional: Specifies the worker node disk size. The value can be in GB, GiB, TB, or TiB. Replace `<disk_size>` with a numeric value and unit, for example `--disk-size=200GiB`. | ||
| <9> Optional: For Multi-AZ clusters, you can create a machine pool in a Single-AZ of your choice. Replace `<az>` with a Single-AZ. | ||
| <10> Optional: For machine pools in clusters that do not have Red Hat managed VPCs, you can select additional custom security groups to use in your machine pools. You must have already created the security groups and associated them with the VPC that you selected for this cluster. You cannot add or edit security groups after you create the machine pool. For more information, see the requirements for security groups in the "Additional resources" section. | ||
| endif::openshift-rosa[] | ||
| <7> Optional: If you choose to use Spot Instances, you can specify this argument to define a maximum hourly price for a Spot Instance. If this argument is not specified, the on-demand price is used. | ||
| + | ||
| [IMPORTANT] | ||
| ==== | ||
| Your Amazon EC2 Spot Instances might be interrupted at any time. Use Amazon EC2 Spot Instances only for workloads that can tolerate interruptions. | ||
| ==== | ||
|
Comment on lines
+45
to
50
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, Frances and I determined that this |
||
| ifdef::openshift-rosa[] | ||
| <8> Optional: Specifies the worker node disk size. The value can be in GB, GiB, TB, or TiB. Replace `<disk_size>` with a numeric value and unit, for example `--disk-size=200GiB`. | ||
| <9> Optional: For Multi-AZ clusters, you can create a machine pool in a Single-AZ of your choice. Replace `<az>` with a Single-AZ name. | ||
| + | ||
| [NOTE] | ||
| ==== | ||
| Multi-AZ clusters retain a Multi-AZ control plane and can have worker machine pools across a Single-AZ or Multi-AZ. Machine pools distribute machines (nodes) evenly across availability zones. | ||
fmcdonal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ==== | ||
| + | ||
| [WARNING] | ||
| ==== | ||
| If you choose a worker machine pool with a Single-AZ, there is no fault tolerance for that machine pool, regardless of machine replica count. | ||
| For fault-tolerant worker machine pools, choosing a Multi-AZ machine pool distributes machines in multiples of 3 across availability zones. | ||
|
|
||
| * A Multi-AZ machine pool with three availability zones can have a machine count in multiples of 3 only, such as 3, 6, 9, and so on. | ||
| * A Single-AZ machine pool with one availability zone can have a machine count in multiples of 1, such as 1,2,3,4 and so on. | ||
| ==== | ||
| <10> Optional: For machine pools in clusters that do not have Red Hat managed VPCs, you can select additional custom security groups to use in your machine pools. You must have already created the security groups and associated them with the VPC that you selected for this cluster. You cannot add or edit security groups after you create the machine pool. For more information, see the requirements for security groups in the "Additional resources" section. | ||
| endif::openshift-rosa[] | ||
| -- | ||
| + | ||
| The following example creates a machine pool called `mymachinepool` that uses the `m5.xlarge` instance type and has 2 compute node replicas. The example also adds 2 workload-specific labels: | ||
| + | ||
|
|
@@ -69,6 +85,7 @@ I: To view all machine pools, run 'rosa list machinepools -c mycluster' | |
|
|
||
| * To add a machine pool that uses autoscaling, create the machine pool and define the autoscaling configuration, instance type and node labels: | ||
| + | ||
| -- | ||
| [source,terminal] | ||
| ---- | ||
| $ rosa create machinepool --cluster=<cluster-name> \ | ||
|
|
@@ -81,7 +98,7 @@ $ rosa create machinepool --cluster=<cluster-name> \ | |
| --taints=<key>=<value>:<effect>,<key>=<value>:<effect> \ <6> | ||
| --use-spot-instances \ <7> | ||
| --spot-max-price=0.5 <8> | ||
| --availability-zone=<az> <9> | ||
| --availability-zone=<availability_zone_name> <9> | ||
| ---- | ||
| <1> Specifies the name of the machine pool. Replace `<machine_pool_id>` with the name of your machine pool. | ||
| <2> Enables autoscaling in the machine pool to meet the deployment needs. | ||
|
|
@@ -90,13 +107,14 @@ $ rosa create machinepool --cluster=<cluster-name> \ | |
| <5> Optional: Defines the labels for the machine pool. Replace `<key>=<value>,<key>=<value>` with a comma-delimited list of key-value pairs, for example `--labels=key1=value1,key2=value2`. | ||
| <6> Optional: Defines the taints for the machine pool. Replace `<key>=<value>:<effect>,<key>=<value>:<effect>` with a key, value, and effect for each taint, for example `--taints=key1=value1:NoSchedule,key2=value2:NoExecute`. Available effects include `NoSchedule`, `PreferNoSchedule`, and `NoExecute`. | ||
| <7> Optional: Configures your machine pool to deploy machines as non-guaranteed AWS Spot Instances. For information, see link:https://aws.amazon.com/ec2/spot/[Amazon EC2 Spot Instances] in the AWS documentation. If you select *Use Amazon EC2 Spot Instances* for a machine pool, you cannot disable the option after the machine pool is created. | ||
| <8> Optional: If you have opted to use Spot Instances, you can specify this argument to define a maximum hourly price for a Spot Instance. If this argument is not specified, the on-demand price is used. | ||
| <9> Optional: For Multi-AZ clusters, you can create a machine pool in a Single-AZ of your choice. Replace `<az>` with a Single-AZ. | ||
| + | ||
| [IMPORTANT] | ||
| ==== | ||
| Your Amazon EC2 Spot Instances might be interrupted at any time. Use Amazon EC2 Spot Instances only for workloads that can tolerate interruptions. | ||
| ==== | ||
| <8> Optional: If you choose to use Spot Instances, you can specify this argument to define a maximum hourly price for a Spot Instance. If this argument is not specified, the on-demand price is used. | ||
| <9> Optional: For Multi-AZ clusters, you can create a machine pool in a Single-AZ of your choice. Replace `<az>` with a Single-AZ name. | ||
| -- | ||
| + | ||
| The following example creates a machine pool called `mymachinepool` that uses the `m5.xlarge` instance type and has autoscaling enabled. The minimum compute node limit is 3 and the maximum is 6 overall. The example also adds 2 workload-specific labels: | ||
| + | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noting for the future: Open blocks (the starting
--for one of them shown here on line 21, with the closing--down on line 70) have been wrapped around both of the code blocks in this procedure, so that the callouts behave as expected (namely, allows for+multi-paragraph continuations and admonition blocks, without breaking callout number order or indentation).