One option, if you are using a config management tool like Chef is to use the Node name in Chef as the vm.args name and add entries to the hosts file mapping those names to current ips.
On Tue, May 3, 2011 at 9:24 AM, Grant Schofield <gr...@basho.com> wrote: > > On May 2, 2011, at 7:58 PM, Jeff Pollard wrote: > > I was reviewing the Riak Operations webinar, and it was mentioned that the > preferred vm.args -name for EC2 environments should be "riak@hostname" > because you don't have to "rename data or do anything weird" like you would > if your nodes were named "riak@ip.address" (approximately 40:05 in the > video). > I was looking for some elaboration on this tip, namely: > > What is meant by "rename data or do anything weird" > > When you bring a cluster together using data copied from a different set of > nodes you need to re-ip the first node you plan to start but you also have > to change the ring manually on that node so when the subsequent nodes join > everything works properly. > > Is "hostname" in riak@hostname a public DNS host that you configure in your > DNS to map to the EC2 public hostname (ec2-50-18-...)? > > You can use DNS (public or private) or host file entries that reference the > private IP of the node if you choose to use hostname. > > Does anyone have any best practices around vm.args -name in EC2 > environments? > > We haven't outlined any best practices ourselves, but I tend to believe > using a hostname that you can change the IP for via DNS or a hosts file is a > more flexible way of approaching the problem. > Grant > > Thanks! > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com