Commit Graph

85 Commits (9d5daa0bf4b3b011bc0d679c52b2621c36d564d7)

Author SHA1 Message Date
barisusakli 936ea5f686 sync config changes over redis pubsub
Julian Lam 3deb423c55 testing socket availability before attempting to bind
Julian Lam 49dcffcbab if worker process exits with code zero, don't boot up a new worker
barisusakli 104fc2d273 10 second timer
barisusakli 9e9b138afb removed unused code
barisusakli e7c2bc5d5d removed unused callback
barisusakli e86650a6af not used anymore
barisusakli 22e20b961e pass all env variables to worker
Julian Lam d14cd254a5 only instantiating logrotate object if silent
barisusakli 16f62e6502 closes
barisusakli d62cdd5127 added support for specifying which ports to use
if no port is specified in config.json port from url will be used if no
port in url then default to 4567

port in config.json can be an array or a single port number
barisusakli f67bc8d056 fix space
barisusakli 64e13df14c removed node cluster spawn procs on ports
barisusakli e49dfc7266 cleaned up loader.js
barisusakli 83a679fc15 fixed wrong var
barisusakli 7a5383748c possible fix for
barisusakli 14a2db4b2e fix workerIndex for ipv6
Julian Lam 5cc30ca1a0 more cache hash fixes
Julian Lam 2e24224449 passing css hash to other workers on startup
Julian Lam 82708d65c6 propagating hash to all workers on css compilation
barisusakli 7332ba9c25 fix loader for new config.json format
barisusakli 17d7916fe9 check if worker exists
barisusakli 2c89d50322 Merge remote-tracking branch 'origin/master' into socket.io1.x
barisusakli 6760ce00cc removed unused msgs
barisusakli c213f77f91 merge
Julian Lam e952a873a8 moving onlineUsers from an in-memory variable to a sorted set
barisusakli 1abe35092b cluster socket.io fixes
close proxy server on loader.stop
changed handles to object
barisusakli 785790c414 moved handle close to fork worker
barisusakli d1fcb50c7d cluster sticky session
Julian Lam 0d6be40238 fixed
Julian Lam 4125a087b5 closed , removed use of deprecated -d flag in executable
Julian Lam 783481e644 Support for reloading nodebb via the nodebb executable
barisusakli bce96d04c7 forkWorker function, pipe new worker output to log
barisusakli 4c8287251a added stderr piping to output
barisusakli 50a06f9369 log signal as well
barisusakli 63cf8d674d listen disconnect event, display unknow socket method name on dev
Julian Lam aac923fb03 fised
psychobunny 8ef4ad6f14 Revert "reverting temporarily until we figure out why logs aren't showing up"
This reverts commit 59b3e6f78f.
psychobunny 59b3e6f78f reverting temporarily until we figure out why logs aren't showing up
Julian Lam 62d0e08d6a stopped loader from crashing whenever NodeBB restarts
Julian Lam 97dba9ae39 fixed
psychobunny 94ec07eb73 linting
Julian Lam b7ba6a0d8f fixed - each individual thread will create its own logrotate write handler, because if one is closed, everything crashes in a cascade effect because we're calling .write() after .end(), bleh.
Julian Lam 4f2603afd1 closed
Julian Lam 343ff18014 closed
barisusakli 9c996e4b99 on config save update meta.config on all workers
also dont make 20 socket.emit calls for each setting field, everything
will be send in 1 socket call.
Julian Lam 901470ce05 always pipe child output to parent
psychobunny e60d88afa6 cluster by default is now opt-in
psychobunny 101ac701ef removed hardcoded silent flag from cluster setup
psychobunny 32a35164d4 ability to set # of workers to run via config or command line (default = max cpus)