Azure Classroomnotes 24/Feb/2023

Horizontal and Vertical Scaling

  • Vertical Scaling is about increasing resources to current vm/physical machine (increasing RAM/CPU).
    • Adopting Vertical Scaling means we need to restart the workload which means downtime
    • Generally scaling is used in the sense of increasing but the situation is same even to decrease resource
  • Horizontal scaling is about increasing workloads to distribute the load among mutliple systems
    • Adopting Horizontal scaling means we need not have a downtime because we are adding more workloads (vms)
      Preview
  • In Azure, We can perform both horizontal and vertical scaling

Vertical Scaling in Azure

  • Changing the vm size in Azure is a way to perform vertical scaling, This leads to restart of the vm
  • Create a VM with apache
  • Now resize the VM size
    Preview

Horizontal Scaling in Azure

  • We have two options
    • Manually add/remove vms
    • Automatically increase or decrease vmss => Azure Virtual Machine Scale Set (VMSS)

Azure Virtual Machine Scale Sets (VMSS)

  • Virtual Machine Scale Set Refer Here
  • VMSS lets us do horizontal scaling, with
    • fixed count maintained
    • scale out and in based on some metric to automatically increase or decrease vms
  • A VMSS represents a Virtual Machine with some component/application which needs to be scaled (order service, user service not both)
  • To Create a VMSS ideally we need an Virtual machine Image rather than using userdata/custom data/run commands to install applications.
  • Exploring options while creating VMSS
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Social Network Widget by Acurax Small Business Website Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube