> now when I simulate a network failure (iptables -s web1.testcluster -j DROP) > apache is correctly failed. When pingd re-establishes connection the > Apache constraint must be reversed and Apache simply started. > how do I achieve the automatic resource restart?
it will happen whenever the pingd resource redetects network connectivity (up to 15s later) based on your monitor interval >> So this means setting my timeout detection to a higher value in order to >> give >>the Apache resource enough time to start? >> Would imagine similar to this: In first stages, my heartbeat would hard >> reset >>the server because Corosync didnt start in time. > Could my monitor constraint on the apache resource be in conflict with > pingd? shouldn't be, did you wait long enough for connectivity to return and the next monitor op to happen? Above? what would be a good time out 60s? (light starting, typical php box with mysql backend) Conf File - Because my mouse scroller doesn't like to be used for walls of text, SysAdmins need only SHIFT + PgUp or PgDown > ================ > conf > ==== > primitive pingdnet1 ocf:pacemaker:pingd params host_list=192.168.0.69 > name=pingdnet1 op monitor interval=15s timeout=5s > primitive pingdnet2 ocf:pacemaker:pingd params host_list=192.168.0.68 > name=pingdnet2 op monitor interval=15s timeout=5s > primitive apache lsb::httpd op monitor interval=15s > location apache-ping-constraint apache rule -inf: not_defined pingdnet1 or > pingdnet1 lte 0 > location apache-ping-constraint2 apache rule -inf: not_defined pingdnet2 or > pingdnet2 lte 0 > order ping-then-apache inf: pingdnet1 pingdnet2 apache > ===============================================
_______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker