Automated Pay load balancing for web Server. (Proxy Server)

21
ALL.. ALL.. Automated Payload Balancing Automated Payload Balancing for Web Server for Web Server PRESENTED BY Mr.P.SUTHAHAR, Assistant Professor / CSE

description

Automated Pay load balancing for web Server. Load Balancing is the process of dividing the amount of traffic. Load Balancing can be implemented with Hardware, Software, or a combination of both. Load balancing is the main reason for computer server clustering.Existing Systems are as follows:1. DNS Round Robin2. Hardware Load Balancing The proxy server maintains the network communication between the client and server because the web server may be struggled against the heavy traffic .

Transcript of Automated Pay load balancing for web Server. (Proxy Server)

Page 1: Automated Pay load balancing for web Server. (Proxy Server)

ALL..ALL..Automated Payload Balancing Automated Payload Balancing

for Web Serverfor Web ServerPRESENTED BY

Mr.P.SUTHAHAR, Assistant Professor / CSE

Page 2: Automated Pay load balancing for web Server. (Proxy Server)

Load Balancing is the process of dividing the amount of

traffic.

Load Balancing can be implemented with Hardware,

Software, or a combination of both.

Load balancing is the main reason for computer server

clustering.

Introduction..

Page 3: Automated Pay load balancing for web Server. (Proxy Server)

Existing System..

Of the many methods available to balance a server load, the

main two are:

DNS Round Robin

Hardware Load Balancing

Page 4: Automated Pay load balancing for web Server. (Proxy Server)

4

Page 5: Automated Pay load balancing for web Server. (Proxy Server)

5

Page 6: Automated Pay load balancing for web Server. (Proxy Server)

Proposed System…

The proposed software is used near or in front of the client software's / Browsers

to bundle requests when using a firewall and to reduce bandwidth waste by

performing data caching.

Our proposed system gets all the requests from the client machines and it

transfers the request to the server system based on the Load Sharing algorithm.

If the proposed system implemented in the N/W, the web server can’t struggle by

the heavy N/W traffic.

Page 7: Automated Pay load balancing for web Server. (Proxy Server)

Project Architecture…

Client 1

Client n

Client n+ 1

.

.

.

Web Server 1With Max load limit n

Web Server 2 that sharesthe Max load

Load BalancingServer

[For 2 back end web serverswith n as Load Limit]

Starts separate thread to serviceEach client

Directs to first Server

Directs to first Server

Redirects this clients connectionto second server

Page 8: Automated Pay load balancing for web Server. (Proxy Server)

Advantages of the Proposed System…

We have a single point of Access.This leads to simplified traffic logging and monitoring of the web site, although we are now

using a web cluster instead of a single server.

There is a complete control over the back-end delegation scheme, because it’s

done locally in the proposed software for each request and not cached somewhere

on the Internet.

When one of the Back-end server crashes, we need to change the delegation

configuration of the software, so the crashed back-end no longer leads to errors for

the visitors. After it is repaired we can reactivate it as simply as we deactivated it.

Page 9: Automated Pay load balancing for web Server. (Proxy Server)

USER

Block Diagram ..

Config. Details Start the Proxy ServerOn port 8002

(Can be changedin Config. File)

Resolves the given destinationIn config. File with

Inet Socket AddressListen for connectionAnd check the No. of

Connectionsaccepted

When Connection exceedsRedirect further connections

To redirect hostMake connection with dest.

Host and catchThe requested page

When Connection exceedsthe specified Limit

When Connection iswithin the specified Limit

Page 10: Automated Pay load balancing for web Server. (Proxy Server)

Client Connection Handling ..

Initialize the Config.And Start the

Server

Create File HandlerFor all three

Log Files

System Log File

Incoming Connection Log File

Outgoing Connection Log File

Continue..

Page 11: Automated Pay load balancing for web Server. (Proxy Server)

Client Connection Handling ..

Server Socket

Port : 8002

SOCKET

Load Balancing Server

Starts new Threadfor each Client

Accept and CreateNew incoming

Socket

Page 12: Automated Pay load balancing for web Server. (Proxy Server)

Server Connection Handling ..

Load Balancing Server

Server Socket(Port No : 8002)

Accepted Incoming Socket

Checks the No. of ConnectionsWith Max Load

Increment the No. of Connections

For each Incoming Connectionfrom Client Destination

Redirection

1

2a

2b

4

Out goingSocket

Page 13: Automated Pay load balancing for web Server. (Proxy Server)

Create Transfer ManagerTo handle Transfer Agents

Keep track of Client SocketAnd Transfer Agent

When Client Socket closes,Reduce the no. of Connections

Web Server toLoad Balancer

Load Balancerto Client

7

4

Wait for Next Connection

8

5

6

Page 14: Automated Pay load balancing for web Server. (Proxy Server)

Start

Define ports and Sockets

Establishing connection between Client and server

Generate log file information

Sending the request from client to Proxy server

If dataFound

Send response to the client

CC

Page 15: Automated Pay load balancing for web Server. (Proxy Server)

CSend the request to theWeb server

Check web server No. OfLoad / connections

If Load > Max

ConnectionChoose another Web

Server

Send the Client request to Web Server

Process the request

Send response to the ClientThru Proxy Server

C C

Page 16: Automated Pay load balancing for web Server. (Proxy Server)

C C

Close The Connection

Perform Cleanup Function

in Proxy Server

Stop

Page 17: Automated Pay load balancing for web Server. (Proxy Server)

Applications …

Used in Large Organizations with Many Branches

Used as Internet and also Intranet Communications

Used in Network Laboratories [Education]

Used in VPN

Page 18: Automated Pay load balancing for web Server. (Proxy Server)

Summary …

The proxy server maintains the network communication between the client and

server because the web server may be struggled against the heavy traffic .

The important feature of the project is implementing the web server operations Efficiently against the heavy network traffic

We don’t need to upgrade the web server Hard ware resources frequently .

We can expand the number of clients in the network with the same web server .

We can achieve better performance with the same web server in the network .

Page 19: Automated Pay load balancing for web Server. (Proxy Server)

Future Expansion :

The next Idea is to expand our proxy system by publishing it as a web page for getting web

resources , web sites and web pages from the web server . The proxy will search all the web

server which contains the Related web pages .

We are Planned to implement our proxy server as a system in internet which is used for

Searching the web servers with less number of client connections .

If we will implement the proxy as system between the client and web server in internet, the

transaction of information between client and server in good manner.

Page 20: Automated Pay load balancing for web Server. (Proxy Server)

References :

Java Network ProgrammingElliote Rusty Harold

www.lurhq.com

www.webopedia.com

www.microsoft.com

www.winproxy.com

www.publicproxyservers.com

Page 21: Automated Pay load balancing for web Server. (Proxy Server)