Frankly I just use runit. Others get on fine with upstart. Frankly I do not
want my process supervisor written in Node - what if you have a buggy
version of Node installed by accident and everything fails?

While neither manage things like graceful restarts or clustering, those
things are trivial to add to your node app.


On Fri, Nov 15, 2013 at 2:04 PM, Eric Mill <[email protected]> wrote:

> On Friday, November 15, 2013 4:19:25 AM UTC-5, Alex Kocharin wrote:
>>
>>
>> On Thursday, November 14, 2013 8:22:16 PM UTC+4, Eric Mill wrote:
>>>
>>> I'm totally fine being told that the Unicorn model is the wrong way to
>>> think of things in Node. But what are the best practices
>>>
>>
>> There is no such thing called "best practice". You can ask what other
>> people do, but the best way to do something simply doesn't exist.
>>
>
> Yeah, yeah -- sometimes there are best practices. :)
>
>
> for deploying a Node app where I'd like to be able to scale the number of
>>> processes up and down easily on a box? The model I'm used to is putting
>>> nginx in front, having it proxy to a Unix socket, and then having Unicorn
>>> watch the same Unix socket.
>>>
>>> I'm aware of node-http-proxy<https://github.com/nodejitsu/node-http-proxy> -
>>> should I run one of these with 
>>> forever<https://github.com/nodejitsu/forever> --
>>> and then also manage my express processes with forever? How should I be
>>> conceiving of the problem?
>>>
>>
>> I'm using nginx for reverse proxy and pm2 for a supervisor. Nginx serves
>> static files faster (node-http-proxy is good, but it more suited for other
>> uses), and pm2 works better for me for a number of reasons.
>>
>
> I spent some time last night with "forever" and pm2. pm2 proved to have an
> annoying stopping 
> bug<https://github.com/Unitech/pm2/issues/42#issuecomment-21705624> that
> the author can't or won't fix, instead referring users to use the unstable
> 0.11 branch (which immediately produced crashes in my app). I was able to
> get forever working the way I wanted to, so that's what I'm going with for
> now. pm2 seems nice, and more like the future, but it's also heavy and
> seems to have a larger code surface.
>
>
>> By the way yes, you would probably want to manage your processes with a
>> some kind of supervisor. It's quite usual to node processes to crash, and
>> it'll be nice to have something to restart them.
>>
>
> Yeah, unicorn's model is helpful for this. Phusion Passenger supports
> Node, but the free version only supports recompiling nginx with Passenger
> inside, an idea I hate. You can get the unicorn-like unix socket model for
> Node if you pay them money for their Enterprise version.
>
> If anyone knows of any free Node-optimized alternatives to forever and
> pm2, let me know. forever is good, but it could be better.
>
> -- Eric
>
>
>
>>
>>
>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to