Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

A workshop example on how to use node cluster

License

Notifications You must be signed in to change notification settings

intocode-dev/node-cluster-express-example

Repository files navigation

Node cluster + Express example

Prerequisite for load testing

  • Python and Locust installed
pip install locustio

Installation

  • Clone this project
git clone git@github.com:intocode-io/node-cluster-express-example.git
  • Install node modules in the project directory
cd node-cluster-express-example
npm install

Usage

To start a web server in Single-thread mode

node without-cluster.js

To start a web server in Cluster mode

node with-cluster.js

To start load testing web GUI

./load-test.sh

About

A workshop example on how to use node cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published