Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > fd1445e4ec50ea0254985a386bb83a07 > files > 277

pacemaker-doc-1.1.1-1.fc13.i686.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>5.8. Setting Global Defaults for Operations</title><link rel="stylesheet" href="./Common_Content/css/default.css" type="text/css" /><meta name="generator" content="publican 1.6" /><meta name="package" content="Pacemaker-Pacemaker_Explained-1.1-en-US-1-0" /><link rel="home" href="index.html" title="Configuration Explained" /><link rel="up" href="ch-resources.html" title="Chapter 5. Cluster Resources" /><link rel="prev" href="s-resource-operations.html" title="5.7. Resource Operations" /><link rel="next" href="s-operation-monitor-multiple.html" title="5.8.2. Multiple Monitor Operations" /></head><body class=""><p id="title"><a class="left" href="https://fedorahosted.org/publican"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="https://fedorahosted.org/publican"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="s-resource-operations.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="s-operation-monitor-multiple.html"><strong>Next</strong></a></li></ul><div class="section" title="5.8. Setting Global Defaults for Operations"><div class="titlepage"><div><div><h2 class="title" id="s-operation-defaults">5.8. Setting Global Defaults for Operations</h2></div></div></div><div class="toc"><dl><dt><span class="section"><a href="s-operation-defaults.html#s-operation-timeouts">5.8.1. When Resources Take a Long Time to Start/Stop</a></span></dt><dt><span class="section"><a href="s-operation-monitor-multiple.html">5.8.2. Multiple Monitor Operations</a></span></dt><dt><span class="section"><a href="s-operation-monitor-disable.html">5.8.3. Disabling a Monitor Operation</a></span></dt></dl></div><div class="para">
			To set a default value for a operation option, simply add it to the op_defaults section with crm_attribute. Thus,
		</div><div class="para">
			<code class="command">crm_attribute --type op_defaults --attr-name timeout --attr-value 20s</code>
		</div><div class="para">
			would default each operation's timeout to 20 seconds. If an operation's definition also includes a value for <code class="literal">timeout</code>, then that value would be used instead (for that operation only).
		</div><div class="section" title="5.8.1. When Resources Take a Long Time to Start/Stop"><div class="titlepage"><div><div><h3 class="title" id="s-operation-timeouts">5.8.1. When Resources Take a Long Time to Start/Stop</h3></div></div></div><div class="para">
				There are a number of implicit operations that the cluster will always perform - start, stop and a non-recurring monitor operation (used at startup to check the resource isn't already active). If one of these is taking too long, then you can create an entry for them and simply specify a new value.
			</div><div class="example" id="id2549910"><div class="example-contents"><pre class="programlisting">

  &lt;primitive id="Public-IP" class="ocf" type="IPaddr" provider="heartbeat"&gt;
    &lt;operations&gt;
     &lt;op id="public-ip-startup" name="monitor" interval="0" timeout="90s"/&gt;
     &lt;op id="public-ip-start" name="start" interval="0" timeout="180s"/&gt;
     &lt;op id="public-ip-stop" name="stop" interval="0" timeout="15min"/&gt;
    &lt;/operations&gt;
    &lt;instance_attributes id="params-public-ip"&gt;
       &lt;nvpair id="public-ip-addr" name="ip" value="1.2.3.4"/&gt;
    &lt;/instance_attributes&gt;
  &lt;/primitive&gt;
</pre></div><h6>Example 5.7. An OCF resource with custom timeouts for its implicit actions</h6></div><br class="example-break" /></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="s-resource-operations.html"><strong>Prev</strong>5.7. Resource Operations</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="s-operation-monitor-multiple.html"><strong>Next</strong>5.8.2. Multiple Monitor Operations</a></li></ul></body></html>