Share via

On demand resource assingment ?

Faisal Gillani 21 Reputation points
Dec 24, 2021, 9:51 AM

I am a newbie in the cloud management world, and have a very simple question.

I want to host my LAMP based application on Microsoft Azure, this application will be accessed by hundreds of clients through out the globe, now since money is a concern for me do i get the option of increasing my resources automatically when demand increase? like for example when ram hits 85% the memory of the virtual machine should increase 30% more while as soon as the memory requirement drops down to 40% or below my ram allocation should also come down 30% same goes for processor/ bandwidth.

And in the end i want to be charged for whatever my application has utilized ?

Kind Regards
Faisal Gillani

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,615 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,556 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 119.2K Reputation points MVP
    Dec 24, 2021, 2:36 PM

    Hi @Faisal Gillani ,

    maybe an Azure Scale Set is an option you are looking for: https://azure.microsoft.com/en-us/services/virtual-machine-scale-sets/#overview

    How to deploy a LAMP architecture: https://learn.microsoft.com/en-us/gaming/azure/reference-architectures/general-purpose-lamp-deployment-single-region?tabs=bash

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  2. Prrudram-MSFT 27,976 Reputation points
    Dec 28, 2021, 10:07 AM

    Hello @Faisal Gillani ,

    Auto scaling of compute resources like memory and CPU cores within an azure VM is possible which is vertical scaling and is manual
    160857-image.png

    For your scenario, i would recommend using the VMSS, for details refer to virtual-machine-scale-sets-autoscale-portal
    If your application demand increases, the load on the VM instances in your scale set increases. If this increased load is consistent, rather than just a brief demand, you can configure autoscale rules to increase the number of VM instances in the scale set. When these VM instances are created and your applications are deployed, the scale set starts to distribute traffic to them through the load balancer. You control what metrics to monitor, such as CPU or disk, how long the application load must meet a given threshold, and how many VM instances to add to the scale set.

    160894-image.png
    In short, VM Scale sets are used to deploy identical sets of VM Instances. i.e., when you enable scaling in azure, VM Instances deployed will have the same Configuration as memory and storage. Scale sets will also increase (Scale-Out) VM’s or decrease (Scale In) VM’s as and when the demand increases or decreases. A scale set can be automatic, manual, or both.
    160922-image.png

    Additionally, lamp-deployment refer to https://learn.microsoft.com/en-us/gaming/azure/reference-architectures/general-purpose-lamp-deployment-single-region?tabs=bash
    Please "Accept as Answer" if any of above helped so that, it can help others in community looking for remediation for the similar issues.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.