Sorry if I wasn't clear enough. EC2 is the cloud computing service provided by Amazon: http://www.amazon.com/gp/browse.html?node=201590011 Basically, I have heartbeat running on two virtual machines in the EC2 cloud. If one of them goes down, I must start a new virtual machine; the previous one no longer exists.
So I have heartbeat correctly monitoring each of the virtual machines. I'm just stuck with how to configure heartbeat to start up a new virtual machine. On Mon, Aug 25, 2008 at 5:43 AM, Andrew Beekhof <[EMAIL PROTECTED]> wrote: > On Sun, Aug 24, 2008 at 17:01, Chris Conley <[EMAIL PROTECTED]> > wrote: > > Hi all, > > > > I'm getting started with heartbeat and have successfully got it running > on > > two ec2 instances. My ha.cf is pasted below in case it can help anyone > > stumbling across this thread in the future :) > > > > Anyway, my question is how do I trigger starting up a new instance when > > heartbeat detects a failure? From reading the documentation, my first > guess > > is that I need to create a resource agent but not sure how this > translates > > to an ec2 instance. Or is there a way for heartbeat to trigger a > command? > > Such as "ec2-run-instances ami-12345678 -k keypair". > > I'm not sure i understand... is ec2 a cluster resource or a cluster > node in your setup? > > > > > Thanks very much! > > Chris > > > > > > ## ha.cf > > use_logd yes > > ucast eth0 10.251.90.241 > > ucast eth0 10.251.195.226 > > node ip-10-251-195-226 ip-10-251-90-241 > > crm on > > ## > > > > These two tips might be trivial, but just in case: > > To get your internal ip address for the ec2 instance, run "curl > > http://169.254.169.254/latest/meta-data/local-ipv4" from the command > line > > To get your node name, run "uname -n" from the command line > > _______________________________________________ > > Linux-HA mailing list > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems > > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > -- Chris Conley 484.467.7873 @chrisconley _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
