mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
99 lines
4.3 KiB
Plaintext
99 lines
4.3 KiB
Plaintext
:_mod-docs-content-type: ASSEMBLY
|
|
[id="rosa-nodes-about-autoscaling-nodes"]
|
|
= About autoscaling nodes on a cluster
|
|
include::_attributes/attributes-openshift-dedicated.adoc[]
|
|
:context: rosa-nodes-about-autoscaling-nodes
|
|
|
|
toc::[]
|
|
|
|
ifdef::openshift-dedicated[]
|
|
[IMPORTANT]
|
|
====
|
|
Autoscaling is available only on clusters that were purchased through the Red{nbsp}Hat Marketplace.
|
|
====
|
|
endif::[]
|
|
|
|
The autoscaler option can be configured to automatically scale the number of machines in a machine pool.
|
|
|
|
The cluster autoscaler increases the size of the machine pool when there are pods that failed to schedule on any of the current nodes due to insufficient resources or when another node is necessary to meet deployment needs. The cluster autoscaler does not increase the cluster resources beyond the limits that you specify.
|
|
|
|
Additionally, the cluster autoscaler decreases the size of the machine pool when some nodes are consistently not needed for a significant period, such as when it has low resource use and all of its important pods can fit on other nodes.
|
|
|
|
When you enable autoscaling, you must also set a minimum and maximum number of worker nodes.
|
|
|
|
[NOTE]
|
|
====
|
|
Only cluster owners and organization admins can scale or delete a cluster.
|
|
====
|
|
|
|
[id="nodes-enabling-autoscaling-nodes"]
|
|
== Enabling autoscaling nodes on a cluster
|
|
|
|
You can enable autoscaling on worker nodes to increase or decrease the number of nodes available by editing the machine pool definition for an existing cluster.
|
|
|
|
include::modules/ocm-enabling-autoscaling-nodes.adoc[leveloffset=+2]
|
|
|
|
ifdef::openshift-rosa[]
|
|
[NOTE]
|
|
====
|
|
Additionally, you can configure autoscaling on the default machine pool when you xref:../../rosa_install_access_delete_clusters/rosa_getting_started_iam/rosa-creating-cluster.adoc#rosa-creating-cluster[create the cluster using interactive mode].
|
|
====
|
|
endif::[]
|
|
// This can be included once the ROSA HCP files are added.
|
|
// ifdef::openshift-rosa-hcp[]
|
|
// [NOTE]
|
|
// ====
|
|
// Additionally, you can configure autoscaling on the default machine pool when you xref:../../rosa_hcp/rosa-hcp-sts-creating-a-cluster-quickly.adoc#rosa-hcp-sts-creating-a-cluster-quickly[create the cluster].
|
|
// ====
|
|
// endif::[]
|
|
|
|
ifdef::openshift-rosa,openshift-rosa-hcp[]
|
|
include::modules/rosa-enabling-autoscaling-nodes.adoc[leveloffset=+2]
|
|
endif::[]
|
|
|
|
[id="nodes-disabling-autoscaling-nodes"]
|
|
== Disabling autoscaling nodes on a cluster
|
|
|
|
You can disable autoscaling on worker nodes to increase or decrease the number of nodes available by editing the machine pool definition for an existing cluster.
|
|
|
|
ifdef::openshift-dedicated[]
|
|
You can disable autoscaling on a cluster using {cluster-manager-first}.
|
|
endif::[]
|
|
|
|
ifdef::openshift-rosa,openshift-rosa-hcp[]
|
|
You can disable autoscaling on a cluster using {cluster-manager-first} or the {rosa-cli-first}.
|
|
endif::[]
|
|
|
|
ifdef::openshift-rosa[]
|
|
[NOTE]
|
|
====
|
|
Additionally, you can configure autoscaling on the default machine pool when you xref:../../rosa_install_access_delete_clusters/rosa_getting_started_iam/rosa-creating-cluster.adoc#rosa-creating-cluster[create the cluster using interactive mode].
|
|
====
|
|
endif::[]
|
|
// This can be included once the ROSA HCP files are added.
|
|
// ifdef::openshift-rosa-hcp[]
|
|
// [NOTE]
|
|
// ====
|
|
// Additionally, you can configure autoscaling on the default machine pool when you xref:../../rosa_hcp/rosa-hcp-sts-creating-a-cluster-quickly.adoc#rosa-hcp-sts-creating-a-cluster-quickly[create the cluster].
|
|
// ====
|
|
// endif::[]
|
|
|
|
include::modules/ocm-disabling-autoscaling-nodes.adoc[leveloffset=+2]
|
|
|
|
ifdef::openshift-rosa,openshift-rosa-hcp[]
|
|
include::modules/rosa-disabling-autoscaling-nodes.adoc[leveloffset=+2]
|
|
endif::[]
|
|
|
|
[role="_additional-resources"]
|
|
[id="nodes-about-autoscaling-nodes-additional-resources"]
|
|
== Additional resources
|
|
* link:https://access.redhat.com/solutions/6821651[Troubleshooting: Autoscaling is not scaling down nodes]
|
|
* xref:../../rosa_cluster_admin/rosa_nodes/rosa-nodes-machinepools-about.adoc#rosa-nodes-machinepools-about[About machinepools]
|
|
ifdef::openshift-rosa,openshift-rosa-hcp[]
|
|
* xref:../../rosa_cluster_admin/rosa_nodes/rosa-managing-worker-nodes.adoc#rosa-managing-worker-nodes[Managing compute nodes]
|
|
// This xref can be included in ROSA HCP when all of the files are added.
|
|
ifndef::openshift-rosa-hcp[]
|
|
* xref:../../cli_reference/rosa_cli/rosa-manage-objects-cli.adoc#rosa-managing-objects-cli[Managing objects with the ROSA CLI]
|
|
endif::openshift-rosa-hcp[]
|
|
endif::[]
|