hi.

we are trying to run Riak in the Amazon cloud (using OpsWorks).
With every restart of the servers the ip addresses change so using an entry
in the /etc/hosts instead of an IP looks like a great idea.

Google's answer is:
http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-December/006912.html

Just to make sure: Riak only supports IP addresses and not DNS names in the
config files.
Though in your docs it still says:
"Riak identifies other machines in the ring using Erlang identifiers
(<hostname or IP>, ex: riak@10.9.8.7)."


The error logged when changing our config from something like 172.31.41.138
to riaknode2-ext is:

2013-09-19 21:49:53.383 [error] <0.113.0> Supervisor riak_core_sup had
child "http_riaknode2-ext:8098" started with
webmachine_mochiweb:start([{name,"http_riaknode2-ext:8098"},{ip,"riaknode2-ext"},{port,8098},{nodelay,true},{log_dir,"log"},...])
at undefined exit with reason
{'EXIT',{{badmatch,{error,einval}},[{mochiweb_socket_server,parse_options,2},{mochiweb_socket_server,start,1},{supervisor,do_start_child,2},{supervisor,start_children,3},{supervisor,init_children,2},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}}
in context start_error

Thanks a bunch.

Have a great day.
Michael
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to