Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global registration? #18

Closed
bbradbury opened this issue Apr 3, 2012 · 2 comments
Closed

Global registration? #18

bbradbury opened this issue Apr 3, 2012 · 2 comments

Comments

@bbradbury
Copy link

Just checking the status of global ("g") registration-- is it broken? I might wrench on it if so.

Currently when I do gproc:reg({n, g, MyUniqueId}),

I get

{{{badmatch,
                    {error,
                        {local_only,
                            [{gproc,reg,[{n,g,<<"SymbolA_1333422920106662">>}]},

which I assume mean the functionality is disabled. If so, where do I dig in? Assessing the current status of the various gen_leaders that are floating around?

@uwiger
Copy link
Owner

uwiger commented Apr 4, 2012

It's not exactly well documented, but you need to set the environment
variable gproc_dist - e.g.

erl ... -gproc gproc_dist all

... or in place of 'all', a list of nodes, or {Nodes, GenLeaderOpts} (see
gproc_dist:start_link/1).

Den tisdagen den 3:e april 2012 skrev bbradbury:

Just checking the status of global ("g") registration-- is it broken? I
might wrench on it if so.

Currently when I do gproc:reg({n, g, MyUniqueId}),

I get

{{{badmatch,
                   {error,
                       {local_only,

 [{gproc,reg,[{n,g,<<"SymbolA_1333422920106662">>}]},

which I assume mean the functionality is disabled. If so, where do I dig
in? Assessing the current status of the various gen_leaders that are
floating around?


Reply to this email directly or view it on GitHub:
#18

@bbradbury
Copy link
Author

Ah ha! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants