CC Unit-4,5
CC Unit-4,5
Cloud Resource
Management and Scheduling
Contents
Resource management and scheduling.
Policies and mechanisms.
Applications of control theory to cloud resource allocation.
Stability of a two-level resource allocation architecture.
Proportional thresholding.
Coordinating power and performance management.
A utility-based model for cloud-based Web services.
Resource bundling and combinatorial auctions.
Scheduling algorithms.
Fair queuing.
Start-up fair queuing.
Borrowed virtual time.
Cloud scheduling subject to deadlines.
Cloud Resource
Management and Scheduling
2
Resource management and scheduling
Critical function of any man-made system.
It affects the three basic criteria for the evaluation of a system:
Functionality.
Performance.
Cost.
Scheduling in a computing system deciding how to allocate
resources of a system, such as CPU cycles, memory, secondary
storage space, I/O and network bandwidth, between users and
tasks.
Policies and mechanisms for resource allocation.
Policy principles guiding decisions.
Mechanisms the means to implement policies.
The strategies for resource management for IaaS, PaaS, and SaaS
are different.
The inputs the offered workload and the policies for admission
control, the capacity allocation, the load balancing, the energy
optimization, and the QoS guarantees in the cloud.
disturbance
r s (k )
u* (k)
Predictive Optimal Queuing
filter controller dynamics
external forecast (k )
traffic
The controller uses the feedback regarding the current state and the estimation
of the future disturbance due to environment to compute the optimal inputs over
a finite horizon. r and s are the weighting factors of the performance index.
Application 1 Application n
Application 1 SLA 1 …. SLA n Application n
VM VM
…. VM VM
Application …. Application
controller controller
Monitor Monitor
Decision …. Decision
Cloud Platform
Algorithm
Compute the integral value of the high and the low threshold as
averages of the maximum and, respectively, the minimum of the
processor utilization over the process history.
Request additional VMs when the average value of the CPU utilization
over the current time slice exceeds the high threshold.
Release a VM when the average value of the CPU utilization over the
current time slice falls below the low threshold.
Conclusions
Dynamic thresholds perform better than the static ones.
Two thresholds are better than one.
Blade
Blade
Blade
P
e
n
a
t
l
t
y
0 R0 R1 R2
R R - response time
e
w
a
r
d
Si3
Si1
Si6
Si4
vk
vkmax
Si5
rk (b)
rkmax
(a)
u2 Proxy x2(t)
x3(t)
u3 Proxy Auctioneer
xu
u (t ) 0
uU Proxy xU(t)
p(t+1)
The schematics of the ASCA algorithm; to allow for a single round auction
users are represented by proxies which place the bids xu(t). The auctioneer
determines if there is an excess demand and, in that case, it raises the price of
resources for which the demand exceeds the supply and requests new bids.
GIET ENGINEERING Cloud Resource Management and
COLLEGE Scheduling 24
Pricing and allocation algorithms
A pricing and allocation algorithm partitions the set of users in two
disjoint sets, winners and losers.
Desirable properties of a pricing algorithm:
Be computationally tractable; traditional combinatorial auction algorithms
e.g., Vickey-Clarke-Groves (VLG) are not computationally tractable.
Scale well - given the scale of the system and the number of requests
for service, scalability is a necessary condition.
Be objective - partitioning in winners and losers should only be based on
the price of a user's bid; if the price exceeds the threshold then the user
is a winner, otherwise the user is a loser.
Be fair - make sure that the prices are uniform, all winners within a
given resource pool pay the same price.
Indicate clearly at the end of the auction the unit prices for each
resource pool.
Indicate clearly to all participants the relationship between the supply
and the demand in the system.
GIET ENGINEERING Cloud Resource Management and
COLLEGE Scheduling 25
Cloud scheduling algorithms
Scheduling responsible for resource sharing at several levels:
A server can be shared among several virtual machines.
A virtual machine could support several applications.
An application may consist of multiple threads.
A scheduling algorithm should be efficient, fair, and starvation-free.
The objectives of a scheduler:
Batch system maximize throughput and minimize turnaround time.
Real-time system meet the deadlines and be predictable.
Best-effort: batch applications and analytics.
Common algorithms for best effort applications:
Round-robin.
First-Come-First-Serve (FCFS).
Shortest-Job-First (SJF).
Priority algorithms.
Hard real-time
strict
Hard-requirements
Soft-requirements
Best-effort
Timing
loose
loose strict
Fai(tai)=Sai(tai)+Pai Fai(tai)=Sai(tai)+Pai
Sai(tai)=Rai(tai) Sai(tai)=Fai-1(tai-1)
Fai-1(tai-1) Rai(tai)
The transmission of packet i of a flow can only start after the packet is
available and the transmission of the previous packet has finished.
(a) The new packet arrives after the previous has finished.
(b) The new packet arrives before the previous one was finished.
The root node is the processor and the leaves of this tree are the
threads of each application.
When a virtual machine is not active, its bandwidth is reallocated to the
other VMs active at the time.
When one of the applications of a virtual machine is not active, its
allocation is transferred to the other applications running on the same VM.
If one of the threads of an application is not runnable then its allocation is
transferred to the other threads of the applications.
VM1 VM2
(1) (3)
A1 A2 A3
(3) (1) (1)
The SFQ tree for scheduling when two virtual machines VM1 and VM2 run
on a powerful server
0 12 24 36
t
12 24 36 48
Thread b
0 3 6 9 12
3 6 9 12 15
Virtual time
36
24
12
6 Real time
0 3 15 18 21 24 36 48 60
Top the virtual startup time and the virtual finish time and function of the real time t
for each activation of threads a and b.
Bottom the virtual time of the scheduler v(t) function of the real time
GIET ENGINEERING Cloud Resource Management and
COLLEGE Scheduling 33
Effective virtual time
450
390
360
300
270
210
180
120
90
30
Real time (mcu)
2 5 11 14 20 23 29 32 38 41
9 18 27 36 45
The effective virtual time and the real time of the threads a
(solid line) and b (dotted line) with weights wa = 2 wb when
the actual virtual time is incremented in steps of 90 mcu.
390
360
300
270
210
180
120
90
30
Real time (mcu)
2 5 12 14 21 23 30 32 39 41
9 18 27 36 45
-60
The effective virtual time and the real time of the threads a (solid line), b (dotted line),
and the c with real-time constraints (thick solid line). Thread c wakes up periodically at
times t=9, 18, 27, 36,…, is active for 3 units of time and has a time warp of 60 mcu.
GIET ENGINEERING Cloud Resource Management and
COLLEGE Scheduling 35
Cloud scheduling subject to deadlines
S1 1
S2 2
S3 3
Sn n
The timing diagram for the Optimal Partitioning Rule; the algorithm requires
worker nodes to complete execution at the same time. The head node, S0,
distributes sequentially the data to individual worker nodes.
GIET ENGINEERING Cloud Resource Management and
COLLEGE Scheduling 38
S0 1 2 3 n
S1 1
S2 2
S3 3
Sn n
The timing diagram for the Equal Partitioning Rule; the algorithm assigns an equal
workload to individual worker nodes.
Application level
parallelism
“File” is stored on Interconnect