r/cloudcomputing • • Nov 18 '20

Does scaling of application depends on load only? What are the difference types of aware based scaling?

I’m a beginner to Scaling in cloud . I have read that there are different types of autoscaling aware approach. What does that aware based autoscaling mean? And also does all applications scaling be based on load if so how do you define workload?

6 Upvotes

3 comments sorted by

1

u/rafitcho Nov 19 '20

You can scale based on server load (can be cpu or memory for example) but also based on current connections/sessions per second, new connections/sessions per second for example. It could be also things like downstream connections, like to databases, but these are not that usual. In the end is all about finding the resource bottleneck and scaling to avoid it.

1

u/AnyStupidQuestions Nov 19 '20

You can scale on demand or on a schedule too. If possible I prefer to scale before load triggers it. If you have a regular peak in demand you can scale in preparation 30mins before and cut out the lag. You can also jump on and add more resources to react to an unforeseen event.

1

u/klonkadonk Nov 19 '20

I don't have answers to all your questions, but I do have a counter example to the idea that all scaling is based on load:

For interruptable workloads, scaling by cost is also possible. AWS Spot Instances are a good example of this. We have jobs that scale out when the cost of instance time is under a threshold (due to low demand for compute at off peak hours) then scale in when the cost increases.

You might also consider that at any moment, for Folding At Home, scale of the computation is based on crowdsourced interest levels, rather than the conventional metrics.