Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Leader election in a distributed situation?

by wjw (Priest)
on Mar 22, 2014 at 19:18 UTC ( [id://1079400]=note: print w/replies, xml ) Need Help??


in reply to Leader election in a distributed situation?

I know nothing of this subject and was thus curious.
Did a search for "perl election leader" and came up with a .ppt file on something called "Zookeeper".

Then did a search for "cpan zookeeper" and the following showed up: Net::ZooKeeper - search.cpan.org

Is that at all helpful?

...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results.
  • Comment on Re: Leader election in a distributed situation?

Replies are listed 'Best First'.
Re^2: Leader election in a distributed situation?
by skx (Parson) on Mar 22, 2014 at 23:33 UTC

    It isn't horrible, but it is an interface to the Apache library so there's a non-perl depdency there.

    In the ideal case I'd be looking for Net::Master class, or similar, with helper classes for different transports. I've been sketching out a prototype using Net::Master::UDP just adding send/recv methods and keeping the logic in the main module, which seems like a good direction.

    The biggest downside is that this is all async stuff, and I've little experience with perl and threading..

    Update: I've got some simple code working for the case of UDP-broadcast only, using threads and threads::shared. I suspect this might be fragile, but I will see.

    Steve
    --

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1079400]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found