Load Balancing
Directory actions
More options
Directory actions
More options
Load Balancing
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Go to Servers folder and double click on Server1, Server2, Server3
Go to Approches folder and double click on Distributed Hashing
Go to Clients folder and open Client.py in Idle
run the client, you will see the requests getting distributed amongst servers.
To add new server, just copy paste data in one of the server files and just change name to ServerN
where N is the number of the server you are adding, you can add upto 10 servers
add the server on the fly when approch1 is running, you will see the drawback of the approch
Note: while adding servers please remove starting from highest number.
example: if you have servers: S1, S2, S3
while removing first remove S3 first and not S1 or S2
Similarly while adding, first add server starting from highest number + 1
example: for servers S1, S2, S3, add the next server that is S4 and not S10 or anything.
To run,
Go to Servers folder and double click on Server1, Server2, Server3
Go to Approches folder and double click on Consistant Hashing
Go to Clients folder and open Client.py in Idle
run the client, you will see the requests getting distributed amongst servers.
you will also see the visualization of the request and the servers on the hashing ring
the servers are in red color
the current request is in blue
the old requests are in yellow
To add new server, just copy paste data in one of the server files and just change name to ServerN
where N is the number of the server you are adding, you can add upto 10 servers
add the server on the fly when approch1 is running, you will see that old requests dont get redirected
only the requests clockwise closest to added/deleted server will get affected