Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8557441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:34:24+00:00 2026-06-11T15:34:24+00:00

Background I have an application that is auto-started when a node is started (using

  • 0

Background

  • I have an application that is auto-started when a node is started (using .rel, .boot, etc.)
  • I want the application to fail-over to alternate nodes if a first node goes down.
  • I use Erlang’s Distributed Application capability to handle fail-over and take-over.

Problem

The problem is that part of the Distributed Applications Negotiation is that when the nodes handshake to determine which node will stay-up and which will be quiesced, the application is started at all of the nodes. I need the application to NOT be up on multiple nodes if possible.

Question

  • Is there a way to have nodes automatically start my application except when involved in the Distributed Applications start-up negotiation? Alternately,
  • How do I achieve having my application start in an unattended way and fail-over without requiring my application to be up (even briefly) at multiple nodes
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:34:25+00:00Added an answer on June 11, 2026 at 3:34 pm

    Unfortunately, the Erlang take-over and fail-over capabilities are pretty limited nowadays, so you need your application to run on all the nodes for these capabilities to work.

    The only idea which comes to my mind is a bit crazy and involves one more level of indirection, but it might actually work.

    You could write a fake, lightweight, wrapper application, which you then start on all the nodes. This application uses the standard Erlang Distribution capabilities. You then implement your takeover/failover strategies by simply starting your original application:

    -module(wrapper).
    -behaviour(application).
    
    [...]
    
    start({takeover, _Node}, _Args) ->
      application:start(original_app).
    
    [...]
    

    Also, bear in mind that when you type application:start(my_app) for a distributed app in all of your nodes, the application is not started on all the nodes. You can verify that by typing application:which_applications() on each of the nodes. You will notice how the application is running on one single node.

    Finally, may I ask why you cannot start the application on more than one node?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: We have an application that has been in the works for over a
Background: I have an application that, when installed, generates a random identifier (AppId). When
Some background: we have a windows application (c#) that locate in the system try.
I have a Java application that run as a background service, i.e. no GUI.
Scenario I have a background worker in my application that runs off and does
Background info: I have a windows application (in c#) that handles a custom file
I need to have ALWAYS a background service that will synchronize my Android application
Background Currently, I am working on a Rails application. I have different products that
Background I have a web application that uses ISO-8859-1 encoding. When I pass parameters
Ok. Here is some background: I have created a simple APEX application that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.