blob: 05813ba47cb918bd4eece9c5a010dc156fd2c0d4 [file] [log] [blame] [edit]
#
# AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: 0\n"
"POT-Creation-Date: 2017-05-08 11:19-0500\n"
"PO-Revision-Date: 2017-05-08 11:19-0500\n"
"Last-Translator: Automatically generated\n"
"Language-Team: None\n"
"MIME-Version: 1.0\n"
"Content-Type: application/x-publican; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
#, no-c-format
msgid "Cluster Resources"
msgstr ""
#. Tag: title
#, no-c-format
msgid "What is a Cluster Resource?"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Resource</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A resource is a service made highly available by a cluster. The simplest type of resource, a <emphasis>primitive</emphasis> resource, is described in this section. More complex forms, such as groups and clones, are described in later sections."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Every primitive resource has a <emphasis>resource agent</emphasis>. A resource agent is an external program that abstracts the service it provides and present a consistent view to the cluster."
msgstr ""
#. Tag: para
#, no-c-format
msgid "This allows the cluster to be agnostic about the resources it manages. The cluster doesn’t need to understand how the resource works because it relies on the resource agent to do the right thing when given a <literal>start</literal>, <literal>stop</literal> or <literal>monitor</literal> command. For this reason, it is crucial that resource agents are well-tested."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Typically, resource agents come in the form of shell scripts. However, they can be written using any technology (such as C, Python or Perl) that the author is comfortable with."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Resource Classes"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Resource</primary><secondary>class</secondary> </indexterm> <indexterm> <primary>class</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Pacemaker supports several classes of agents:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF"
msgstr ""
#. Tag: para
#, no-c-format
msgid "LSB"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Upstart"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Systemd"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Service"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Fencing"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Nagios Plugins"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Open Cluster Framework"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Resource</primary><secondary>OCF</secondary> </indexterm> <indexterm> <primary>OCF</primary> </indexterm> <indexterm> <primary>OCF</primary><secondary>Resources</secondary> </indexterm> <indexterm> <primary>Resources</primary> </indexterm> <indexterm> <primary>Open Cluster Framework</primary><secondary>Resources</secondary> </indexterm> <indexterm> <primary>Resources</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The OCF standard <footnote><para>See <ulink url=\"http://www.opencf.org/cgi-bin/viewcvs.cgi/specs/ra/resource-agent-api.txt?rev=HEAD\">http://www.opencf.org/cgi-bin/viewcvs.cgi/specs/ra/resource-agent-api.txt?rev=HEAD</ulink>  — at least as it relates to resource agents. The Pacemaker implementation has been somewhat extended from the OCF specs, but none of those changes are incompatible with the original OCF specification.</para></footnote> is basically an extension of the Linux Standard Base conventions for init scripts to:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "support parameters,"
msgstr ""
#. Tag: para
#, no-c-format
msgid "make them self-describing, and"
msgstr ""
#. Tag: para
#, no-c-format
msgid "make them extensible"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF specs have strict definitions of the exit codes that actions must return. <footnote><para> The resource-agents source code includes the <literal>ocf-tester</literal> script, which can be useful in this regard. </para></footnote>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The cluster follows these specifications exactly, and giving the wrong exit code will cause the cluster to behave in ways you will likely find puzzling and annoying. In particular, the cluster needs to distinguish a completely stopped resource from one which is in some erroneous and indeterminate state."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Parameters are passed to the resource agent as environment variables, with the special prefix <literal>OCF_RESKEY_</literal>. So, a parameter which the user thinks of as <literal>ip</literal> will be passed to the resource agent as <literal>OCF_RESKEY_ip</literal>. The number and purpose of the parameters is left to the resource agent; however, the resource agent should use the <literal>meta-data</literal> command to advertise any that it supports."
msgstr ""
#. Tag: para
#, no-c-format
msgid "The OCF class is the most preferred as it is an industry standard, highly flexible (allowing parameters to be passed to agents in a non-positional manner) and self-describing."
msgstr ""
#. Tag: para
#, no-c-format
msgid "For more information, see the <ulink url=\"http://www.linux-ha.org/wiki/OCF_Resource_Agents\">reference</ulink> and <xref linkend=\"ap-ocf\" />."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Linux Standard Base"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Resource</primary><secondary>LSB</secondary> </indexterm> <indexterm> <primary>LSB</primary> </indexterm> <indexterm> <primary>LSB</primary><secondary>Resources</secondary> </indexterm> <indexterm> <primary>Resources</primary> </indexterm> <indexterm> <primary>Linux Standard Base</primary><secondary>Resources</secondary> </indexterm> <indexterm> <primary>Resources</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "LSB resource agents are those found in <literal>/etc/init.d</literal>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Generally, they are provided by the OS distribution and, in order to be used with the cluster, they must conform to the LSB Spec. <footnote><para> See <ulink url=\"http://refspecs.linux-foundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html\">http://refspecs.linux-foundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html</ulink> for the LSB Spec as it relates to init scripts. </para></footnote>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Many distributions claim LSB compliance but ship with broken init scripts. For details on how to check whether your init script is LSB-compatible, see <xref linkend=\"ap-lsb\" />. Common problematic violations of the LSB standard include:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Not implementing the status operation at all"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Not observing the correct exit status codes for <literal>start/stop/status</literal> actions"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Starting a started resource returns an error"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Stopping a stopped resource returns an error"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Remember to make sure the computer is <emphasis>not</emphasis> configured to start any services at boot time — that should be controlled by the cluster."
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Resource</primary><secondary>Systemd</secondary> </indexterm> <indexterm> <primary>Systemd</primary> </indexterm> <indexterm> <primary>Systemd</primary><secondary>Resources</secondary> </indexterm> <indexterm> <primary>Resources</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Some newer distributions have replaced the old <ulink url=\"http://en.wikipedia.org/wiki/Init#SysV-style\">\"SysV\"</ulink> style of initialization daemons and scripts with an alternative called <ulink url=\"http://www.freedesktop.org/wiki/Software/systemd\">Systemd</ulink>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Pacemaker is able to manage these services <emphasis>if they are present</emphasis>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Instead of init scripts, systemd has <emphasis>unit files</emphasis>. Generally, the services (unit files) are provided by the OS distribution, but there are online guides for converting from init scripts. <footnote><para>For example, <ulink url=\"http://0pointer.de/blog/projects/systemd-for-admins-3.html\">http://0pointer.de/blog/projects/systemd-for-admins-3.html</ulink></para></footnote>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Resource</primary><secondary>Upstart</secondary> </indexterm> <indexterm> <primary>Upstart</primary> </indexterm> <indexterm> <primary>Upstart</primary><secondary>Resources</secondary> </indexterm> <indexterm> <primary>Resources</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Some newer distributions have replaced the old <ulink url=\"http://en.wikipedia.org/wiki/Init#SysV-style\">\"SysV\"</ulink> style of initialization daemons (and scripts) with an alternative called <ulink url=\"http://upstart.ubuntu.com/\">Upstart</ulink>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Instead of init scripts, upstart has <emphasis>jobs</emphasis>. Generally, the services (jobs) are provided by the OS distribution."
msgstr ""
#. Tag: title
#, no-c-format
msgid "System Services"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Resource</primary><secondary>System Services</secondary> </indexterm> <indexterm> <primary>System Services</primary> </indexterm> <indexterm> <primary>System Service</primary><secondary>Resources</secondary> </indexterm> <indexterm> <primary>Resources</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Since there are various types of system services (<literal>systemd</literal>, <literal>upstart</literal>, and <literal>lsb</literal>), Pacemaker supports a special <literal>service</literal> alias which intelligently figures out which one applies to a given cluster node."
msgstr ""
#. Tag: para
#, no-c-format
msgid "This is particularly useful when the cluster contains a mix of <literal>systemd</literal>, <literal>upstart</literal>, and <literal>lsb</literal>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "In order, Pacemaker will try to find the named service as:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "an LSB init script"
msgstr ""
#. Tag: para
#, no-c-format
msgid "a Systemd unit file"
msgstr ""
#. Tag: para
#, no-c-format
msgid "an Upstart job"
msgstr ""
#. Tag: title
#, no-c-format
msgid "STONITH"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Resource</primary><secondary>STONITH</secondary> </indexterm> <indexterm> <primary>STONITH</primary> </indexterm> <indexterm> <primary>STONITH</primary><secondary>Resources</secondary> </indexterm> <indexterm> <primary>Resources</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The STONITH class is used exclusively for fencing-related resources. This is discussed later in <xref linkend=\"ch-stonith\" />."
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Resource</primary><secondary>Nagios Plugins</secondary> </indexterm> <indexterm> <primary>Nagios Plugins</primary> </indexterm> <indexterm> <primary>Nagios Plugins</primary><secondary>Resources</secondary> </indexterm> <indexterm> <primary>Resources</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Nagios Plugins <footnote><para>The project has two independent forks, hosted at <ulink url=\"https://www.nagios-plugins.org/\">https://www.nagios-plugins.org/</ulink> and <ulink url=\"https://www.monitoring-plugins.org/\">https://www.monitoring-plugins.org/</ulink>. Output from both projects' plugins is similar, so plugins from either project can be used with pacemaker.</para></footnote> allow us to monitor services on remote hosts."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Pacemaker is able to do remote monitoring with the plugins <emphasis>if they are present</emphasis>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "A common use case is to configure them as resources belonging to a resource container (usually a virtual machine), and the container will be restarted if any of them has failed. Another use is to configure them as ordinary resources to be used for monitoring hosts or services via the network."
msgstr ""
#. Tag: para
#, no-c-format
msgid "The supported parameters are same as the long options of the plugin."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Resource Properties"
msgstr ""
#. Tag: para
#, no-c-format
msgid "These values tell the cluster which resource agent to use for the resource, where to find that resource agent and what standards it conforms to."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Properties of a Primitive Resource"
msgstr ""
#. Tag: entry
#, no-c-format
msgid "Field"
msgstr ""
#. Tag: entry
#, no-c-format
msgid "Description"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>id</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Your name for the resource <indexterm> <primary>id</primary><secondary>Resource</secondary> </indexterm> <indexterm> <primary>Resource</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Property</secondary><tertiary>id</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>id</secondary> </indexterm> <indexterm> <primary>id</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>class</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The standard the resource agent conforms to. Allowed values: <literal>lsb</literal>, <literal>nagios</literal>, <literal>ocf</literal>, <literal>service</literal>, <literal>stonith</literal>, <literal>systemd</literal>, <literal>upstart</literal> <indexterm> <primary>class</primary><secondary>Resource</secondary> </indexterm> <indexterm> <primary>Resource</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Property</secondary><tertiary>class</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>class</secondary> </indexterm> <indexterm> <primary>class</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>type</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The name of the Resource Agent you wish to use. E.g. <literal>IPaddr</literal> or <literal>Filesystem</literal> <indexterm> <primary>type</primary><secondary>Resource</secondary> </indexterm> <indexterm> <primary>Resource</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Property</secondary><tertiary>type</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>type</secondary> </indexterm> <indexterm> <primary>type</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>provider</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The OCF spec allows multiple vendors to supply the same resource agent. To use the OCF resource agents supplied by the Heartbeat project, you would specify <literal>heartbeat</literal> here. <indexterm> <primary>provider</primary><secondary>Resource</secondary> </indexterm> <indexterm> <primary>Resource</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Property</secondary><tertiary>provider</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>provider</secondary> </indexterm> <indexterm> <primary>provider</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The XML definition of a resource can be queried with the <literal>crm_resource</literal> tool. For example:"
msgstr ""
#. Tag: screen
#, no-c-format
msgid "# crm_resource --resource Email --query-xml"
msgstr ""
#. Tag: para
#, no-c-format
msgid "might produce:"
msgstr ""
#. Tag: title
#, no-c-format
msgid "A system resource definition"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;primitive id=\"Email\" class=\"service\" type=\"exim\"/&gt;"
msgstr ""
#. Tag: para
#, no-c-format
msgid "One of the main drawbacks to system services (LSB, systemd or Upstart) resources is that they do not allow any parameters!"
msgstr ""
#. Tag: title
#, no-c-format
msgid "An OCF resource definition"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\"&gt;\n"
" &lt;instance_attributes id=\"Public-IP-params\"&gt;\n"
" &lt;nvpair id=\"Public-IP-ip\" name=\"ip\" value=\"192.0.2.2\"/&gt;\n"
" &lt;/instance_attributes&gt;\n"
"&lt;/primitive&gt;"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Resource Options"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources have two types of options: <emphasis>meta-attributes</emphasis> and <emphasis>instance attributes</emphasis>. Meta-attributes apply to any type of resource, while instance attributes are specific to each resource agent."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Resource Meta-Attributes"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Meta-attributes are used by the cluster to decide how a resource should behave and can be easily set using the <literal>--meta</literal> option of the <literal>crm_resource</literal> command."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Meta-attributes of a Primitive Resource"
msgstr ""
#. Tag: entry
#, no-c-format
msgid "Default"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>priority</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "0"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If not all resources can be active, the cluster will stop lower priority resources in order to keep higher priority ones active. <indexterm> <primary>priority</primary><secondary>Resource Option</secondary> </indexterm> <indexterm> <primary>Resource Option</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Option</secondary><tertiary>priority</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>priority</secondary> </indexterm> <indexterm> <primary>priority</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>target-role</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Started"
msgstr ""
#. Tag: para
#, no-c-format
msgid "What state should the cluster attempt to keep this resource in? Allowed values:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>Stopped:</literal> Force the resource to be stopped"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>Started:</literal> Allow the resource to be started (and in the case of <link linkend=\"s-resource-multistate\">multi-state</link> resources, promoted to master if appropriate)"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>Slave:</literal> Allow the resource to be started, but only in Slave mode if the resource is <link linkend=\"s-resource-multistate\">multi-state</link>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>Master:</literal> Equivalent to <literal>Started</literal> <indexterm> <primary>target-role</primary><secondary>Resource Option</secondary> </indexterm> <indexterm> <primary>Resource Option</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Option</secondary><tertiary>target-role</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>target-role</secondary> </indexterm> <indexterm> <primary>target-role</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>is-managed</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "TRUE"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Is the cluster allowed to start and stop the resource? Allowed values: <literal>true</literal>, <literal>false</literal> <indexterm> <primary>is-managed</primary><secondary>Resource Option</secondary> </indexterm> <indexterm> <primary>Resource Option</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Option</secondary><tertiary>is-managed</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>is-managed</secondary> </indexterm> <indexterm> <primary>is-managed</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>resource-stickiness</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "value of <literal>resource-stickiness</literal> in the <literal>rsc_defaults</literal> section"
msgstr ""
#. Tag: para
#, no-c-format
msgid "How much does the resource prefer to stay where it is? <indexterm> <primary>resource-stickiness</primary><secondary>Resource Option</secondary> </indexterm> <indexterm> <primary>Resource Option</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Option</secondary><tertiary>resource-stickiness</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>resource-stickiness</secondary> </indexterm> <indexterm> <primary>resource-stickiness</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>requires</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "fencing (unless <literal>stonith-enabled</literal> is <literal>false</literal> or <literal>class</literal> is <literal>stonith</literal>, in which case it defaults to quorum)"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Conditions under which the resource can be started <emphasis>(since 1.1.8)</emphasis> Allowed values:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>nothing:</literal> can always be started"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>quorum:</literal> The cluster can only start this resource if a majority of the configured nodes are active"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>fencing:</literal> The cluster can only start this resource if a majority of the configured nodes are active <emphasis>and</emphasis> any failed or unknown nodes have been powered off"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>unfencing:</literal> The cluster can only start this resource if a majority of the configured nodes are active <emphasis>and</emphasis> any failed or unknown nodes have been powered off <emphasis>and</emphasis> only on nodes that have been <emphasis>unfenced</emphasis> <emphasis>(since 1.1.9)</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>requires</primary><secondary>Resource Option</secondary> </indexterm> <indexterm> <primary>Resource Option</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Option</secondary><tertiary>requires</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>requires</secondary> </indexterm> <indexterm> <primary>requires</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>migration-threshold</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "INFINITY"
msgstr ""
#. Tag: para
#, no-c-format
msgid "How many failures may occur for this resource on a node, before this node is marked ineligible to host this resource. A value of 0 indicates that this feature is disabled (the node will never be marked ineligible); by constrast, the cluster treats INFINITY (the default) as a very large but finite number. This option has an effect only if the failed operation has on-fail=restart (the default), and additionally for failed start operations, if the cluster property start-failure-is-fatal is false. <indexterm> <primary>migration-threshold</primary><secondary>Resource Option</secondary> </indexterm> <indexterm> <primary>Resource Option</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Option</secondary><tertiary>migration-threshold</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>migration-threshold</secondary> </indexterm> <indexterm> <primary>migration-threshold</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>failure-timeout</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "How many seconds to wait before acting as if the failure had not occurred, and potentially allowing the resource back to the node on which it failed. A value of 0 indicates that this feature is disabled. As with any time-based actions, this is not guaranteed to be checked more frequently than the value of <literal>cluster-recheck-interval</literal> (see <xref linkend=\"s-cluster-options\" />). <indexterm> <primary>failure-timeout</primary><secondary>Resource Option</secondary> </indexterm> <indexterm> <primary>Resource Option</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Option</secondary><tertiary>failure-timeout</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>failure-timeout</secondary> </indexterm> <indexterm> <primary>failure-timeout</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>multiple-active</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "stop_start"
msgstr ""
#. Tag: para
#, no-c-format
msgid "What should the cluster do if it ever finds the resource active on more than one node? Allowed values:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>block:</literal> mark the resource as unmanaged"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>stop_only:</literal> stop all active instances and leave them that way"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>stop_start:</literal> stop all active instances and start the resource in one location only"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>multiple-active</primary><secondary>Resource Option</secondary> </indexterm> <indexterm> <primary>Resource Option</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Option</secondary><tertiary>multiple-active</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>multiple-active</secondary> </indexterm> <indexterm> <primary>multiple-active</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>allow-migrate</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "TRUE for ocf:pacemaker:remote resources, FALSE otherwise"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Whether the cluster should try to \"live migrate\" this resource when it needs to be moved (see <xref linkend=\"s-migrating-resources\" />)"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>remote-node</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The name of the Pacemaker Remote guest node this resource is associated with, if any. If specified, this both enables the resource as a guest node and defines the unique name used to identify the guest node. The guest must be configured to run the Pacemaker Remote daemon when it is started. <literal>WARNING:</literal> This value cannot overlap with any resource or node IDs. <emphasis>(since 1.1.9)</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>remote-port</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "3121"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If <literal>remote-node</literal> is specified, the port on the guest used for its Pacemaker Remote connection. The Pacemaker Remote daemon on the guest must be configured to listen on this port. <emphasis>(since 1.1.9)</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>remote-addr</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "value of <literal>remote-node</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If <literal>remote-node</literal> is specified, the IP address or hostname used to connect to the guest via Pacemaker Remote. The Pacemaker Remote daemon on the guest must be configured to accept connections on this address. <emphasis>(since 1.1.9)</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>remote-connect-timeout</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "60s"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If <literal>remote-node</literal> is specified, how long before a pending guest connection will time out. <emphasis>(since 1.1.10)</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "As an example of setting resource options, if you performed the following commands on an LSB Email resource:"
msgstr ""
#. Tag: screen
#, no-c-format
msgid "# crm_resource --meta --resource Email --set-parameter priority --parameter-value 100\n"
"# crm_resource -m -r Email -p multiple-active -v block"
msgstr ""
#. Tag: para
#, no-c-format
msgid "the resulting resource definition might be:"
msgstr ""
#. Tag: title
#, no-c-format
msgid "An LSB resource with cluster options"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;primitive id=\"Email\" class=\"lsb\" type=\"exim\"&gt;\n"
" &lt;meta_attributes id=\"Email-meta_attributes\"&gt;\n"
" &lt;nvpair id=\"Email-meta_attributes-priority\" name=\"priority\" value=\"100\"/&gt;\n"
" &lt;nvpair id=\"Email-meta_attributes-multiple-active\" name=\"multiple-active\" value=\"block\"/&gt;\n"
" &lt;/meta_attributes&gt;\n"
"&lt;/primitive&gt;"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Setting Global Defaults for Resource Meta-Attributes"
msgstr ""
#. Tag: para
#, no-c-format
msgid "To set a default value for a resource option, add it to the <literal>rsc_defaults</literal> section with <literal>crm_attribute</literal>. For example,"
msgstr ""
#. Tag: screen
#, no-c-format
msgid "# crm_attribute --type rsc_defaults --name is-managed --update false"
msgstr ""
#. Tag: para
#, no-c-format
msgid "would prevent the cluster from starting or stopping any of the resources in the configuration (unless of course the individual resources were specifically enabled by having their <literal>is-managed</literal> set to <literal>true</literal>)."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Resource Instance Attributes"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The resource agents of some resource classes (lsb, systemd and upstart <emphasis>not</emphasis> among them) can be given parameters which determine how they behave and which instance of a service they control."
msgstr ""
#. Tag: para
#, no-c-format
msgid "If your resource agent supports parameters, you can add them with the <literal>crm_resource</literal> command. For example,"
msgstr ""
#. Tag: screen
#, no-c-format
msgid "# crm_resource --resource Public-IP --set-parameter ip --parameter-value 192.0.2.2"
msgstr ""
#. Tag: para
#, no-c-format
msgid "would create an entry in the resource like this:"
msgstr ""
#. Tag: title
#, no-c-format
msgid "An example OCF resource with instance attributes"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\"&gt;\n"
" &lt;instance_attributes id=\"params-public-ip\"&gt;\n"
" &lt;nvpair id=\"public-ip-addr\" name=\"ip\" value=\"192.0.2.2\"/&gt;\n"
" &lt;/instance_attributes&gt;\n"
"&lt;/primitive&gt;"
msgstr ""
#. Tag: para
#, no-c-format
msgid "For an OCF resource, the result would be an environment variable called <literal>OCF_RESKEY_ip</literal> with a value of <literal>192.0.2.2</literal>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "The list of instance attributes supported by an OCF resource agent can be found by calling the resource agent with the <literal>meta-data</literal> command. The output contains an XML description of all the supported attributes, their purpose and default values."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Displaying the metadata for the Dummy resource agent template"
msgstr ""
#. Tag: screen
#, no-c-format
msgid "# export OCF_ROOT=/usr/lib/ocf\n"
"# $OCF_ROOT/resource.d/pacemaker/Dummy meta-data"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;?xml version=\"1.0\"?&gt;\n"
"&lt;!DOCTYPE resource-agent SYSTEM \"ra-api-1.dtd\"&gt;\n"
"&lt;resource-agent name=\"Dummy\" version=\"1.0\"&gt;\n"
"&lt;version&gt;1.0&lt;/version&gt;\n"
"\n"
"&lt;longdesc&gt;\n"
"This is a Dummy Resource Agent. It does absolutely nothing except\n"
"keep track of whether its running or not.\n"
"Its purpose in life is for testing and to serve as a template for RA writers.\n"
"\n"
"NB: Please pay attention to the timeouts specified in the actions\n"
"section below. They should be meaningful for the kind of resource\n"
"the agent manages. They should be the minimum advised timeouts,\n"
"but they shouldn't/cannot cover _all_ possible resource\n"
"instances. So, try to be neither overly generous nor too stingy,\n"
"but moderate. The minimum timeouts should never be below 10 seconds.\n"
"&lt;/longdesc&gt;\n"
"&lt;shortdesc&gt;Example stateless resource agent&lt;/shortdesc&gt;\n"
"\n"
"&lt;parameters&gt;\n"
"&lt;parameter name=\"state\" unique=\"1\"&gt;\n"
"&lt;longdesc&gt;\n"
"Location to store the resource state in.\n"
"&lt;/longdesc&gt;\n"
"&lt;shortdesc&gt;State file&lt;/shortdesc&gt;\n"
"&lt;content type=\"string\" default=\"/var/run/Dummy-default.state\" /&gt;\n"
"&lt;/parameter&gt;\n"
"\n"
"&lt;parameter name=\"fake\" unique=\"0\"&gt;\n"
"&lt;longdesc&gt;\n"
"Fake attribute that can be changed to cause a reload\n"
"&lt;/longdesc&gt;\n"
"&lt;shortdesc&gt;Fake attribute that can be changed to cause a reload&lt;/shortdesc&gt;\n"
"&lt;content type=\"string\" default=\"dummy\" /&gt;\n"
"&lt;/parameter&gt;\n"
"\n"
"&lt;parameter name=\"op_sleep\" unique=\"1\"&gt;\n"
"&lt;longdesc&gt;\n"
"Number of seconds to sleep during operations. This can be used to test how\n"
"the cluster reacts to operation timeouts.\n"
"&lt;/longdesc&gt;\n"
"&lt;shortdesc&gt;Operation sleep duration in seconds.&lt;/shortdesc&gt;\n"
"&lt;content type=\"string\" default=\"0\" /&gt;\n"
"&lt;/parameter&gt;\n"
"\n"
"&lt;/parameters&gt;\n"
"\n"
"&lt;actions&gt;\n"
"&lt;action name=\"start\" timeout=\"20\" /&gt;\n"
"&lt;action name=\"stop\" timeout=\"20\" /&gt;\n"
"&lt;action name=\"monitor\" timeout=\"20\" interval=\"10\" depth=\"0\"/&gt;\n"
"&lt;action name=\"reload\" timeout=\"20\" /&gt;\n"
"&lt;action name=\"migrate_to\" timeout=\"20\" /&gt;\n"
"&lt;action name=\"migrate_from\" timeout=\"20\" /&gt;\n"
"&lt;action name=\"validate-all\" timeout=\"20\" /&gt;\n"
"&lt;action name=\"meta-data\" timeout=\"5\" /&gt;\n"
"&lt;/actions&gt;\n"
"&lt;/resource-agent&gt;"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Resource Operations"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Resource</primary><secondary>Action</secondary> </indexterm> <indexterm> <primary>Action</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>Operations</emphasis> are actions the cluster can perform on a resource by calling the resource agent. Resource agents must support certain common operations such as start, stop and monitor, and may implement any others."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Some operations are generated by the cluster itself, for example, stopping and starting resources as needed."
msgstr ""
#. Tag: para
#, no-c-format
msgid "You can configure operations in the cluster configuration. As an example, by default the cluster will <emphasis>not</emphasis> ensure your resources stay healthy once they are started. <footnote><para>Currently, anyway. Automatic monitoring operations may be added in a future version of Pacemaker.</para></footnote> To instruct the cluster to do this, you need to add a <literal>monitor</literal> operation to the resource’s definition."
msgstr ""
#. Tag: title
#, no-c-format
msgid "An OCF resource with a recurring health check"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\"&gt;\n"
" &lt;operations&gt;\n"
" &lt;op id=\"public-ip-check\" name=\"monitor\" interval=\"60s\"/&gt;\n"
" &lt;/operations&gt;\n"
" &lt;instance_attributes id=\"params-public-ip\"&gt;\n"
" &lt;nvpair id=\"public-ip-addr\" name=\"ip\" value=\"192.0.2.2\"/&gt;\n"
" &lt;/instance_attributes&gt;\n"
"&lt;/primitive&gt;"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Properties of an Operation"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A unique name for the operation. <indexterm> <primary>id</primary><secondary>Action Property</secondary> </indexterm> <indexterm> <primary>Action Property</primary> </indexterm> <indexterm> <primary>Action</primary><secondary>Property</secondary><tertiary>id</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>id</secondary> </indexterm> <indexterm> <primary>id</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>name</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The action to perform. This can be any action supported by the agent; common values include <literal>monitor</literal>, <literal>start</literal>, and <literal>stop</literal>. <indexterm> <primary>name</primary><secondary>Action Property</secondary> </indexterm> <indexterm> <primary>Action Property</primary> </indexterm> <indexterm> <primary>Action</primary><secondary>Property</secondary><tertiary>name</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>name</secondary> </indexterm> <indexterm> <primary>name</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>interval</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "How frequently (in seconds) to perform the operation. A value of 0 means never. A positive value defines a <emphasis>recurring action</emphasis>, which is typically used with <link linkend=\"s-resource-monitoring\">monitor</link>. <indexterm> <primary>interval</primary><secondary>Action Property</secondary> </indexterm> <indexterm> <primary>Action Property</primary> </indexterm> <indexterm> <primary>Action</primary><secondary>Property</secondary><tertiary>interval</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>interval</secondary> </indexterm> <indexterm> <primary>interval</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>timeout</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "How long to wait before declaring the action has failed <indexterm> <primary>timeout</primary><secondary>Action Property</secondary> </indexterm> <indexterm> <primary>Action Property</primary> </indexterm> <indexterm> <primary>Action</primary><secondary>Property</secondary><tertiary>timeout</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>timeout</secondary> </indexterm> <indexterm> <primary>timeout</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>on-fail</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "restart <emphasis>(except for stop operations, which default to</emphasis> fence <emphasis>when STONITH is enabled and</emphasis> block <emphasis>otherwise)</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The action to take if this action ever fails. Allowed values:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>ignore:</literal> Pretend the resource did not fail."
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>block:</literal> Don’t perform any further operations on the resource."
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>stop:</literal> Stop the resource and do not start it elsewhere."
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>restart:</literal> Stop the resource and start it again (possibly on a different node)."
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>fence:</literal> STONITH the node on which the resource failed."
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>standby:</literal> Move <emphasis>all</emphasis> resources away from the node on which the resource failed."
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>on-fail</primary><secondary>Action Property</secondary> </indexterm> <indexterm> <primary>Action Property</primary> </indexterm> <indexterm> <primary>Action</primary><secondary>Property</secondary><tertiary>on-fail</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>on-fail</secondary> </indexterm> <indexterm> <primary>on-fail</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>enabled</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If <literal>false</literal>, ignore this operation definition. This is typically used to pause a particular recurring monitor operation; for instance, it can complement the respective resource being unmanaged (<literal>is-managed=false</literal>), as this alone will <link linkend=\"s-monitoring-unmanaged\">not block any configured monitoring</link>. Disabling the operation does not suppress all actions of the given type. Allowed values: <literal>true</literal>, <literal>false</literal>. <indexterm> <primary>enabled</primary><secondary>Action Property</secondary> </indexterm> <indexterm> <primary>Action Property</primary> </indexterm> <indexterm> <primary>Action</primary><secondary>Property</secondary><tertiary>enabled</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>enabled</secondary> </indexterm> <indexterm> <primary>enabled</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>record-pending</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "FALSE"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If <literal>true</literal>, the intention to perform the operation is recorded so that GUIs and CLI tools can indicate that an operation is in progress. This is best set as an <emphasis>operation default</emphasis> (see next section). Allowed values: <literal>true</literal>, <literal>false</literal>. <indexterm> <primary>enabled</primary><secondary>Action Property</secondary> </indexterm> <indexterm> <primary>Action Property</primary> </indexterm> <indexterm> <primary>Action</primary><secondary>Property</secondary><tertiary>enabled</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>enabled</secondary> </indexterm> <indexterm> <primary>enabled</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>role</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Run the operation only on node(s) that the cluster thinks should be in the specified role. This only makes sense for recurring monitor operations. Allowed (case-sensitive) values: <literal>Stopped</literal>, <literal>Started</literal>, and in the case of <link linkend=\"s-resource-multistate\">multi-state</link> resources, <literal>Slave</literal> and <literal>Master</literal>. <indexterm> <primary>role</primary><secondary>Action Property</secondary> </indexterm> <indexterm> <primary>Action Property</primary> </indexterm> <indexterm> <primary>Action</primary><secondary>Property</secondary><tertiary>role</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>role</secondary> </indexterm> <indexterm> <primary>role</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Monitoring Resources for Failure"
msgstr ""
#. Tag: para
#, no-c-format
msgid "When Pacemaker first starts a resource, it runs one-time monitor operations (referred to as <emphasis>probes</emphasis>) to ensure the resource is running where it’s supposed to be, and not running where it’s not supposed to be. (This behavior can be affected by the <literal>resource-discovery</literal> location constraint property.)"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Other than those initial probes, Pacemaker will not (by default) check that the resource continues to stay healthy. As in the example above, you must configure monitor operations explicitly to perform these checks."
msgstr ""
#. Tag: para
#, no-c-format
msgid "By default, a monitor operation will ensure that the resource is running where it is supposed to. The <literal>target-role</literal> property can be used for further checking."
msgstr ""
#. Tag: para
#, no-c-format
msgid "For example, if a resource has one monitor operation with <literal>interval=10 role=Started</literal> and a second monitor operation with <literal>interval=11 role=Stopped</literal>, the cluster will run the first monitor on any nodes it thinks <emphasis>should</emphasis> be running the resource, and the second monitor on any nodes that it thinks <emphasis>should not</emphasis> be running the resource (for the truly paranoid, who want to know when an administrator manually starts a service by mistake)."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Monitoring Resources When Administration is Disabled"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Recurring monitor operations behave differently under various administrative settings:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "When a resource is unmanaged (by setting <literal>is-managed=false</literal>): No monitors will be stopped."
msgstr ""
#. Tag: para
#, no-c-format
msgid "If the unmanaged resource is stopped on a node where the cluster thinks it should be running, the cluster will detect and report that it is not, but it will not consider the monitor failed, and will not try to start the resource until it is managed again."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Starting the unmanaged resource on a different node is strongly discouraged and will at least cause the cluster to consider the resource failed, and may require the resource’s <literal>target-role</literal> to be set to <literal>Stopped</literal> then <literal>Started</literal> to be recovered."
msgstr ""
#. Tag: para
#, no-c-format
msgid "When a node is put into standby: All resources will be moved away from the node, and all monitor operations will be stopped on the node, except those with <literal>role=Stopped</literal>. Monitor operations with <literal>role=Stopped</literal> will be started on the node if appropriate."
msgstr ""
#. Tag: para
#, no-c-format
msgid "When the cluster is put into maintenance mode: All resources will be marked as unmanaged. All monitor operations will be stopped, except those with <literal>role=Stopped</literal>. As with single unmanaged resources, starting a resource on a node other than where the cluster expects it to be will cause problems."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Setting Global Defaults for Operations"
msgstr ""
#. Tag: para
#, no-c-format
msgid "You can change the global default values for operation properties in a given cluster. These are defined in an <literal>op_defaults</literal> section of the CIB’s <literal>configuration</literal> section, and can be set with <literal>crm_attribute</literal>. For example,"
msgstr ""
#. Tag: screen
#, no-c-format
msgid "# crm_attribute --type op_defaults --name timeout --update 20s"
msgstr ""
#. Tag: para
#, no-c-format
msgid "would default each operation’s <literal>timeout</literal> to 20 seconds. If an operation’s definition also includes a value for <literal>timeout</literal>, then that value would be used for that operation instead."
msgstr ""
#. Tag: title
#, no-c-format
msgid "When Implicit Operations Take a Long Time"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The cluster will always perform a number of implicit operations: <literal>start</literal>, <literal>stop</literal> and a non-recurring <literal>monitor</literal> operation used at startup to check whether the resource is already active. If one of these is taking too long, then you can create an entry for them and specify a longer timeout."
msgstr ""
#. Tag: title
#, no-c-format
msgid "An OCF resource with custom timeouts for its implicit actions"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\"&gt;\n"
" &lt;operations&gt;\n"
" &lt;op id=\"public-ip-startup\" name=\"monitor\" interval=\"0\" timeout=\"90s\"/&gt;\n"
" &lt;op id=\"public-ip-start\" name=\"start\" interval=\"0\" timeout=\"180s\"/&gt;\n"
" &lt;op id=\"public-ip-stop\" name=\"stop\" interval=\"0\" timeout=\"15min\"/&gt;\n"
" &lt;/operations&gt;\n"
" &lt;instance_attributes id=\"params-public-ip\"&gt;\n"
" &lt;nvpair id=\"public-ip-addr\" name=\"ip\" value=\"192.0.2.2\"/&gt;\n"
" &lt;/instance_attributes&gt;\n"
"&lt;/primitive&gt;"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Multiple Monitor Operations"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Provided no two operations (for a single resource) have the same name and interval, you can have as many monitor operations as you like. In this way, you can do a superficial health check every minute and progressively more intense ones at higher intervals."
msgstr ""
#. Tag: para
#, no-c-format
msgid "To tell the resource agent what kind of check to perform, you need to provide each monitor with a different value for a common parameter. The OCF standard creates a special parameter called <literal>OCF_CHECK_LEVEL</literal> for this purpose and dictates that it is \"made available to the resource agent without the normal <literal>OCF_RESKEY</literal> prefix\"."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Whatever name you choose, you can specify it by adding an <literal>instance_attributes</literal> block to the <literal>op</literal> tag. It is up to each resource agent to look for the parameter and decide how to use it."
msgstr ""
#. Tag: title
#, no-c-format
msgid "An OCF resource with two recurring health checks, performing different levels of checks specified via <literal>OCF_CHECK_LEVEL</literal>."
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\"&gt;\n"
" &lt;operations&gt;\n"
" &lt;op id=\"public-ip-health-60\" name=\"monitor\" interval=\"60\"&gt;\n"
" &lt;instance_attributes id=\"params-public-ip-depth-60\"&gt;\n"
" &lt;nvpair id=\"public-ip-depth-60\" name=\"OCF_CHECK_LEVEL\" value=\"10\"/&gt;\n"
" &lt;/instance_attributes&gt;\n"
" &lt;/op&gt;\n"
" &lt;op id=\"public-ip-health-300\" name=\"monitor\" interval=\"300\"&gt;\n"
" &lt;instance_attributes id=\"params-public-ip-depth-300\"&gt;\n"
" &lt;nvpair id=\"public-ip-depth-300\" name=\"OCF_CHECK_LEVEL\" value=\"20\"/&gt;\n"
" &lt;/instance_attributes&gt;\n"
" &lt;/op&gt;\n"
" &lt;/operations&gt;\n"
" &lt;instance_attributes id=\"params-public-ip\"&gt;\n"
" &lt;nvpair id=\"public-ip-level\" name=\"ip\" value=\"192.0.2.2\"/&gt;\n"
" &lt;/instance_attributes&gt;\n"
"&lt;/primitive&gt;"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Disabling a Monitor Operation"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The easiest way to stop a recurring monitor is to just delete it. However, there can be times when you only want to disable it temporarily. In such cases, simply add <literal>enabled=\"false\"</literal> to the operation’s definition."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Example of an OCF resource with a disabled health check"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\"&gt;\n"
" &lt;operations&gt;\n"
" &lt;op id=\"public-ip-check\" name=\"monitor\" interval=\"60s\" enabled=\"false\"/&gt;\n"
" &lt;/operations&gt;\n"
" &lt;instance_attributes id=\"params-public-ip\"&gt;\n"
" &lt;nvpair id=\"public-ip-addr\" name=\"ip\" value=\"192.0.2.2\"/&gt;\n"
" &lt;/instance_attributes&gt;\n"
"&lt;/primitive&gt;"
msgstr ""
#. Tag: para
#, no-c-format
msgid "This can be achieved from the command line by executing:"
msgstr ""
#. Tag: screen
#, no-c-format
msgid "# cibadmin --modify --xml-text '&lt;op id=\"public-ip-check\" enabled=\"false\"/&gt;'"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Once you’ve done whatever you needed to do, you can then re-enable it with"
msgstr ""
#. Tag: screen
#, no-c-format
msgid "# cibadmin --modify --xml-text '&lt;op id=\"public-ip-check\" enabled=\"true\"/&gt;'"
msgstr ""