[erlang-questions] running multiple instance of app release
Mon Apr 28 21:30:09 CEST 2014
After some arm wrestling I discovered the "real" problem, operator error.
As it turns out the release works just as I wanted. I am able to start the release with "-sname nodeName -config nodeConfig" with no issue at all.
Sorry for the noise.
Cheyenne Software Engineering
“We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing.”
― Mother Teresa
On Apr 24, 2014, at 3:31 PM, Alex Shneyderman <> wrote:
> have a look at the two links below for inspiration:
> their technique is to provide per instance/node parameter files and
> generate separate releases for each node (specifying parameter files
> to rebar on command line and specifying output directory). They both
> use riak-core but you could copy their use of rebar without the need
> for riak-core.
> On Thu, Apr 24, 2014 at 5:09 PM, Geib, Mark <> wrote:
>> I recently decided to change the way I build erlang applications for delivery to my internal customers. Prior to this change my deliverable was basically the ebin, maybe the include, directory for my application that would be located in /usr/lib/me/lib/myapps/.... To run the application I would export ERL_LIBS as /usr/lib/me/ the start the node with -sname -config, etc. and off it went. In this way I can run the application many times with different -sname args.
>> Now I am building releases with rebar. However, one thing I don't understand is how I can run more than one instance of the application on the same host. It appears that the generated script for starting/stopping the application does not support command line options/arguments. Without being able to set the node name how can run the same app more than once.
>> Releases are very attractive for my group, but what we need is to able to do something like:
>> /opt/me/myapp/bin/myapp start -sname node01 -config node01
>> and then
>> /opt/me/myapp/bin/myapp start -sname node02 -config node02
>> Mark Geib
>> Principal Engineer
>> Cheyenne Software Engineering
>> / 35-215
>> “We, the unwilling, led by the unknowing, are doing the impossible for the ungrateful. We have done so much, for so long, with so little, we are now qualified to do anything with nothing.”
>> ― Mother Teresa
>> erlang-questions mailing list
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the erlang-questions