Skip to content

Widowan/primitive-load-balancer-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Primitive load balancer POC using Spring

(See microhttp version here)

Usage with docker:

$ ./mvnw clean spring-boot:build-image
$ cd target-service
$ ./mvnw clean spring-boot:build-image
# Running balancer itself (up to 5 targets 8081..8085 by default, or specify more):
$ docker run --network=host -p 8080:8080 load-balancer-spring:0.0.1-SNAPSHOT [--target.ports="8081 8082 8083"]
# Running target service:
$ docker run -p 8081:8081 target-service:0.0.1-SNAPSHOT --server.port=8081

Usage without docker:

# To run balancer:
$ ./mvnw clean spring-boot:run [-Dspring-boot.run.arguments=--target.ports="8081 8082 8083"]
# To run target:
$ cd target-service
$ ./mvnw clean spring-boot:run -Dspring-boot.run.arguments=--server.port=8081

About

Primitive load balancer POC using Spring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages