项目作者: HMLarsen

项目描述 :
Load balancing algorithm implementation, provided by Ribbon (Netflix OSS), for Distributed Systems class at FURB.
高级语言: Java
项目地址: git://github.com/HMLarsen/Java-Load-Balancing.git
创建时间: 2020-06-20T22:00:30Z
项目社区:https://github.com/HMLarsen/Java-Load-Balancing

开源协议:MIT License

下载


Java-Load-Balancing

Load balancing algorithm implementation, provided by Ribbon (Netflix OSS), for Distributed Systems class at FURB.

Authors

Eduardo Z. Feller

Hugo Marcel Larsen

Lucas Vanderlinde

Running the backside

To run the backside locally remember to change the application.yml according code below:

  1. listOfServers: localhost:8080,localhost:8081,localhost:8082
  1. cd backside
  2. mvn spring-boot:run "-Dspring-boot.run.arguments=--server.port=8080"
  3. mvn spring-boot:run "-Dspring-boot.run.arguments=--server.port=8081"
  4. mvn spring-boot:run "-Dspring-boot.run.arguments=--server.port=8082"

Three instances of the server will be running locally.

Running the client

  1. cd balancer
  2. mvn spring-boot:run

With this, your client will be available to receive requests.

Running the application

Accessing http://localhost:8888/ you’ll receive the internet and variable systems information about the machine that are running the backside. Next requests have to print the information about the others machines.

Building a new version

Building a new Docker image into Docker Hub:

  1. docker build -t backside .
  2. docker tag backside hugolarsen/load-balancer-backside
  3. docker login
  4. docker push hugolarsen/load-balancer-backside