Skip to content

Simple High availability load balancer in NodeJS with HaProxy

Notifications You must be signed in to change notification settings

ali-master/nodejs-haproxy

Repository files navigation

nodejs-haproxy

Simple High availability load balancer in NodeJS with HaProxy

Requirements:

  • Docker and Docker-compose
  • K6(Open source load testing tool and SaaS for engineering teams)

Run

  1. The first time you gonna run the Application:
docker-compose up --build -d
  1. The second time:
docker-compose up -d

Application URI: http://localhost HaProxy stats URI: http://localhost:81

Shutting down the running containers

docker-compose down

Logs

docker-compose logs

Run API Load testing:

Make sure you installed the K6 before.

k6 run load-test.js

About

Simple High availability load balancer in NodeJS with HaProxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages