dorbel-tech / dorbel-shared

dorbel shared dependencies used in dorbel-app
0 stars 1 forks source link

Implement clustering #15

Closed virtser closed 7 years ago

virtser commented 8 years ago

Implement clustering using: https://www.npmjs.com/package/throng

virtser commented 8 years ago

Need to understand if that still make sense while running in Docker container. Instead we can accomplish the same by running the same Docker container number of times on same machine.

avnersorek commented 8 years ago

yes even you just run 1 child of the cluster you still get much quicker restart in case of crash

On Wed, Nov 30, 2016 at 11:59 AM, David Virtser notifications@github.com wrote:

Need to understand if that still make sense while running in Docker container. Instead we can accomplish the same by running the same Docker container number of times on same machine.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dorbel-tech/dorbel-shared/issues/15#issuecomment-263831903, or mute the thread https://github.com/notifications/unsubscribe-auth/ACHtjhdd8i6tIot_Mb6xDYr0qrAPgvBLks5rDUkOgaJpZM4K5GLi .

virtser commented 7 years ago

@avnersorek do you think it's a must for initial release?

avnersorek commented 7 years ago

Yes

On Mon, Jan 9, 2017 at 8:45 AM, David Virtser notifications@github.com wrote:

@avnersorek https://github.com/avnersorek do you think it's a must for initial release?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dorbel-tech/dorbel-shared/issues/15#issuecomment-271219981, or mute the thread https://github.com/notifications/unsubscribe-auth/ACHtjseEFnBvtJyWijyekBvhM2Fik1Z3ks5rQdeZgaJpZM4K5GLi .

virtser commented 7 years ago

See if more industry standard alternative is a better option: https://github.com/Unitech/pm2

virtser commented 7 years ago

Refer to clustering title in this post talking about pm2 clustering with Docker; https://www.sitepoint.com/node-js-best-practices-from-the-node-gurus/?utm_source=nodeweekly&utm_medium=email#scaleup