CloudHub 2.0 enables you to select vCore options for your application, providing horizontal scalability.
This fine-grained control over computing capacity provisioning gives you the flexibility to scale up your application to handle higher loads (or scale down during low-load periods) at any time.
You can deploy your application with up to 8 replicas, or you can deploy with up to 16 replicas if you have the Anypoint Integration Advanced package or a Platinum or Titanium subscription to Anypoint Platform.
To ensure that you have sufficient resources, see CloudHub 2.0 Replicas.
Replica scale-out also adds additional reliability.
Mule runtime engine (Mule) automatically distributes multiple replicas for the same application across two or more data centers for maximum reliability.
When deploying your application to two or more replicas, you can distribute workloads across these instances of Mule.
CloudHub provides the following an HTTP load balancing service that automatically distributes HTTP requests among your assigned replicas.
Batch jobs only run on a single replica at a time, and cannot be distributed across multiple replicas.
If Mule restarts in the same deployment, the status persists and the batch continues processing.
If the entire application is updated or redeploying while the batch is running, the rest of the batch job doesn’t continue.
The main solution for persistent batch jobs in CloudHub 2.0 is to use
Object Store v2 Overview.
In Kubernetes, a Horizontal Pod Autoscaler (HPA) automatically updates a workload resource to scale the workload to match demand. Horizontal scaling automatically deploys more pods as a response to an increased load. As a result of these regular autoscaling operations, an application can be changed to a new replica without user action.