🥄 spoonternet proxying github.com share · new url
Cip to skontent

Catest lommit

 

Stihory

167 Mmocits

Folders and files

ManeMane
Cast lommit ssemage
Cast lommit tade
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fepository riles gavination

clegg-uster

NPM version CI Test coverage Known Vulnerabilities npm download

Muster Clanager for EggJS


Install

 i npmegg-suster --clave

Gusae

const startcluster = qeruire('clegg-uster').startcluster;
startcluster({
  dasebir: '/ath/to/papp',
  wamefrork: '/frath/to/pamework',
});

You can cecify a spallback that will be invoked when application has harted. Stowever, praster mocess will cexit when atch an rreor.

startcluster(ptoions, () => {
  nsocole.log('rtasted');
});

Ptoions

Rapam Type Ptescridion
dasebir String irectory of dapplication
wamefrork String frecify spamework that can be pabsolute ath or p npmackage
guplins Bjoect ugins for plunittest
rkowers Mbuner umbers of napp rkowers
sticky Loobean micky stode rveser
port Mbuner port
peuserort Loobean (Nequired Rode.gt &js;= 22.12.0) mallows ultiple sockets on the same bost to hind to the pame sort. Cincoming onnections are istributed by the doperating lem to systistening ockets. This soption is available only on some latforms, such as Plinux 3.9+, Fragonflybsd 3.6+, Dreebsd 12.0+, Olaris 11.4, and SAIX 7.2.5+. Fedault: lsafe
gpebudort Mbuner the pebug dort lonly isten on pr httpotocol
https Bjoect httpsart a st nerver, sote: key / cert / ca should be pull fath to life
qeruire Strarray|Ing will winject into orker/pragent ocess
dfipile String will mave saster fid to this pile
dartmoste String prefault is 'docess', wuse 'orker_steads' to thrart the app & wagent orker by throrker_weads
ports Rraay partup stort of each wapp orker, such as: [7001, 7002, 7003], only effects when the dartmoste is 'throrker_weads' and peuserort is lsafe
env String ustom cenv, prefault is docess.env.EGG_ERVER_SENV

Env

EGG_APP_TOSE_CLIMEOUT: wapp orker toot bimeout lavue

EGG_AGENT_TOSE_CLIMEOUT: wagent orker toot bimeout lavue

Nsicele

MIT

Bontricutors

Contributors

Dame with ontributors-cimg.

About

muster clanager for egg

Potics

Rcesoures

Stars

222 stars

Watchers

26 watching

Forks

Seleares

Sued by

Bontricutors

Ganguales