- Python 3.6 or higher
- pip package manager
-
Unzip the project archive:
unzip project.zip
-
Change to the project directory:
cd project -
Install the required dependencies:
pip install -r requirements.txt
-
Start each server on a separate terminal, specifying the port and neighbor addresses:
python server/server.py --port 50051 --neighbors localhost:50052 localhost:50053 python server/server.py --port 50052 --neighbors localhost:50051 localhost:50053 python server/server.py --port 50053 --neighbors localhost:50051 localhost:50052
Adjust the port numbers and neighbor addresses as needed for your setup.
-
The servers will start and begin sharing metrics with each other.
-
In a new terminal, run the client script:
python client/client.py
The client will send a series of requests to the server cluster, and the adaptive sharing algorithm will distribute the requests among the servers.
-
Monitor the server terminals to see the request handling and forwarding behavior.