epmd listener port

Damien Krotkine damien.krotkine at booking.com
Wed Feb 17 07:03:14 EST 2016

There is an easier way to do it, by using the advanced config file 
(usually /etc/riak/advanced.config )

Here is an example, where I use advanced.config to add a vm_args 
configuration fields. So I suppose you could use the same syntax to add 
your -env option:

{vm_args, [
{'-s my_app', ""},
{'-s my_other_app', ""}

Note to Basho people: this is not very well documented (if at all), and 
I've seen many people ask about it (be it for vm options, or adding 
paths, etc). It might be useful to ad some documentation section about it.


Christopher Meiklejohn wrote:
> On Tue, Feb 16, 2016 at 3:24 PM, David Byron<dbyron at dbyron.com> wrote:
>> http://docs.basho.com/riak/latest/community/faqs/operations/#is-it-possible-to-change-the-port-on-which-the-erl
>> says to add
>> -env ERL_EPMD_PORT<port number>
>> to vm.args, but I get the sense from
>> http://docs.basho.com/riak/latest/ops/advanced/configs/configuration-files/
>> that the goal is to avoid vm.args in preference to riak.conf.
>> My struggle is that I don't see a way to set the epmd port listener via
>> riak.conf. Is there a way? If not, are the new/latest docs missing a
>> mention of the correct location for vm.args?
> riak.conf is generated by the cuttlefish extension, which apparently
> does not have control for environment variables [1], so, I don't
> believe there is a way to do this out of the box. However, you could
> modify the schema files to add this cuttlefish transformation [2], if
> you want to, or you could call the Riak initialization commands with
> the EPMD environment variable set.
> [1] https://github.com/basho/cuttlefish/issues/135
> [2] https://github.com/basho/riak/blob/develop/rel/files/riak.schema
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20160217/9cfe86e5/attachment-0002.html>

More information about the riak-users mailing list