Skip to content

Commit 6ed20fa

Browse files
authored
Merge pull request #71679 from fmcdonal/OSDOCS-9028
OSDOCS#9028: Selecting a single AZ in a multi AZ cluster for a machinepool
2 parents 0297eb8 + 77b7259 commit 6ed20fa

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

modules/creating-a-machine-pool-cli.adoc

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ You can create additional machine pools for your {product-title} (ROSA) cluster
1818

1919
* 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:
2020
+
21+
--
2122
[source,terminal]
2223
----
2324
$ rosa create machinepool --cluster=<cluster-name> \
@@ -30,7 +31,7 @@ $ rosa create machinepool --cluster=<cluster-name> \
3031
--spot-max-price=0.5 \ <7>
3132
ifdef::openshift-rosa[]
3233
--disk-size=<disk_size> <8>
33-
--availability-zone=<az> <9>
34+
--availability-zone=<availability_zone_name> <9>
3435
--additional-security-group-ids <sec_group_id> <10>
3536
3637
endif::openshift-rosa[]
@@ -41,17 +42,32 @@ endif::openshift-rosa[]
4142
<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`.
4243
<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`.
4344
<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.
44-
<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.
45-
ifdef::openshift-rosa[]
46-
<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`.
47-
<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.
48-
<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.
49-
endif::openshift-rosa[]
45+
<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.
5046
+
5147
[IMPORTANT]
5248
====
5349
Your Amazon EC2 Spot Instances might be interrupted at any time. Use Amazon EC2 Spot Instances only for workloads that can tolerate interruptions.
5450
====
51+
ifdef::openshift-rosa[]
52+
<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`.
53+
<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.
54+
+
55+
[NOTE]
56+
====
57+
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.
58+
====
59+
+
60+
[WARNING]
61+
====
62+
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.
63+
For fault-tolerant worker machine pools, choosing a Multi-AZ machine pool distributes machines in multiples of 3 across availability zones.
64+
65+
* 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.
66+
* 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.
67+
====
68+
<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.
69+
endif::openshift-rosa[]
70+
--
5571
+
5672
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:
5773
+
@@ -69,6 +85,7 @@ I: To view all machine pools, run 'rosa list machinepools -c mycluster'
6985

7086
* To add a machine pool that uses autoscaling, create the machine pool and define the autoscaling configuration, instance type and node labels:
7187
+
88+
--
7289
[source,terminal]
7390
----
7491
$ rosa create machinepool --cluster=<cluster-name> \
@@ -81,7 +98,7 @@ $ rosa create machinepool --cluster=<cluster-name> \
8198
--taints=<key>=<value>:<effect>,<key>=<value>:<effect> \ <6>
8299
--use-spot-instances \ <7>
83100
--spot-max-price=0.5 <8>
84-
--availability-zone=<az> <9>
101+
--availability-zone=<availability_zone_name> <9>
85102
----
86103
<1> Specifies the name of the machine pool. Replace `<machine_pool_id>` with the name of your machine pool.
87104
<2> Enables autoscaling in the machine pool to meet the deployment needs.
@@ -90,13 +107,14 @@ $ rosa create machinepool --cluster=<cluster-name> \
90107
<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`.
91108
<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`.
92109
<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.
93-
<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.
94-
<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.
95110
+
96111
[IMPORTANT]
97112
====
98113
Your Amazon EC2 Spot Instances might be interrupted at any time. Use Amazon EC2 Spot Instances only for workloads that can tolerate interruptions.
99114
====
115+
<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.
116+
<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.
117+
--
100118
+
101119
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:
102120
+

rosa_release_notes/rosa-release-notes.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ toc::[]
1616
[id="rosa-q1-2024_{context}"]
1717
=== Q1 2024
1818

19+
* **Availability zone update.** You can now optionally select a single availability zone (AZ) for machine pools when you have a multi-AZ cluster. For more information, see xref:../rosa_cluster_admin/rosa_nodes/rosa-managing-worker-nodes.adoc#creating_machine_pools_cli_rosa-managing-worker-nodes[Creating a machine pool using the ROSA CLI].
20+
1921
* **ROSA CLI update.** The ROSA CLI (`rosa`) was updated to a new version. For information about what has changed in this release, see the link:https://github.com/openshift/rosa/releases/tag/v1.2.35[ROSA CLI release notes]. For more information about the ROSA CLI (`rosa`), see xref:../cli_reference/rosa_cli/rosa-get-started-cli.adoc#rosa-about_rosa-getting-started-cli[About the ROSA CLI].
2022

2123
[id="rosa-q4-2023_{context}"]

0 commit comments

Comments
 (0)