OK fine, I did not know about the kill RA. Thanks By the way, just a detail, but in this RA mysql script, the MYSQL_OPTIONS_LOCAL="-S $OCF_RESKEY_socket -O connect_timeout=1" uses -O which is deprecated (at least on RHEL6) , and the new syntax should be : MYSQL_OPTIONS_LOCAL="-S $OCF_RESKEY_socket --connect_timeout=1"
Thanks again Florian. Alain De : Florian Haas <[email protected]> A : General Linux-HA mailing list <[email protected]> Date : 13/10/2011 14:59 Objet : Re: [Linux-HA] Question on the OCF mysql RA Envoyé par : [email protected] On 2011-10-13 14:41, [email protected] wrote: > Hi, > > In the mysql RA script, we can see: > > # Spin waiting for the server to come up. > > # Let the CRM/LRM time us out if required > > start_wait=1 > while [ $start_wait = 1 ]; do > mysql_status > rc=$? > if [ $rc = $OCF_SUCCESS ]; then > start_wait=0 > > elif [ $rc != $OCF_NOT_RUNNING ]; then > ocf_log info "MySQL start failed: $rc" > return $rc > fi > sleep 2 > done > > but when the timeout on start configured in cib occurs, > what does Pacemaker to make this infinite loop ending ? The LRM kills the RA if it doesn't return before its timeout expires. Timeouts are treated like OCF_ERR_GENERIC, and if start-failure-is-fatal=true (default), then this means an immediate resource migration to another node. Florian -- Need help with High Availability? http://www.hastexo.com/now _______________________________________________ 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
