repl()
bug: ensure server exists before closing iterr.code
checkreload()
to reload workers onlyexit()
in cli()
logger()
/ pidfiles()
errors when dir does not exist, now usingreload()
plugin causing the signal
option to fail. Closes #131bind()
errorsWorker
instance .worker
{ color: false }
option to debug()
Master#listen()
with env specific config. Closes #98close(fd)
issue for Master without a server. Closes #89cli()
when cluster is not runningcli()
will still operate on orphanslightRequests
option to stats()
Master#spawn()
and Master#remove()
to 1title
and worker title
settings. Closes #54request complete
stats()
eventconnections
option to stats()
plugin.
Reports connections and disconnections, displaying in the REPL.requests
option to stats()
plugin.
Reports request statistics, displaying in the REPL.user
/ group
options. Closes #60cli()
exit when working with reload()
(or anything else keeping the event loop active)worker removed
eventspawn(-n, signal)
support defaulting to SIGQUITspawn(-n)
support. Closes #46cluster(filename)
, previously still requiring for mastercluster(filename)
support. Closes #45
This is highly recommended, view the API docs
on the site for more info.listen()
host dns resolution. Closes #35pidfiles()
helper master.pidof(name)
reload()
ignoring _nodemodules and similar dirs. Closes #31-g
for graceful shutdown instead of duplicate -s
. Closes #39Added Master#preventDefault
support to clean cli()
.
Plugins can now tell master to "prevent its default behaviour", aka
listening for connections.
Fixed bug preventing consistent envs. Closes #37 [reported by sambarnes]
This caused require.paths
to be altered.
Fixed; throw pidfiles()
related errors, instead of ignoring
reload()
plugin; protect against cyclic restarts.Master#workerKilled()
call from workerMaster#do()
reload()
to the servers root dirreload()
filtering out non-js files. Closes #30Added 'all'
env support, in('all')
executing regardless
of the environment. Useful when listen()
ing on the same port
regardless.
Changed; working directory
setting defaulting to the script directory (POLS)
shutdown()
functionstop()
functionAdded Master#in()
for environment based usage. Closes #22
For example:
cluster(server)
.in('development')
.use(cluster.debug())
.use(cluster.repl())
.listen(3000)
.in('production')
.use(cluster.logger())
.listen(80);
Fixed some test race-conditions
Fixed event leak. Closes #18
stats()
/ repl()
breakage when used with 0.2.x due to os mod. Closes #16process.setuid()
typo