Skip to content

TCP load balancer for running load balanced scenario tests

Notifications You must be signed in to change notification settings

mixu/tcp-loadbalancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcp-loadbalancer - A TCP load balancer for testing load balancing

To run the example:

node example.js
node example_backends.js
curl localhost:8000 # Hello 1
curl localhost:8000 # Hello 2

To run the REPL client:

node balance.js

Usage example:

node balance.js
Server running at localhost 8000
> REPL commands: [ 'status', 'toggle' ]
> r.status();
Status:
0   enabled     localhost : 8001
1   enabled     localhost : 8002
> r.toggle(0);
Status:
0   disabled    localhost : 8001
1   enabled     localhost : 8002

About

TCP load balancer for running load balanced scenario tests

Resources

Stars

Watchers

Forks

Packages

No packages published