Skip to content

Commit 59e4a77

Browse files
authored
Merge pull request #40136 from maxwelldb/shiftstack-affinity-osdocs3064
[OSDOCS-3064] Allow strict anti-affinity for servers at install time - ShiftStack
2 parents 0633404 + fee1eb5 commit 59e4a77

7 files changed

+22
-9
lines changed

installing/installing_openstack/installing-openstack-installer-custom.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ After you deploy your cluster, you can attach pods to additional networks. For m
4343
====
4444

4545
include::modules/installation-osp-config-yaml.adoc[leveloffset=+2]
46-
include::modules/installation-osp-setting-worker-affinity.adoc[leveloffset=+1]
46+
// include::modules/installation-osp-setting-worker-affinity.adoc[leveloffset=+1]
4747
include::modules/ssh-agent-using.adoc[leveloffset=+1]
4848
include::modules/installation-osp-accessing-api.adoc[leveloffset=+1]
4949
include::modules/installation-osp-accessing-api-floating.adoc[leveloffset=+2]

installing/installing_openstack/installing-openstack-installer-kuryr.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ After you deploy your cluster, you can attach pods to additional networks. For m
5151

5252
include::modules/installation-osp-kuryr-port-pools.adoc[leveloffset=+2]
5353
include::modules/installation-osp-kuryr-settings-installing.adoc[leveloffset=+2]
54-
include::modules/installation-osp-setting-worker-affinity.adoc[leveloffset=+1]
54+
// include::modules/installation-osp-setting-worker-affinity.adoc[leveloffset=+1]
5555
include::modules/ssh-agent-using.adoc[leveloffset=+1]
5656
include::modules/installation-osp-accessing-api.adoc[leveloffset=+1]
5757
include::modules/installation-osp-accessing-api-floating.adoc[leveloffset=+2]

installing/installing_openstack/installing-openstack-installer-restricted.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ include::modules/installation-initializing.adoc[leveloffset=+1]
3535
include::modules/installation-configure-proxy.adoc[leveloffset=+2]
3636
include::modules/installation-configuration-parameters.adoc[leveloffset=+2]
3737
include::modules/installation-osp-restricted-config-yaml.adoc[leveloffset=+2]
38-
include::modules/installation-osp-setting-worker-affinity.adoc[leveloffset=+1]
38+
// include::modules/installation-osp-setting-worker-affinity.adoc[leveloffset=+1]
3939
include::modules/ssh-agent-using.adoc[leveloffset=+1]
4040
include::modules/installation-osp-accessing-api.adoc[leveloffset=+1]
4141
include::modules/installation-osp-accessing-api-floating.adoc[leveloffset=+2]

modules/installation-configuration-parameters.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,14 @@ On clusters that use Kuryr, {rh-openstack} Octavia does not support availability
796796
|For compute machines, the availability zone to install root volumes on. If you do not set a value for this parameter, the installer selects the default availability zone.
797797
|A list of strings, for example `["zone-1", "zone-2"]`.
798798

799+
|`compute.platform.openstack.serverGroupPolicy`
800+
|Server group policy to apply to the group that will contain the compute machines in the pool. You cannot change server group policies or affiliations after creation. Supported options include `anti-affinity`, `soft-affinity`, and `soft-anti-affinity`. The default value is `soft-anti-affinity`.
801+
802+
An `affinity` policy prevents migrations and therefore affects {rh-openstack} upgrades. The `affinity` policy is not supported.
803+
804+
If you use a strict `anti-affinity` policy, an additional {rh-openstack} host is required during instance migration.
805+
|A server group policy to apply to the machine pool. For example, `soft-affinity`.
806+
799807
|`controlPlane.platform.openstack.additionalNetworkIDs`
800808
|Additional networks that are associated with control plane machines. Allowed address pairs are not created for additional networks.
801809
|A list of one or more UUIDs as strings. For example, `fa806b2f-ac49-4bce-b9db-124bc64209bf`.
@@ -814,6 +822,14 @@ On clusters that use Kuryr, {rh-openstack} Octavia does not support availability
814822
|For control plane machines, the availability zone to install root volumes on. If you do not set this value, the installer selects the default availability zone.
815823
|A list of strings, for example `["zone-1", "zone-2"]`.
816824

825+
|`controlPlane.platform.openstack.serverGroupPolicy`
826+
|Server group policy to apply to the group that will contain the control plane machines in the pool. You cannot change server group policies or affiliations after creation. Supported options include `anti-affinity`, `soft-affinity`, and `soft-anti-affinity`. The default value is `soft-anti-affinity`.
827+
828+
An `affinity` policy prevents migrations, and therefore affects {rh-openstack} upgrades. The `affinity` policy is not supported.
829+
830+
If you use a strict `anti-affinity` policy, an additional {rh-openstack} host is required during instance migration.
831+
|A server group policy to apply to the machine pool. For example, `soft-affinity`.
832+
817833
|`platform.openstack.clusterOSImage`
818834
|The location from which the installer downloads the {op-system} image.
819835

modules/installation-osp-default-deployment.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ To support an {product-title} installation, your {rh-openstack-first} quota must
2323
|Instances | 7
2424
|Security groups | 3
2525
|Security group rules | 60
26+
|Server groups | 2 - plus 1 for each additional availability zone in each machine pool
2627
|======================================
2728

2829
A cluster might function with fewer than recommended resources, but its performance is not guaranteed.

modules/installation-osp-default-kuryr-deployment.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Use the following quota to satisfy a default cluster's minimum requirements:
2828
|Instances | 7
2929
|Security groups | 250 - 1 needed per Service and per NetworkPolicy
3030
|Security group rules | 1000
31+
|Server groups | 2 - plus 1 for each additional availability zone in each machine pool
3132
|Load balancers | 100 - 1 needed per Service
3233
|Load balancer listeners | 500 - 1 needed per Service-exposed port
3334
|Load balancer pools | 500 - 1 needed per Service-exposed port

modules/installation-osp-setting-worker-affinity.adoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,10 @@
1212
[id="installation-osp-setting-worker-affinity_{context}"]
1313
= Setting compute machine affinity
1414

15-
Optionally, you can set the affinity policy for compute machines during installation. The installer does not select an affinity policy for compute machines by default.
15+
Optionally, you can set the affinity policy for compute machines during installation. By default, both compute and control plane machines are created with a `soft-anti-affinity` policy.
1616

1717
You can also create machine sets that use particular {rh-openstack} server groups after installation.
1818

19-
[NOTE]
20-
====
21-
Control plane machines are created with a `soft-anti-affinity` policy.
22-
====
23-
2419
[TIP]
2520
====
2621
You can learn more about link:https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html/configuring_the_compute_service_for_instance_creation/configuring-instance-scheduling-and-placement[{rh-openstack} instance scheduling and placement] in the {rh-openstack} documentation.

0 commit comments

Comments
 (0)