
// Module included in the following assemblies:
//
// * rosa_cluster_admin/rosa_nodes/rosa-nodes-about-autoscaling-nodes.adoc
// * nodes/nodes-about-autoscaling-nodes.adoc

:_mod-docs-content-type: PROCEDURE
[id="rosa-disabling-autoscaling_{context}"]
= Disabling autoscaling nodes in an existing cluster using the ROSA CLI

Disable autoscaling for worker nodes in the machine pool definition using the {rosa-cli-first}.

.Procedure

* Enter the following command:
+
[source,terminal]
----
$ rosa edit machinepool --cluster=<cluster_name> <machinepool_ID> --enable-autoscaling=false --replicas=<number>
----
+
.Example
Disable autoscaling on the `default` machine pool on a cluster named `mycluster`:
+
[source,terminal]
----
$ rosa edit machinepool --cluster=mycluster default --enable-autoscaling=false --replicas=3
----
