Skip to content

cmseguin/clustery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clustery

A node cluster manager

Introduction

The goal of clustery is to make the whole process of building a project or application using a cluster less confusing and easier.

Clustery will do 2 things for you:

  1. Create a cluster given a array of worker id
  2. Exposes process events through a simplier api

How to use

const cluster = new Clustery([ 'app', 'cache' ])

switch (cluster.which()) {
  case 'app': require('./workers/app'); break
  case 'cache': require('./workers/cache'); break
}

About

A node cluster manager

Resources

Stars

Watchers

Forks

Packages

No packages published