classnotes RTX 4070 Ti SUPER · faster-whisper · DeepSeek

5102 - Foundations of Comp Sys

← 5102 - Foundations of Comp Sys

FCS_05 Sep

Date 2026-09-05 Length 2h 12m Words 14,319 Segments 1,952
⤓ Download transcript (.txt with timestamps) ⤓ Plain transcript (.txt) ⤓ Transcript (.md)

Summary


session: "5102-foundations-of-comp-sys/2026-09-05 0000 FCS 05 Sep"

title: "FCS 05 Sep"

date: "2026-09-05 00:00"

duration: "2h 11m"

language: "en"

model: "deepseek-ai/DeepSeek-V3.2"

parts: 3

transcript_chars: 73090

generated: "2026-11-23T15:17:18+05:30"


FCS 05 Sep

Overview

This class introduced cloud-based autoscaling using Azure Virtual Machine Scale Sets (VMSS) as a practical case study for the course's theme of the hardware/software contract. It covered the configuration of a VMSS, including instance counts, scaling rules, load balancers, and health probes. The session demonstrated how a web request flows from a user through the load balancer to a VM's OS and CPU, connecting high-level service availability to low-level system resources. Students observed live scaling triggered by simulated CPU load, monitored metrics, and discussed the orchestration of virtualized hardware resources.

Learning outcomes

Core concepts

Virtual Machine Scale Set (VMSS)

A group of load-balanced, identical virtual machines that can automatically increase or decrease the number of running instances based on defined rules (e.g., CPU utilization). It matters because it embodies the cloud principle of elastic, on-demand resource allocation, abstracting the management of individual servers.

Load Balancer and Health Probe

A network component that distributes incoming traffic across available VM instances. It uses a health probe (e.g., checking port 80) to determine which VMs are ready to serve requests. Unhealthy VMs are removed from the pool. This is crucial for maintaining service availability and is a software-managed replacement for hardware load-balancing appliances.

Autoscaling Rule

A policy that defines when to add or remove VM instances. It is triggered by a metric threshold (e.g., average CPU utilization > 60%). Scaling actions are not instantaneous and include configurable wait periods. This concept connects the observed system state (CPU load) to an automated management action, implementing a feedback loop.

Orchestration Mode (Flexible vs. Fixed)

Determines how VMs are managed within or across scale sets. 'Flexible' allows mixing VM types and scaling across multiple scale sets under one load balancer, while 'Fixed' is restricted to a single, uniform set. This relates to the trade-off between management complexity and deployment flexibility.

Virtualization and Metrics Abstraction

The cloud platform virtualizes physical hardware (vCPUs, RAM) and provides aggregated metrics (e.g., average CPU across a VMSS). The lecturer noted that "depending on the vm and the virtualization environment some fields may be virtualized or not represented physical most exactly." This highlights the course's central theme: the contract between the software's view of resources and the underlying physical implementation.

Formulas and maths

No formulas were presented in this session.

Worked examples

Example 1: Initial VMSS Configuration and IPs

Example 2: Triggering Autoscaling with CPU Load

Example 3: Manual Web Server Setup on a VM

A sequence of shell commands was run via Azure's "Run command" feature to prepare a VM:

1. apt-get update && apt-get install -y nginx

2. echo "response from VMSS instance X" > /var/www/html/index.html

3. systemctl enable nginx && systemctl restart nginx

This demonstrated the manual steps required to make a VM serve web traffic, which was missing from automatically scaled-out instances.

Questions asked in class

Key takeaways

Exam-style questions

1. Question: You configure an Azure VMSS with a load balancer health probe on port 80. After a scale-out event, new VMs are created but receive no traffic. Using curl from the load balancer's IP returns a 503 error. What is the most likely cause and how would you fix it?

2. Question: A VMSS is configured to scale out when average CPU > 70% and scale in when average CPU < 30%. The current average CPU is 75%, but no new VMs are being created. List two possible reasons.

3. Question: Describe the journey of a single HTTP GET request from a user's browser to a web page hosted on a VM within a VMSS, mentioning the load balancer and the health probe.

Glossary

Follow-ups

Transcript

One line per segment, [hh:mm:ss] timestamp first.

loading…