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
