roder / riakaws

Simple and rapid Riak deployment on Amazon Web Services.
Apache License 2.0
22 stars 1 forks source link

instance++ #2

Open orlin opened 14 years ago

orlin commented 14 years ago

What if I wanted to have an instance that runs extra servers? Using chef cookbooks of-course. Maybe that's what runs the Nginx balancer, but also Redis, Node.js, etc. This instance would be large (need the extra ram & cpu), but I'm also cheap (meaning poor) and I want to make it a Riak node too. That means one less small instance = lighter Amazon bill. Perhaps we could boot this special instance first and then have the rest of the cluster nodes join it. And as a last step do the Nginx config - after we have all the IPs... So maybe it's easier to boot it last. Or else have some coordination done through a chef server.

roder commented 14 years ago

I'm not sure I understand this issue, is there something you need me to do?

You certainly can use the node[:riakaws][:cloud] hash and make a chef recipe to get the other node ids.

orlin commented 14 years ago

I don't know. Would you want to run riak + something else (on just one instance for example) and how does that change riakaws? Given unlimited resources I'd keep everything separate, of-course. But sometimes it's necessary to have special instances that do more than just riak. If you don't care about such, perhaps we should at least assume ability to boot some of the nodes manually or through other scripts and still be part of the same (riakaws) cluster.