Docsity

Scheduling - Network Processing Architectures - Lecture Slides, Slides of Computer Architecture and Organization

Partial preview of the text

Download Scheduling - Network Processing Architectures - Lecture Slides and more Slides Computer Architecture and Organization in PDF only on Docsity!

Scheduling in Web Server

Clusters

Concepts

• Web server System

Providing web services Trend:

  1. Increasing number of clients
  2. Growing complexity of web applications

• Scalable Web server systems

The ability to support large numbers of accesses and resources while still providing adequate performance

Cluster based Architecture

Distributed Architecture

Layer-4 two-way architecture

Layer-7 two-way mechanisms

• TCP gateway

An application level proxy running on the web switch mediates the communication between the client and the server – makes separate TCP connections to client and server

• TCP splicing

reduce the overhead in TCP gateway. For outbound packets, packet forwarding occurs at network level by rewriting the

client IP address - will be described in more detail

in the next class

Layer-4 Products

Dispatching Algorithms

Strategies to select the target server of the web clusters

• Static: Fastest solution to prevent web switch bottleneck,

but do not consider the current state of the servers

• Dynamic: Outperform static algorithms by using intelligent

decisions, but collecting state information and analyzing them cause expensive overheads

Requirements: (1) Low computational complexity (2) Full

compatibility with web standards (3) state information must be readily available without much overhead

Content blind approach

• Static Policies:

Random

distributes the incoming requests uniformly with equal probability of reaching any server

Round Robin (RR)

use a circular list and a pointer to the last selected server to make the decision

Static Weighted RR (For heterogeneous severs)

A variation of RR, where each server is assigned a weight Wi

depending on its capacity

Content blind approach (Cont.)

  • Server State Aware Contd.
    • Fastest Response responding fastest Weighted Round Robin Variation of static RR, associates each server with a dynamically evaluated weight that is proportional to the server load
  • Client and server state aware

Client affinity instead of assigning each new connection to a server only on the basis of the server state regardless of any past assignment, consecutive connections from the same client can be assigned to the same server

Considerations of content blind

  • Static approach is the fastest, easy to implement, but

may make poor assignment decision

  • Dynamic approach has the potential to make better

decision, but it needs to collect and analyze state

information, may cause high overhead

  • Overall, simple server state aware algorithm is the

best choice, least loaded algorithm is commonly

used in commercial products

Content aware approach

• Sever state aware

Cache Affinity the file space is partitioned among the server nodes. Load Sharing

. SITEA (Size Interval Task Assignment with Equal Load) switch determines the size of the requested file and select the target server based on this information . CAP (Client-Aware Policy) web requests are classified based on their impact on system resources: such as I/O bound, CPU bound

Content aware approach (Cont.)

• Client state aware

Service Partitioning employ specialized servers for certain type of requests. Client Affinity using session identifier to assign all web transactions from the same client to the same server