Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
3b3f2f2
W-14455231-ch2-autoscaling
luanamulesoft Nov 8, 2023
7780ada
added content
luanamulesoft Nov 9, 2023
834d1b9
added link in nav
luanamulesoft Nov 9, 2023
7be01bd
changed title
luanamulesoft Nov 9, 2023
9c4ead2
Update cloudhub-2/modules/ROOT/pages/ch2-configure-horizontal-autosca…
luanamulesoft Nov 13, 2023
4b9133e
Update cloudhub-2/modules/ROOT/pages/ch2-configure-horizontal-autosca…
luanamulesoft Nov 13, 2023
a30965e
Update cloudhub-2/modules/ROOT/pages/ch2-configure-horizontal-autosca…
luanamulesoft Nov 13, 2023
8c484ef
Update ch2-configure-horizontal-autoscaling.adoc
luanamulesoft Nov 13, 2023
6f35725
Update cloudhub-2/modules/ROOT/pages/ch2-configure-horizontal-autosca…
luanamulesoft Nov 13, 2023
03587c1
Update ch2-configure-horizontal-autoscaling.adoc
luanamulesoft Nov 13, 2023
0e88d3a
Update cloudhub-2/modules/ROOT/pages/ch2-configure-horizontal-autosca…
luanamulesoft Nov 14, 2023
f0912a6
applied reviews3
luanamulesoft Nov 17, 2023
f9ee9e3
applied reviews-image
luanamulesoft Nov 17, 2023
6f69e23
applied reviews-add-policy
luanamulesoft Nov 17, 2023
11d41c8
applied add apps examples
luanamulesoft Nov 17, 2023
a1cdb4d
applied reviews3
luanamulesoft Nov 17, 2023
c655860
applied image
luanamulesoft Nov 17, 2023
77e07aa
applied image3
luanamulesoft Nov 17, 2023
f3631e2
added audit logs
luanamulesoft Nov 17, 2023
e153844
Update ch2-configure-horizontal-autoscaling.adoc
kevintroller Nov 17, 2023
9f62290
chaged image
luanamulesoft Nov 17, 2023
fa131b0
reviews 4
luanamulesoft Nov 17, 2023
6930602
reviews 5
luanamulesoft Nov 17, 2023
e3fcaaa
Update cloudhub-2/modules/ROOT/pages/ch2-configure-horizontal-autosca…
luanamulesoft Feb 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Comment thread
kevintroller marked this conversation as resolved.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cloudhub-2/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
** xref:ch2-deploy-shared-space.adoc[]
** xref:ch2-deploy-private-space.adoc[]
*** xref:ch2-config-endpoints-paths.adoc[]
** xref:ch2-configure-horizontal-autoscaling.adoc[]
** xref:ch2-deploy-maven.adoc[]
** xref:ch2-deploy-cli.adoc[]
** xref:ch2-deploy-api.adoc[]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
= Configuring Horizontal Autoscaling for CH2 Deployments
Comment thread
luanamulesoft marked this conversation as resolved.
Outdated
ifndef::env-site,env-github[]
include::_attributes.adoc[]
endif::[]

You can configure horizontal scaling of Mule applications to make them responsive to resource usage by automatically scaling up or down the deployment replicas as needed.
Comment thread
luanamulesoft marked this conversation as resolved.
Outdated

In Kubernetes, a Horizontal Pod Autoscaler (HPA) automatically updates a workload resource, with the aim of automatically scaling the workload to match demand. Horizontal scaling means that the response to increased load is to deploy more pods. For more information, visit the https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale[Kubernetes documentaton^].

== Before You Begin
Comment thread
kevintroller marked this conversation as resolved.
Outdated

* Enable the https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-metrics-apis[support for metrics APIs^] on your managed K8s API server.
+
Refer to your managed vendors' documentation on how to install or enable metrics API servers.

== Configure Horizontal Autoscaling

To configure horizontal autoscaling:

. From Anypoint Platform, select *Runtime Manager* > *Applications*.
. Click *Deploy application*.
. In the *Runtime* tab, check the *Enable Autoscaling* box.
. Set the minimum and maximum *Replica Count* limits.
. Deploy your Mule application.
Comment thread
luanamulesoft marked this conversation as resolved.
Outdated

image::ch2-config-autoscaling.png[Configure horizontal autoscaling.]


== Limitations
Comment thread
kevintroller marked this conversation as resolved.
Outdated

* Horizontal autoscaling does not work with clustering and rate limiting.
* Horizontal autoscaling works with 0.1 vCcore replica size only. You cannot reserve or limit CPU resources.
Comment thread
kevintroller marked this conversation as resolved.
Outdated


== Autoscaling Status
Comment thread
luanamulesoft marked this conversation as resolved.
Outdated

When an autoscaling event occurs and your Mule application with horizontal autoscaling scales up, you can check the scaling status by clicking *Vew status* in your application's details window:
Comment thread
luanamulesoft marked this conversation as resolved.
Outdated

image::ch2-status-autoscaling.png[Check the application's scaling status.]


You can track the scaled up replicas startup and the number of replicas your application scaled from and to by checking the application's logs:

. From Anypoint Platform, select *Runtime Manager* > *Applications*.
. Click the row of the application with autoscaling.
. Click *Manage application*.
. Seelect the *Logs* tab.
Comment thread
luanamulesoft marked this conversation as resolved.
Outdated

[source,console,linenums]
----
Info 8 minutes ago - 2023-11-08 14:35:01.466 PST - Runtime Manager
Application id:<app-ID> scaled UP from 1 to 2 replicas.
Info a minute ago - 2023-11-08 14:41:24.819 PST - Runtime Manager
Application id:<app-ID> scaled DOWN from 2 to 1 replicas. :
----

Comment thread
luanamulesoft marked this conversation as resolved.

== See Also

* xref:runtime-fabric::configure-horizontal-autoscaling.adoc[]