arunoda / meteor-up-legacy

Production Quality Meteor Deployments
MIT License
2.26k stars 395 forks source link

Multi-CPU support #8

Open arunoda opened 10 years ago

copleykj commented 10 years ago

:+1:

With galaxy getting tabled till 1.1 this would be amazing!

stephentcannon commented 10 years ago

+1 crossing similar bridge

tonyaom commented 9 years ago

It is a great feature that may make using Meteor for scale projects easier.

Look forward to seeing the Multi-CPU being released.

Kikobeats commented 9 years ago

@arunoda I read your post in meteorhacks and I think that this can be easily to resolve using PM2 (#88) instead of forever because you can set up using the max of CPU's!

arunoda commented 9 years ago

I'd love to use it. But it doesn't support sticky sessions. see: https://github.com/Unitech/pm2/issues/389 On Mon Jan 12 2015 at 4:34:39 AM Kiko Beats notifications@github.com wrote:

@arunoda https://github.com/arunoda I read your post in meteorhacks https://meteorhacks.com/run-meteor-on-multiple-cpus.html and I think that this can be easily to resolve using PM2 (#88 https://github.com/arunoda/meteor-up/issues/88) instead of forever because you can set up using the max of CPU's!

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/8#issuecomment-69516511.

Kikobeats commented 9 years ago

hmm, I didn't know how SockJS managed the session, but look that is significantly a problem to be scalable.

do you think that is possible resolve the problem writing a bit of code using node cluster api? people say in the issue that are using a library called sticky-session and later lift the script with pm2.

arunoda commented 9 years ago

No, that project does not work for us. It's based on IP address and that's not a good way to doing sticky sessions.

On Mon Jan 12 2015 at 2:49:16 PM Kiko Beats notifications@github.com wrote:

hmm, I didn't know how SockJS managed the session, but look that is significantly a problem to be scalable.

do you think that is possible resolve the problem writing a bit of code using node cluster api? people say in the issue that are using a library called sticky-session https://github.com/indutny/sticky-session and later lift the script with pm2.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/8#issuecomment-69544201.

babnik63 commented 9 years ago

Yes that project seems not to fit. But this is a critical need, I hope we reach to a solution. :-)

strikeout commented 9 years ago

How about using Phusion Passenger in standalone or nginx integration mode?

babnik63 commented 9 years ago

I think using nginx for load balancing between multiple apps running on different cores could be a good idea, but it needs some standardization and proper management with something like mup.

Kikobeats commented 9 years ago

@arunoda what about using a web-worker API? https://www.npmjs.com/package/webworker-threads

MaazAli commented 9 years ago

Any update on this. You've recently talked about meteor-cluster, will that essentially launch more node processes to support multi-cpu like the node cluster module?

arunoda commented 9 years ago

It does not spawn instances. It's different from the node module. This is a complete solution which is a real proxy and does more work.

On Thu Jan 29 2015 at 1:24:27 AM Maaz Ali notifications@github.com wrote:

Any update on this. You've recently talked about meteor-cluster, will that essentially launch more node processes to support multi-cpu like the node cluster module?

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/8#issuecomment-71903555.

MaazAli commented 9 years ago

@arunoda maybe this is not the right place to talk about it but will meteor-cluster utilize servers with multi-cpus? Load balance between multiple instances running on the same server using one cpu per instance for example.

arunoda commented 9 years ago

We might can use it for that. I'll share some patterns soon.

On Thu Jan 29 2015 at 2:49:00 AM Maaz Ali notifications@github.com wrote:

@arunoda https://github.com/arunoda maybe this is not the right place to talk about it but will meteor-cluster https://github.com/meteorhacks/cluster/ utilize servers with multi-cpus? Load balance between multiple instances running on the same server using one cpu per instance for example.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/8#issuecomment-71918147.

katopz commented 8 years ago

Sound interesting, here's just for ref btw https://github.com/andruschka/pm2-meteor/issues/6