(Bring Your Own) Load Balancer
Read the blog post about this application here
- To initialize or clean the build directory
./scripts/clean.sh- To make a clean build and run the application with the config file
./scripts/run.sh3 types of test servers are present in the tests/ directory
- local: Run multiple instances of a basic ExpressJS server locally
- Install the dependencies with
npm ifirst then run them withnpm start
- Install the dependencies with
- echo: Run multiple instances of the Echo-Server
- Run the
setup.shfile to clone the repository - Run the
npm startcommand to start the servers
- Run the
- docker: Run the same echo server but in docker along with the load balancer
Modify the byolb.config file to point to the correct host and ports. Run the server:
CONFIG_FILE=/path/to/byolb.config ./build/src/lb