AI Glossary / MLOps and deployment / Intermediate
Cloud resource elasticity
Definition
Cloud resource elasticity is the ability to expand and release computing resources as demand changes. It helps a service obtain more capacity during busy periods and reduce excess capacity afterward. In cloud computing, this can involve processing, memory, storage, or other resources, with the available mechanism depending on the service. Elasticity is a capability, not a guarantee of instantaneous or unlimited capacity.
What it means
Scalability concerns whether a system can handle a larger workload when resources increase. Elasticity emphasizes adjusting resources over time to match changing needs, including shrinking after a peak. A system can be scalable yet operate at a fixed size.
Automation is common, but the NIST definition does not require every elastic adjustment to be fully automatic. The practical question is whether resources can be provisioned and released quickly enough for the application's needs. For AI workloads, adding a serving worker may also require loading model files and becoming ready to accept traffic.
How it works
Measure a workload signal, apply a scaling policy, request capacity changes, and check that the new capacity actually becomes usable. Horizontal scaling changes the number of workers; vertical scaling changes the resources available to a worker, where supported.
Policies may react to demand, follow schedules, or combine signals. Minimum and maximum limits constrain the action. Startup delays, draining in-progress work, quotas, and bottlenecks elsewhere can affect the result. Cooldown or stabilization behavior can reduce repeated expansion and contraction, but its exact meaning varies across services and policy types. Monitor useful service performance, not merely the number of requested instances.
Three practical examples
- An AI question-answering service can add inference workers during a launch event and reduce them when request volume subsides.
- A document-processing queue can increase batch workers when pending work grows, then release them after the backlog clears.
- A training platform can provision resources for scheduled classes while retaining a smaller baseline outside teaching hours.
Think of it this way
Think of opening more service counters when customers arrive and closing some when the queue becomes small. The counters must be staffed and ready before they help. The analogy is limited because cloud resources may require data loading, coordination, and shared dependencies, and additional workers do not always increase throughput proportionally.
Worked example
Consider an original simplified AI-processing service. One ready worker can process 100 requests per minute. Assume requests are interchangeable, work is evenly distributed, and there are no other bottlenecks. The planning target is 70% utilization, so the target workload per worker is 70 requests per minute.
At 140 arrivals per minute, two workers match that target. At 350 arrivals per minute, the target suggests five workers because 350/70 = 5. Suppose the increase is detected immediately but the three extra workers take two minutes to become ready.
During those two minutes, the original two workers can process only 200 requests per minute. With arrivals at 350, the queue grows by 150 per minute, reaching 300 requests. Requesting five workers has not prevented the temporary backlog.
Once all five are ready, maximum processing capacity is 500 requests per minute. If arrivals remain at 350 and all spare capacity is used to clear the queue, the net drain rate is 150 per minute. The 300-request backlog therefore needs another two minutes to clear in this fluid approximation.
Now suppose a day contains twenty hours requiring two workers and four hours requiring five. Ignoring transitions and all other costs, elastic allocation uses 20*2 + 4*5 = 60 worker-hours. Keeping five workers throughout uses 120 worker-hours. This is an illustrative resource comparison, not a cloud bill or promised saving. Billing rules, minimum capacity, startup overlap, and storage can change the actual economics.
Illustrative case study
Fictional case: an online course provider launches an AI practice exercise and sees long waits even though its dashboard reports additional workers. Investigation shows that the new workers are still loading their models.
The team distinguishes requested, running, and ready capacity. It tests a modest warm baseline and scheduled preparation for known class times, then evaluates response latency and cost together. The case illustrates why operational readiness matters; it does not claim that prewarming is always the cheapest policy or that one metric works for every model.
Common misconceptions and mistakes
Do not equate elasticity with unlimited resources. Service limits, available hardware, and downstream capacity still matter. Do not assume adding replicas repairs a database bottleneck or makes a nonparallel workload scale linearly.
Also distinguish scale-out from scale-in. Removing workers too aggressively can interrupt work or create repeated cold starts if the workload rebounds. A policy based only on average utilization can miss long queues or uneven load. Finally, a cloud-hosted application is not automatically well configured to exploit the elastic features available to it.
Business use
Elasticity can improve resource utilization and responsiveness for variable workloads, but the result depends on application design and policy tuning.
Define the service target, such as acceptable queue delay or response latency, before selecting a scaling signal. Measure readiness time, realistic per-worker throughput, and the effect of bursts. Set capacity bounds and consider the cost of retaining a baseline. Test recovery after peaks as well as growth during peaks. For AI services, distinguish model-loading time and accelerator availability from the simple creation of a compute instance.
People also ask
Is elasticity the same as scalability?
No. Scalability concerns handling greater load with more resources; elasticity emphasizes adjusting resources as demand changes.
Does autoscaling prevent every traffic spike from causing delays?
No. Detection, provisioning, and readiness delays can allow a queue to form.
Must elastic capacity be automatic?
Not in every definition or implementation. Automation is common, but sufficiently rapid provisioning and release are the underlying capability.
Check your understanding
Why does the example accumulate 300 queued requests even after five workers are requested?
Answer: Only two workers are ready during the two-minute startup period. Arrivals exceed their capacity by 150 requests per minute, producing a backlog of 300.
Related terms
- Cloud computing
- Cold start (recommender systems)
- Autoscaling
- Horizontal scaling
- Vertical scaling
- Throughput
- Queue length
- Cold start
- Capacity planning
- Resource utilization
Learn next
Repeat the backlog calculation if the additional workers take four minutes to become ready. The initial backlog becomes 600 requests and needs four more minutes to drain under the same assumptions. Explain why faster provisioning and extra steady-state capacity address different parts of the delay.
More in MLOps and deployment
- Checkpoint - A checkpoint is a saved representation of a computation's state at a particular point.
- Checkpointing - Checkpointing is the process of saving a computation's recoverable state at selected points so that work can resume after interruption.
- Chroma subsampling - Chroma subsampling reduces the spatial resolution of an image's color-difference components while retaining a more detailed luma component.
- Code-excited linear prediction - Code-excited linear prediction, or CELP, is a speech-coding approach that represents speech using a predictive synthesis filter driven by a selected...
- Coding tree unit - A coding tree unit, or CTU, is a top-level picture-partitioning unit used in video coding, notably HEVC.
- Cognitive computing - Cognitive computing is a broad term for computing approaches intended to support tasks associated with human cognition, such as interpreting language...
Sources
Primary sources: NIST rapid-elasticity definition: https://csrc.nist.gov/glossary/term/rapid_elasticity ; AWS official Application Auto Scaling target-tracking explanation: https://docs.aws.amazon.com/autoscaling/application/userguide/target-tracking-scaling-policy-overview.html . Capacity and worker-hour calculations are original simplified examples.
Previous: Cloud-native computing Next: Cloud robotics