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
Erlang processes in node pool
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
  7 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
 
Bikram  
View profile  
 More options Jun 5 2012, 6:30 pm
From: Bikram <razorp...@gmail.com>
Date: Tue, 5 Jun 2012 15:30:21 -0700 (PDT)
Local: Tues, Jun 5 2012 6:30 pm
Subject: Erlang processes in node pool

Hi,

In continuation to my comment on cross node process management. Given below
are couple of links that I found useful:

http://www.erlang.org/doc/man/pool.html#start-1
http://www.erlang.org/doc/man/slave.html#start_link-1
http://www.erlang.org/doc/design_principles/distributed_applications....

It seems I was mistaken in assuming that state is transferred
automatically, which apparently is not the case. But maintaining a list of
nodes and by sending a message to a supervisor/gen_server on next node in a
list in state on process terminate; the transfer of state can probably be
achieved (in theory).

However application redundancy at cluster level can also be achieved (
http://www.erlang.org/doc/design_principles/distributed_applications....)
to the same effect. But state preservation (or a pseudo effect of that)
would depend on the design of the application (e.g. having a replicated
in-memory mnesia cluster for storing the state).

All these being my wild ideas, would be good to hear views on this.

Best,
Bikram


 
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.
André Graf  
View profile  
 More options Jun 5 2012, 6:43 pm
From: André Graf <andre.g...@erl.io>
Date: Wed, 6 Jun 2012 00:43:47 +0200
Local: Tues, Jun 5 2012 6:43 pm
Subject: Re: Erlang processes in node pool
Hey Bikram

Can you please elaborate more on the topic, so that the poor guys not
being able to attend the today meeting can follow the discussion.

Cheers and Thanks!
André

On 6 June 2012 00:30, Bikram <razorp...@gmail.com> wrote:


 
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.
Bikram Chatterjee  
View profile  
 More options Jun 5 2012, 6:50 pm
From: Bikram Chatterjee <razorp...@gmail.com>
Date: Wed, 6 Jun 2012 00:50:15 +0200
Local: Tues, Jun 5 2012 6:50 pm
Subject: Re: Erlang processes in node pool

Hi André,

Sorry, my bad!

We were discussing that in a erlang cluster scenario, is it possible to
define fallback nodes for a process so that if it crashes on one node it
will be automatically started in another with the current state pre-loaded.

This is my understanding of the problem statement others please correct me
if I am wrong.

And how is Berlin treating you this time?

Cheers!
Bikram


 
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.
Agustin Cautin  
View profile  
 More options Jun 6 2012, 8:07 am
From: Agustin Cautin <acau...@gmail.com>
Date: Wed, 6 Jun 2012 05:07:52 -0700 (PDT)
Local: Wed, Jun 6 2012 8:07 am
Subject: Re: Erlang processes in node pool

Hello Everyone,

Yes this is exactly the problem, maintaining the state of a process on a
remote note in case that the local node dies for whatever reason. Now this
can't be achieved sending a message on process termination due to the fact
that the note might be already disconnected by the time the termination
takes place.

Mnesia seems to be the best/simplest alternative so far.

Regards
Agustin.


 
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.
Bikram Chatterjee  
View profile  
 More options Jun 6 2012, 9:13 am
From: Bikram Chatterjee <razorp...@gmail.com>
Date: Wed, 6 Jun 2012 15:13:04 +0200
Local: Wed, Jun 6 2012 9:13 am
Subject: Re: Erlang processes in node pool

Hi Augstin,

When I proposed Mnesia, I didn't considered the node's death (I only
considered processe's death). But as you have pointed out. A node's death
is quite tricky.

First of, is there was any last minutes sync mnesia cluster needed before
the node died will be lost anyway. Besides, there must be a master process
running somewhere which monitors every appserver node and triggers a
process spawn if a node is dead. If I understand (and remember) correctly
you arch had an identical set of app servers. So the question will still
remain where would you run this node monitoring service?

This started to look quite challenging task (and somewhat unexplored)
compared to JBoss and other app clusters.

It would be great to learn more on this from the Erlang exparts in the list.

Cheers!
Bikram


 
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.
Agustin Cautin  
View profile  
 More options Jun 10 2012, 7:14 pm
From: Agustin Cautin <acau...@gmail.com>
Date: Sun, 10 Jun 2012 16:14:35 -0700 (PDT)
Local: Sun, Jun 10 2012 7:14 pm
Subject: Re: Erlang processes in node pool

Hello Again,

Since I just implemented an application spawning a backup on a different
node, the is the code is
here https://github.com/acautin/distributed-state-example

Seems to work fine, at least in one machine, but since erlang is network
transparent it should work exactly the same in several machines :p.

Regarding Mnesia I think that it support transactions so you always can
wait for remote commit to come back before returning the modified state and
the answer to the user. Next weekend maybe I will try to implement the same
state keeper using mnesia.

Regards.
Agustin.


 
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.
Bikram Chatterjee  
View profile  
 More options Jun 10 2012, 8:12 pm
From: Bikram Chatterjee <razorp...@gmail.com>
Date: Mon, 11 Jun 2012 02:12:39 +0200
Local: Sun, Jun 10 2012 8:12 pm
Subject: Re: Erlang processes in node pool

Sounds interesting.

Please let us know how it goes.

Bikram


 
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     Older topic »