Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
HA / failover support
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dave Horton  
View profile  
 More options Sep 20 2012, 9:15 am
From: Dave Horton <d...@dchorton.com>
Date: Thu, 20 Sep 2012 06:15:39 -0700 (PDT)
Local: Thurs, Sep 20 2012 9:15 am
Subject: HA / failover support

Are there any features in node relating to high availability or failover of
a server?  I would like to be able to run a cluster of node servers (either
physical or virtual) such that if any one dies the others will take over
processing, including maintaining the state of running applications on the
downed server.  In the simplest case, two servers share a virtual IP and if
one fails the other takes over the IP and my node applications keep running
on the other server.  Anything like this exist, or in the works?  Or is
there alternative "best practice" on achieving this type of reliability?
 Does v8 have any features to migrate a running execution context between
servers?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cole gillespie  
View profile  
 More options Sep 20 2012, 10:59 am
From: cole gillespie <mcg42...@gmail.com>
Date: Thu, 20 Sep 2012 10:58:53 -0400
Local: Thurs, Sep 20 2012 10:58 am
Subject: Re: [nodejs] HA / failover support

I have not seen anything like this currently. Would you also want all of
the information from the failed server to fail over as well?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evan  
View profile  
 More options Sep 21 2012, 12:23 am
From: Evan <evantah...@gmail.com>
Date: Thu, 20 Sep 2012 21:23:06 -0700 (PDT)
Local: Fri, Sep 21 2012 12:23 am
Subject: Re: [nodejs] HA / failover support

I wrote a blog post related to this a few weeks ago exploring what can be
done from a deployment & uptime POV regarding node [[
http://blog.evantahler.com/production-deployment-with-node-js-clusters ]]

In a nutshell, you can use the native cluster module to manage a number of
workers which handle the processing of requests, can be started/stopped as
needed, and can be re-spawned when they die.  You can also do 0 down-time
deployments by rolling over your workers as there is new code to load in.
 Cluster workers can share ports and open sockets, and requests will be
shared between them.

The problem of storing state between failures/deployments is not really a
node issue, but if you write to a persistant store (DB, disk, ect), you
should be able to recover in the normal way.  Another fun addition node
adds is that there is a message passing interface within the cluster module
between master and slaves, so you might also investigate keeping a replica
of any important data in the master's memory space to seed new children
with.  You might want to look more into this if the "state" data moves too
fast for redis or a database.  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
carlos8f  
View profile  
 More options Oct 5 2012, 3:12 pm
From: carlos8f <carlo...@gmail.com>
Date: Fri, 5 Oct 2012 12:12:15 -0700 (PDT)
Local: Fri, Oct 5 2012 3:12 pm
Subject: Re: HA / failover support

A downed server can't communicate, so it's impossible to transfer its state
at that point. Thus it's better to have the servers check in with the
"global state" frequently (i.e., redis) to prevent data/state loss.

Then what happens when redis master goes down? My solution is to implement
high-availability on the redis client level, which enables redis slaves to
take over for a downed redis master: https://github.com/carlos8f/haredis

I also developed a suite of modules called Amino (using haredis) which make
it easy to create a failover-enabled cluster of node processes:
https://github.com/amino/amino With this you don't need the core cluster
module. You can have node processes across any number of physical servers,
when node processes start up they are automatically added to the service
pool, and removed when processes exit / become unavailable. The only
configuration each process needs is a list of redis servers to use for
global state (master is detected automatically by haredis).

good luck :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evan  
View profile  
 More options Oct 5 2012, 4:09 pm
From: Evan <evantah...@gmail.com>
Date: Fri, 5 Oct 2012 13:09:36 -0700 (PDT)
Local: Fri, Oct 5 2012 4:09 pm
Subject: Re: HA / failover support

HARedis looks awesome!  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic