r/virtualization • • Oct 05 '26

Examples of VM resizing

Can somebody tell me an example of why I need to downsize and upsize a virtual machine? I got asked and I'm looking for an actual, relevant problem which is solved by resizing.

0 Upvotes

14 comments sorted by

2

u/mikeroySoft Oct 05 '26

Because workloads can be dynamic, or grow usage requiring more or less compute/storage/ram.

0

u/Numerous-Debate-2595 27d ago

thanks :)) your answer is very helpful (goodness I sound like a robot, sry) and I like how it cuts straight to the point

7

u/vermyx Oct 05 '26

In esxi -
* Vm has 2vcpu and is constantly at 80% you add a vcpu based on usage
* vm has 4 vcpu and never goes above 25% you can cut down to 2 vcpu based on usage

The main reason you do this is that the more vcpu's a vm has the more cpu's it has to schedule at the same time. If the cpus are doing nothing you're just giving the cpu scheduler unnecessary work to find x open cpus and slowing things down.

1

u/Cool_Somewhere_3014 Oct 20 '26

Databases require simultaneous processing capabilities. Therefore, having 20 weaker cores is preferable to having 8 very strong ones. Consequently, downsizing a virtual machine can lead to an excessive decrease in performance. Modern CPU governors can maintain performance levels even when a host is overprovisioned, which can ultimately yield distinct advantages. Many of ours vms have have cpu usage about 20% and there is no option to downsize

1

u/vermyx Oct 20 '26

What you’re saying is incorrect. 20 cores makes esxi work harder in order to schedule 20 simultaneous cpus vs 8. This creates latency and slowdown and this is completely apparent in database workloads as these workloads are sensitive to latency

1

u/Cool_Somewhere_3014 Oct 20 '26

Lattency occurs only of you have heavy overprovisioned host. And databases need paralell operations. If you are afraid about latency just set higher priority.

1

u/vermyx Oct 20 '26

Latency also occurs on overprovisioned vms because you have to schedule all of those resources simultaneously. If you can' the scheduler has to wait for all of those resouces to become available and why you dont want idle cpus to be taken up by an overprovisioned vm.

1

u/AbleCryptographer744 Oct 06 '26

New software release is the reason why a lot of us did it in production.  It's pretty common to have a major change in the logic of a program that might see a lot more use on the database than in the past release and at the same time a lot less load on the application servers. So you might increase the CPU on one and reduce it on the other one at the same time.

0

u/Numerous-Debate-2595 27d ago

thank you, that's probably the first example I heard of somebody actually reducing it. nice to know it really happens :)

2

u/jack_hudson2001 VCP VCAP Oct 05 '26

work load to fit the purpose

1

u/Prize_Moose1050 Oct 06 '26

A real world example would be resource consumption. We just had a server that needed upsizing because it kept running out of memory. Like literally the error was "memory exhausted", the server wasn't able to reserve RAM for the process it was trying to complete. We had to give the VM more RAM.

1

u/goatsinhats Oct 06 '26

Why would you add more ram or upgrade the cpu in a physical server? Same answer

1

u/soundman32 Oct 08 '26

Not all software is horizontally scalable (e.g. adding a 2nd server to half the load of 1).  Some databases need to be ACID compliant, and that A for atomic is much easier to implement if there is a single server.  Then cost.  A cheap, small server is good to start a project but when you have lots of data or users, you need to get a bigger VM to keep the same performance.

1

u/a-dot-in-the-sky Oct 12 '26

Performance load, depends on your industry.
Example, if you have an online business and you know that Traffic and Sales will be good on every weekend.

So, you will need to resize the VM the CPU or Memory resources every weekend and on weekdays you adjust to the default settings.

Technically, VM resizing is like scaling up / scaling down.
You adjust the resources based on the foreseen Traffic.