Azure Classroom Series – 13/Oct/2021

Horizontal Scaling/Scaling out and Scaling in

  • While deploying the applications, we might want to run on multiple workload vm’s so that the load is distributed.
  • For doing this we would need to create an Azure Virtual Machine Scaleset (VMSS)
  • The number of VM instances can be a fixed number or can be set to automatically increase or decrease according the load. Preview Preview Preview Preview Preview Preview Preview Preview
  • A VMSS tries to maintain the desired size.
  • Generally A VMSS represents an application/application component. Ideally each VM in VMSS runs the same application.
  • In our case, we have taken the plain ubuntu image, in most of the enterprise use cases we would be using a VM image which has our application pre installed in it.
  • So to proceed with VMSS we need to understand how to create a VM Image
  • Lets create a VM with ubuntu image and install the apache and php page with stress tool
sudo apt update
sudo apt install apache2 stress -y
sudo apt install php libapache2-mod-php php-mysql -y
# Create a file in /var/www/html/info.php "<?php phpinfo(); ?>"
echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/info.php

Preview Preview

  • Now lets create vm image Preview Preview
  • This should lead to creation of vm image. Preview

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin