[erlang-questions] Gproc in a dynamic cluster

Mihai Balea mihai@REDACTED
Mon Aug 1 13:47:51 CEST 2011


That is correct, however, I was wondering if there's a way to make gproc aware of nodes that are added at a later time.

On Jul 31, 2011, at 4:51 PM, Tino Breddin wrote:

> Hi,
> 
> When using 'all' gproc_dist passes the list of nodes in the current cluster to gen_leader. Therefor in both cases you are only starting gproc_dist with 1 candidate node since you only connect them later.
> 
> T
> 
> On Jul 29, 2011, at 11:19 PM, Mihai Balea wrote:
> 
>> Hi all,
>> 
>> Here's a scenario:
>> - start Node1
>> - start gproc in global mode on node 1 (via {gproc, [{gproc_dist, all}]} in app.config)
>> - start Node2
>> - start gproc in global mode on node 2 (same way)
>> - connect the two nodes in a cluster, via net_adm:ping/1
>> 
>> The two nodes see each other, as expected, but the two instances of gproc don't seem to be aware of each other's presence - global registrations done on one node are not visible on the other side.
>> 
>> Am I missing something? Is there a way to make gproc aware of new nodes in a cluster, either automatically or manually?
>> 
>> Thanks in advance,
>> Mihai
>> 
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
> 
> 
> 




More information about the erlang-questions mailing list