Top Banner
Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester Polytechnic Institute
26

Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Dec 21, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Adaptive Content Delivery for Scalable Web Servers

Authors: Rahul Pradhan and Mark Claypool

Presented by: David Finkel

Computer Science Department

Worcester Polytechnic Institute

Worcester, MA, USA

Page 2: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Outline

Introduction Managing LoadManaging Load Approach - Methodology - Design Experiments Client – Side Experiments Future Work Conclusions

Page 3: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Introduction

Enormous Growth of Web Exponential in number if users,

pages, and sites

New Web uses require different resources Static: Disk, Network Dynamic: CPU, Network Media streaming: CPU, Disk+,

Network+

Page 4: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Web Server Overload

Loaded server rejects connections, denying service Companies lose revenue

Loaded server increases response times Slower pages viewed as less

interesting

Page 5: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Current Approaches to Managing Load

Over provisioning Beef up single server Can still become loaded during flash crowds

Load balancing Server farm or CDN Individual servers may still become over-

loaded

Content adaptation Reduce resources needed upon heavy load

Page 6: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Content Adaptation Examples

Using “thumbnails” instead of full, inline imagesReducing the number of local links Reducing the number of embedded objectsChanging the quality of imagesCurrent approaches manual! Our approach is to adapt content

automatically

Page 7: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Our Approach

Two versions of Web pages High quality to serve under normal load Low quality to serve under high load

Monitor the server load A separate light weight standalone process

Upon heavy load, server switches to low quality transparentlyRequires no modification to Server Browser http protocol

Page 8: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Adaptive Content Delivery System Architecture

Load Monitor

Adaptation Module

Content Switching

CPU, Disk, Network

Web Server

Disk

Requests

Response

Base System Our System

Page 9: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Load Monitor

Continuously monitors the utilization of the server and the observed response timeDeveloped utilities to measure utilization CPU, Network, Disk Observed Response Time

Used Linux /proc file system, but techniques general enough for any OS

Page 10: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Adaptation Module

Input of load values from the load monitorDecides low or high load Low and high thresholds

Threshold values determined by prior measurement Scripts to induce load on server httperf to generate requests measured response time (using httperf)

Page 11: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Response Time vs CPU Util

Thresholds 60% and 75%

Page 12: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Content Selector TransparentlyTransparently switches contentswitches content depending on

the decision made by the adaptation module.

We use symbolicsymbolic linkslinks to make the same file point

to different qualities of content.

indexhigh.html

index.html indexlow.html

Page 13: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

ExperimentsServer P-III, 500,128 MB RAM, IDE, 10 Mpbs, Linux

2.2.14, Apache 1.3.12

Workloads Static Workload Dynamic Workload Multimedia Workload

Metrics Throughput (Responses/sec) Average Response Time Percentage of Errors Frame Rate (for Multimedia Clients)

Page 14: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Response Time (ms) vs Requests/sec

Page 15: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Percent Errors vs Requests/sec

Page 16: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Frame rate vs Number of MM Clients

Page 17: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Overhead For the Adaptive Content Delivery System

Page 18: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Client – Side Experiments

Experiments on realreal servers to determine the impact of file size on response time.

Used a modified httperfhttperf for our measurements to generate requests

Measured the response time along with the connection set up time and transfer

time.

Page 19: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Conclusions

Server load criticalWe present a mechanism to Quantify server load Adapat transparently to client

Improves server performance: supports 25% more static requests supports twice as many Multimedia

clients supports 15% more CGI requests

Page 20: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Future Work

Adapting to heterogeneous client environment Clients may have different

bandwidths

Adding QoS features to the Web server Range of content quality at server Maximize QoS for user

Page 21: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Adaptive Content Delivery for Scalable Web Servers

Authors: Rahul Pradhan and Mark Claypool

Presented by: David Finkel

Computer Science Department

Worcester Polytechnic Institute

Worcester, MA, USA

Page 22: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Extra slides past here ….

Page 23: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

JPEG Quality : JPEG Quality Factor vs Percentage Savings in File Size

Page 24: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

MPEG Quality : MPEG Q Scale Factor vs Percentage File Size Savings

Page 25: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Response Time vs Number of CGI Requests

Page 26: Adaptive Content Delivery for Scalable Web Servers Authors: Rahul Pradhan and Mark Claypool Presented by: David Finkel Computer Science Department Worcester.

Percentage Of CGI Requests Rejected vs Number of CGI Requests