Cloud Computing Module-4
Cloud Computing Module-4
MODULE: 4
Resource Management: Cloud resource provisioning plan
(advance reservation, on demand plan, spot instances), various scheduling and load
balancing techniques to improve QoS parameters, Resource Optimization algorithms,
task migration and VM migration technique.
✅ Definition (Hinglish):
Resource provisioning ka matlab hai cloud me resources (CPU, RAM, storage, etc.) ko
allocate karna jab user ko zarurat ho — taaki performance achhi ho aur cost bhi kam aaye.
🔧 2. What is a Resource Provisioning Plan?
✅ English:
A resource provisioning plan defines how, when, and what kind of cloud resources (virtual
machines, storage, networks) are provided to users or applications based on their needs.
✅ Hinglish:
Provisioning plan ek strategy hoti hai jisme decide hota hai ki kitne resources, kis time, aur
kaise allocate kiye jayenge, taaki system smoothly chale aur koi wastage na ho.
🧠 3. Why is Resource Provisioning Important?
● 💡 Ensures optimal resource utilization
● 💰 Controls cost
● ⚡ Improves performance and speed
● 📈 Supports scalability
● ✅ Ensures availability & reliability
Automated Software auto-allocates based System khud decide karta hai kitna
Provisioning on rules or triggers aur kab dena hai
🌐 5. Real-Life Examples
● ✅ Static Provisioning Example:
A company allocates 5 VMs permanently to a team, regardless of use.
❌ 9. Disadvantages
● ❌ Complexity in dynamic provisioning setup
● ❌ Wrong planning may lead to resource shortage
● ❌ May need monitoring tools and automation systems
📌 Focus on:
What to give (VM, CPU) + When to give (timing) + How to give (manual/auto)
✅ Summary Chart
Term Meaning
Resource Allocation of cloud resources
Provisioning
✅ Definition (Hinglish):
Advance reservation ka matlab hai ki aap resources pehle se book kar lete ho (jaise 1 saal ke
liye) — isme price kam hota hai, but flexibility kam hoti hai.
✅ Real-life Example:
A company reserves 10 virtual machines for a year for their permanent website — saves cost
but can't cancel easily.
🔄 2. ⚡ On-Demand Plan
✅ Definition (English):
In On-Demand, you request cloud resources whenever you need them, and you are charged
per hour or per minute with no long-term commitment.
✅ Definition (Hinglish):
On-Demand plan me aap jab chaho tab resources le sakte ho, koi advance booking nahi —
aapko use ke hisaab se payment karna hota hai.
✅ Real-life Example:
A startup uses 2 VMs during a product launch event for 3 days only — pays only for 3 days.
🕒 3. 🧩 Spot Instances
✅ Definition (English):
Spot instances are unused cloud resources offered at very low prices, but they can be taken
back anytime if demand increases. Best for temporary or non-critical jobs.
✅ Definition (Hinglish):
Spot instances wo resources hote hain jo bache hue hote hain — saste milte hain but kabhi
bhi cancel ho sakte hain. Ye bas temporary tasks ke liye best hote hain.
✅ Real-life Example:
A company uses spot instances to run data analysis at midnight when demand is low —
saves 70% cost.
🎯 7. Tips to Remember
Trick: “AOS” — Always Order Smartly
📝 8. Exam Answers
✅ Q: What is the difference between On-Demand and Spot Instances? (2/3
marks)
Ans: On-Demand instances provide resources whenever needed and are reliable,
but cost more.
Spot Instances are low-cost, use spare resources, and can be terminated anytime
— suitable for temporary or non-critical jobs.
● Throughput 📶
✅ Definition (Hinglish):
QoS ka matlab hota hai cloud service ki performance ki quality — jaise response kitna fast
hai, service kitni reliable hai, aur system kitna available hai.
✅ 2. Why Scheduling & Load Balancing is Needed for
QoS?
Scheduling and load balancing help:
Hinglish:
Har job ko ek ke baad ek server pe assign kiya jata hai — ek turn system.
Example:
If 3 servers (A, B, C) are there, then jobs go like A → B → C → A…
Hinglish:
Jo request pehle aayi, usko pehle process kiya jata hai.
Hinglish:
High-priority tasks ko pehle chalaya jata hai — emergency system jaisa.
Hinglish:
Kaam starting me hi fix kar diya jata hai, badme change nahi hota.
Hinglish:
Real-time me dekh ke kaunsa server free hai, us par kaam diya jata hai.
✅ 7. Summary Table
Technique Type Purpose Use When
Dynamic Load Balancing Load Balancing Real-time load shift Changing workload
● Definitions
● Real-life examples
● Advantages + 1 disadvantage
🎯 9. Trick to Remember
🔑 Trick Word: “RFPD – SDHS”
● R – Round Robin
● F – FCFS
● P – Priority
● D – Deadline
● S – Static LB
● D – Dynamic LB
● H – Honeybee Algorithm
● S – Scalability boost
📘 Resource Optimization Algorithms
✅ 1. What is Resource Optimization?
🔹 Definition (English):
Resource Optimization in cloud computing means intelligently managing cloud resources
(CPU, memory, storage, bandwidth, etc.) so that performance is high, cost is low, and no
resources are wasted.
🔹 Definition (Hinglish):
Resource Optimization ka matlab hai ki cloud ke resources ko smartly use karna — na zyada
lagana, na kam — taaki cost bhi kam ho aur performance bhi achha mile.
✅ 3. Real-life Example
Imagine a cloud-based e-commerce app like Amazon:
📏 Bin Packing Algorithm Greedy Fit tasks into minimum number of VMs
🧠 8. Memory Trick
Trick Word: "GAB-API" —
● G = Genetic Algorithm
● A = Ant Colony
● B = Bin Packing
● A = AI-Based (Reinforcement)
● P = PSO
● I = ILP
● Table/diagram optional
✅ 1. Definition
🔹 Task Migration :
Task migration means moving a specific task/process (small unit of work) from one virtual
machine (VM) or physical server to another to improve performance, reduce load, or save
energy.
🔹 VM Migration (Hinglish):
VM migration ka matlab hai poori virtual machine ko (jisme OS aur apps hain) ek server se
dusre server par shift karna, bina system down kiye.
✅ 3. Real-life Example
Suppose a cloud data center is hosting multiple VMs. One server is overheating due to heavy
usage. So:
Hinglish:
Live migration me VM shift hoti hai bina system ko band kiye.
● Downtime is there
Hinglish:
Cold migration me VM ko pehle shutdown karte hain, fir migrate karte hain.
✅ Simple method
❌ Not suitable for live services
✅ Less interruption
❌ Requires strong network
● No runtime movement
✅ Less overhead
❌ Not flexible
✅ Improves performance
❌ Needs monitoring tools
✅ 6. Diagram – VM Migration vs Task Migration
[Task Migration] [VM Migration]
┌─────────────┐ ┌──────────────┐
│ Task A │ │ VM1 │
│ on VM1 │ │ (OS+Apps) │
└────┬────────┘ └─────┬────────┘
│ │
▼ ▼
Migrate Task Migrate entire VM
▼ ▼
┌─────────────┐ ┌──────────────┐
│ Task A │ │ VM1 │
│ on VM2 │ │ on Host B │
└─────────────┘ └──────────────┘
▶️ VM Migration
Advantages Disadvantages
✅ 9. Impact on QoS
✅ Improves availability
✅ Reduces response time
✅ Prevents overload or failure
✅ Maintains uptime during hardware upgrades