Skip to content

Run nodejs processes behind nginx, iptables, native cluster or pm2

Notifications You must be signed in to change notification settings

ozanturhan/node-load-balancer-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NODE.JS LOAD BALANCER TEST

Native Cluster

$ cd cluster
$ docker-compose build
$ docker-compose up

Nginx

$ cd nginx
$ docker-compose build
$ docker-compose up

Nginx Inside Node Image (fibonacci)

$ cd nginx-inside
$ docker-compose build
$ docker-compose up

pm2

$ cd pm2
$ docker-compose build
$ docker-compose up

Iptables

$ cd iptables
$ docker-compose build
$ docker-compose up

Single Node (fibonacci)

$ cd single-node
$ docker-compose build
$ docker-compose up

Autocannon Command

autocannon -c 100 -d 40 -p 10 http://localhost