[erlang-questions] Distributed Application Without Priority?

Phillips, Christopher <>
Thu Jun 20 19:54:56 CEST 2013



  We have a system currently that has two nodes that a distributed application runs across. We've talked about what it would take to make it run on both, but for now it's easier to just fail over when one node goes down.

  We have no real need for priority in this. We really don't care which the app runs on, just that it's running somewhere. Put another way; I'd like to support failover, while preventing take over.

  I, first, wondered if there was a mechanism that supported this; everything I see for distributed applications describes listing them in priority order, rather than without a priority.

  I can see at least one way I might achieve preventing takeover, but it seems like if it was unintentional it may have some unexpected side effects; namely, make it so node 1 lists node 2 as higher preference, and node 2 lists node 1 as higher preference, which would achieve, to my best understanding, what I want (a quick smoke test showed it working like I'd expect), but I'm not sure what risks it might carry with it. My second question is, does anyone know what issues this might cause if we tried running things this way?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130620/9c3ad730/attachment.html>


More information about the erlang-questions mailing list