robszollosi / networking Goto Github PK
View Code? Open in Web Editor NEWThe project is a simple web load balancer implemented in python that uses HTTP redirection.
The project is a simple web load balancer implemented in python that uses HTTP redirection.
Networking - Web Load Balancer To use the balancer as described in this assignment you will need 3 directories with the following files: 1. client_dir - client.py 2. balancer_dir - balancer.py, 301.html, 404.html, 501.html, 505.html, config.txt 3. server_dir - server.py, 404.html, 501.html, 505.html, testing.jpg, + other files that the client will request to download server ------ To run the server, simply execute: python server.py potentially substituting your installation of python3 in for python depending on your distribution and configuration. The server will report the port number that it is listening on for your client to use. Place any files to transfer into the same directory as the server. balancer -------- To run the balancer, execute: python3 balancer.py config.txt where config.txt is a file containing the host:port for each server that you want to have incduced in the web load balancing (each host:port should be on a new line). I have included a sample config.txt that I used for testing, so you can just edit it as necessary. client ------ To run the client, execute: python3 client.py http://host:port/file where host is where the balancer is running (e.g. localhost), port is the port number reported by the balancer where it is running and file is the name of the file you want to retrieve. Again, you might need to substitute python3 in for python depending on your installation and configuration. if you wish to bypass the balancer and simply connect to the server as in asn2, then simply substitute the balncer host:port for that of the server that you would like to connect to instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.