Commit Graph

152 Commits (8e295464d1f53605ea59fbceb579c216a725fd89)

Author SHA1 Message Date
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)
psychobunny 4fd9b58a55 give mongo room to breathe
Julian Lam 7255ce3dbe primary worker support, and added notif pruning to primary worker jobs
Julian Lam 2efb816da3 restarted threads now grab a copy of the minified js and map from the loader
Julian Lam fec3ae7e5e better integration with nodebb executable
barisusakli 0b2df849bd Merge remote-tracking branch 'origin/cluster' into cluster
Conflicts:
	loader.js
barisusakli 98f338b41c online count fixes for cluster
Julian Lam e5a35ce378 js propagation for cluster module, so only 1 thread minifies the js
Julian Lam 08abbe19bc zero downtime and reload support with cluster module
Julian Lam 8a996c4524 changing silent value based on environment variable
Julian Lam 956a431950 properly handling SIGHUP
Julian Lam 8baea1a251 crash timer
barisusakli 20b951b9d9 added back num cpus
barisusakli fdafb72c34 removed getUserSockets for chat
emit to users rooms directly
Julian Lam de41896770 restart handling and crash detection
barisusakli 298f14ad27 removed cluster from app.js
Julian Lam 58a73b52b5 work-in-progress commit to get cluster module working with loader.js
Julian Lam 9ea081deb3 sending 'bind' message to child proc instead of SIGCONT signal, which is not understood by Windows installs
Julian Lam 2bfa7d5b97 closed
Julian Lam 5f68b8f657 passing in all environment variables when forking,
Julian Lam ac9bd0859f fixed
Julian Lam a32fd3f6f9 fixed
Julian Lam a796940064 closed use --no-daemon flag to... not daemonize. Also, install script can be canceled without throwing errors.
Julian Lam 5b38c3b9ee fixed
psychobunny e5486db1ae Merge branch 'code-quality' of https://github.com/miksago/NodeBB into miksago-code-quality
Conflicts:
	src/database.js
Julian Lam 74ff579412 added startTimer so that repeated errors on startup don't cause the loader to go into an infinite loop
Micheil Smith 3e82cab398 Add missing new lines at end of files.
Julian Lam 0a35195fc7 an attempt at addressing loader madness...
Julian Lam 28832a2540 fixing bug where sometimes a pidfile was left over, and nodebb would refuse to start a daemon again.
Julian Lam 20b5d577dd ability to restart nodebb via executable
Julian Lam 5b301772bb added daemon capability to ./nodebb start, npm start/stop scripts
Julian Lam 7b46d66e68 having the loader play nicely with supervisor -- ./nodebb watch can now hit the restart button
Julian Lam 2baa381917 plugins and themes now trigger a restart
Julian Lam b64e5870b7 loader now handles arguments and ./nodebb watch command updated to not use loader.
Julian Lam d6a1fad527 removing timeout before restarting nodebb, fixing nodebb executable
Julian Lam 64c4dd7e63 communication between loader and child