blob: c61da6076f11c123041d0a5d6285f68341419440 [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 "Advanced Resource Types"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Groups - A Syntactic Shortcut"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Group Resources</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Groups</secondary> </indexterm> <indexterm> <primary>Groups</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "One of the most common elements of a cluster is a set of resources that need to be located together, start sequentially, and stop in the reverse order. To simplify this configuration, we support the concept of groups."
msgstr ""
#. Tag: title
#, no-c-format
msgid "A group of two primitive resources"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;group id=\"shortcut\"&gt;\n"
" &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;\n"
" &lt;primitive id=\"Email\" class=\"lsb\" type=\"exim\"/&gt;\n"
"&lt;/group&gt;"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Although the example above contains only two resources, there is no limit to the number of resources a group can contain. The example is also sufficient to explain the fundamental properties of a group:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources are started in the order they appear in (<literal>Public-IP</literal> first, then <literal>Email</literal>)"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources are stopped in the reverse order to which they appear in (<literal>Email</literal> first, then <literal>Public-IP</literal>)"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If a resource in the group can’t run anywhere, then nothing after that is allowed to run, too."
msgstr ""
#. Tag: para
#, no-c-format
msgid "If <literal>Public-IP</literal> can’t run anywhere, neither can <literal>Email</literal>;"
msgstr ""
#. Tag: para
#, no-c-format
msgid "but if <literal>Email</literal> can’t run anywhere, this does not affect <literal>Public-IP</literal> in any way"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The group above is logically equivalent to writing:"
msgstr ""
#. Tag: title
#, no-c-format
msgid "How the cluster sees a group resource"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;configuration&gt;\n"
" &lt;resources&gt;\n"
" &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;\n"
" &lt;primitive id=\"Email\" class=\"lsb\" type=\"exim\"/&gt;\n"
" &lt;/resources&gt;\n"
" &lt;constraints&gt;\n"
" &lt;rsc_colocation id=\"xxx\" rsc=\"Email\" with-rsc=\"Public-IP\" score=\"INFINITY\"/&gt;\n"
" &lt;rsc_order id=\"yyy\" first=\"Public-IP\" then=\"Email\"/&gt;\n"
" &lt;/constraints&gt;\n"
"&lt;/configuration&gt;"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Obviously as the group grows bigger, the reduced configuration effort can become significant."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Another (typical) example of a group is a DRBD volume, the filesystem mount, an IP address, and an application that uses them."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Group Properties"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Properties of a Group 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 "A unique name for the group <indexterm> <primary>id</primary><secondary>Group Resource Property</secondary> </indexterm> <indexterm> <primary>Group Resource Property</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Group Property</secondary><tertiary>id</tertiary> </indexterm> <indexterm> <primary>Group Property</primary><secondary>id</secondary> </indexterm> <indexterm> <primary>id</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Group Options"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Groups inherit the <literal>priority</literal>, <literal>target-role</literal>, and <literal>is-managed</literal> properties from primitive resources. See <xref linkend=\"s-resource-options\" /> for information about those properties."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Group Instance Attributes"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Groups have no instance attributes. However, any that are set for the group object will be inherited by the group’s children."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Group Contents"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Groups may only contain a collection of cluster resources (see <xref linkend=\"primitive-resource\" />). To refer to a child of a group resource, just use the child’s <literal>id</literal> instead of the group’s."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Group Constraints"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Although it is possible to reference a group’s children in constraints, it is usually preferable to reference the group itself."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Some constraints involving groups"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;constraints&gt;\n"
" &lt;rsc_location id=\"group-prefers-node1\" rsc=\"shortcut\" node=\"node1\" score=\"500\"/&gt;\n"
" &lt;rsc_colocation id=\"webserver-with-group\" rsc=\"Webserver\" with-rsc=\"shortcut\"/&gt;\n"
" &lt;rsc_order id=\"start-group-then-webserver\" first=\"Webserver\" then=\"shortcut\"/&gt;\n"
"&lt;/constraints&gt;"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Group Stickiness"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>resource-stickiness</primary><secondary>Groups</secondary> </indexterm> <indexterm> <primary>Groups</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Stickiness, the measure of how much a resource wants to stay where it is, is additive in groups. Every active resource of the group will contribute its stickiness value to the group’s total. So if the default <literal>resource-stickiness</literal> is 100, and a group has seven members, five of which are active, then the group as a whole will prefer its current location with a score of 500."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Clones - Resources That Get Active on Multiple Hosts"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Clone Resources</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Clones</secondary> </indexterm> <indexterm> <primary>Clones</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Clones were initially conceived as a convenient way to start multiple instances of an IP address resource and have them distributed throughout the cluster for load balancing. They have turned out to quite useful for a number of purposes including integrating with the Distributed Lock Manager (used by many cluster filesystems), the fencing subsystem, and OCFS2."
msgstr ""
#. Tag: para
#, no-c-format
msgid "You can clone any resource, provided the resource agent supports it."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Three types of cloned resources exist:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Anonymous"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Globally unique"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Stateful"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>Anonymous</emphasis> clones are the simplest. These behave completely identically everywhere they are running. Because of this, there can be only one copy of an anonymous clone active per machine."
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>Globally unique</emphasis> clones are distinct entities. A copy of the clone running on one machine is not equivalent to another instance on another node, nor would any two copies on the same node be equivalent."
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>Stateful</emphasis> clones are covered later in <xref linkend=\"s-resource-multistate\" />."
msgstr ""
#. Tag: title
#, no-c-format
msgid "A clone of an LSB resource"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;clone id=\"apache-clone\"&gt;\n"
" &lt;meta_attributes id=\"apache-clone-meta\"&gt;\n"
" &lt;nvpair id=\"apache-unique\" name=\"globally-unique\" value=\"false\"/&gt;\n"
" &lt;/meta_attributes&gt;\n"
" &lt;primitive id=\"apache\" class=\"lsb\" type=\"apache\"/&gt;\n"
"&lt;/clone&gt;"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Clone Properties"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Properties of a Clone Resource"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A unique name for the clone <indexterm> <primary>id</primary><secondary>Clone Property</secondary> </indexterm> <indexterm> <primary>Clone Property</primary> </indexterm> <indexterm> <primary>Clone</primary><secondary>Property</secondary><tertiary>id</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>id</secondary> </indexterm> <indexterm> <primary>id</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Clone Options"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Options inherited from <link linkend=\"s-resource-options\">primitive</link> resources: <literal>priority, target-role, is-managed</literal>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Clone-specific configuration options"
msgstr ""
#. Tag: entry
#, no-c-format
msgid "Default"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>clone-max</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "number of nodes in cluster"
msgstr ""
#. Tag: para
#, no-c-format
msgid "How many copies of the resource to start <indexterm> <primary>clone-max</primary><secondary>Clone Option</secondary> </indexterm> <indexterm> <primary>Clone Option</primary> </indexterm> <indexterm> <primary>Clone</primary><secondary>Option</secondary><tertiary>clone-max</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>clone-max</secondary> </indexterm> <indexterm> <primary>clone-max</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>clone-node-max</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "1"
msgstr ""
#. Tag: para
#, no-c-format
msgid "How many copies of the resource can be started on a single node <indexterm> <primary>clone-node-max</primary><secondary>Clone Option</secondary> </indexterm> <indexterm> <primary>Clone Option</primary> </indexterm> <indexterm> <primary>Clone</primary><secondary>Option</secondary><tertiary>clone-node-max</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>clone-node-max</secondary> </indexterm> <indexterm> <primary>clone-node-max</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>clone-min</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Require at least this number of clone instances to be runnable before allowing resources depending on the clone to be runnable <emphasis>(since 1.1.14)</emphasis> <indexterm> <primary>clone-min</primary><secondary>Clone Option</secondary> </indexterm> <indexterm> <primary>Clone Option</primary> </indexterm> <indexterm> <primary>Clone</primary><secondary>Option</secondary><tertiary>clone-min</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>clone-min</secondary> </indexterm> <indexterm> <primary>clone-min</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>notify</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "true"
msgstr ""
#. Tag: para
#, no-c-format
msgid "When stopping or starting a copy of the clone, tell all the other copies beforehand and again when the action was successful. Allowed values: <literal>false</literal>, <literal>true</literal> <indexterm> <primary>notify</primary><secondary>Clone Option</secondary> </indexterm> <indexterm> <primary>Clone Option</primary> </indexterm> <indexterm> <primary>Clone</primary><secondary>Option</secondary><tertiary>notify</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>notify</secondary> </indexterm> <indexterm> <primary>notify</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>globally-unique</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "false"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Does each copy of the clone perform a different function? Allowed values: <literal>false</literal>, <literal>true</literal> <indexterm> <primary>globally-unique</primary><secondary>Clone Option</secondary> </indexterm> <indexterm> <primary>Clone Option</primary> </indexterm> <indexterm> <primary>Clone</primary><secondary>Option</secondary><tertiary>globally-unique</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>globally-unique</secondary> </indexterm> <indexterm> <primary>globally-unique</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>ordered</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Should the copies be started in series (instead of in parallel)? Allowed values: <literal>false</literal>, <literal>true</literal> <indexterm> <primary>ordered</primary><secondary>Clone Option</secondary> </indexterm> <indexterm> <primary>Clone Option</primary> </indexterm> <indexterm> <primary>Clone</primary><secondary>Option</secondary><tertiary>ordered</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>ordered</secondary> </indexterm> <indexterm> <primary>ordered</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>interleave</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If this clone depends on another clone via an ordering constraint, is it allowed to start after the local instance of the other clone starts, rather than wait for all instances of the other clone to start? Allowed values: <literal>false</literal>, <literal>true</literal> <indexterm> <primary>interleave</primary><secondary>Clone Option</secondary> </indexterm> <indexterm> <primary>Clone Option</primary> </indexterm> <indexterm> <primary>Clone</primary><secondary>Option</secondary><tertiary>interleave</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>interleave</secondary> </indexterm> <indexterm> <primary>interleave</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Clone Instance Attributes"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Clones have no instance attributes; however, any that are set here will be inherited by the clone’s children."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Clone Contents"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Clones must contain exactly one primitive or group resource."
msgstr ""
#. Tag: para
#, no-c-format
msgid "You should never reference the name of a clone’s child. If you think you need to do this, you probably need to re-evaluate your design."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Clone Constraints"
msgstr ""
#. Tag: para
#, no-c-format
msgid "In most cases, a clone will have a single copy on each active cluster node. If this is not the case, you can indicate which nodes the cluster should preferentially assign copies to with resource location constraints. These constraints are written no differently from those for primitive resources except that the clone’s <literal>id</literal> is used."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Some constraints involving clones"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;constraints&gt;\n"
" &lt;rsc_location id=\"clone-prefers-node1\" rsc=\"apache-clone\" node=\"node1\" score=\"500\"/&gt;\n"
" &lt;rsc_colocation id=\"stats-with-clone\" rsc=\"apache-stats\" with=\"apache-clone\"/&gt;\n"
" &lt;rsc_order id=\"start-clone-then-stats\" first=\"apache-clone\" then=\"apache-stats\"/&gt;\n"
"&lt;/constraints&gt;"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Ordering constraints behave slightly differently for clones. In the example above, <literal>apache-stats</literal> will wait until all copies of <literal>apache-clone</literal> that need to be started have done so before being started itself. Only if <emphasis>no</emphasis> copies can be started will <literal>apache-stats</literal> be prevented from being active. Additionally, the clone will wait for <literal>apache-stats</literal> to be stopped before stopping itself."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Colocation of a primitive or group resource with a clone means that the resource can run on any machine with an active copy of the clone. The cluster will choose a copy based on where the clone is running and the resource’s own location preferences."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Colocation between clones is also possible. If one clone <literal>A</literal> is colocated with another clone <literal>B</literal>, the set of allowed locations for <literal>A</literal> is limited to nodes on which <literal>B</literal> is (or will be) active. Placement is then performed normally."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Clone Stickiness"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>resource-stickiness</primary><secondary>Clones</secondary> </indexterm> <indexterm> <primary>Clones</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "To achieve a stable allocation pattern, clones are slightly sticky by default. If no value for <literal>resource-stickiness</literal> is provided, the clone will use a value of 1. Being a small value, it causes minimal disturbance to the score calculations of other resources but is enough to prevent Pacemaker from needlessly moving copies around the cluster."
msgstr ""
#. Tag: para
#, no-c-format
msgid "For globally unique clones, this may result in multiple instances of the clone staying on a single node, even after another eligible node becomes active (for example, after being put into standby mode then made active again). If you do not want this behavior, specify a <literal>resource-stickiness</literal> of 0 for the clone temporarily and let the cluster adjust, then set it back to 1 if you want the default behavior to apply again."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Clone Resource Agent Requirements"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Any resource can be used as an anonymous clone, as it requires no additional support from the resource agent. Whether it makes sense to do so depends on your resource and its resource agent."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Globally unique clones do require some additional support in the resource agent. In particular, it must only respond with <literal>${OCF_SUCCESS}</literal> if the node has that exact instance active. All other probes for instances of the clone should result in <literal>${OCF_NOT_RUNNING}</literal> (or one of the other OCF error codes if they are failed)."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Individual instances of a clone are identified by appending a colon and a numerical offset, e.g. <literal>apache:2</literal>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resource agents can find out how many copies there are by examining the <literal>OCF_RESKEY_CRM_meta_clone_max</literal> environment variable and which copy it is by examining <literal>OCF_RESKEY_CRM_meta_clone</literal>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "The resource agent must not make any assumptions (based on <literal>OCF_RESKEY_CRM_meta_clone</literal>) about which numerical instances are active. In particular, the list of active copies will not always be an unbroken sequence, nor always start at 0."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Clone Notifications"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Supporting notifications requires the <literal>notify</literal> action to be implemented. If supported, the notify action will be passed a number of extra variables which, when combined with additional context, can be used to calculate the current state of the cluster and what is about to happen to it."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Environment variables supplied with Clone notify actions"
msgstr ""
#. Tag: entry
#, no-c-format
msgid "Variable"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_RESKEY_CRM_meta_notify_type"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Allowed values: <literal>pre</literal>, <literal>post</literal> <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>type</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>type</secondary> </indexterm> <indexterm> <primary>type</primary> </indexterm> <indexterm> <primary>type</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_RESKEY_CRM_meta_notify_operation"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Allowed values: <literal>start</literal>, <literal>stop</literal> <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>operation</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>operation</secondary> </indexterm> <indexterm> <primary>operation</primary> </indexterm> <indexterm> <primary>operation</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_RESKEY_CRM_meta_notify_start_resource"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources to be started <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>start_resource</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>start_resource</secondary> </indexterm> <indexterm> <primary>start_resource</primary> </indexterm> <indexterm> <primary>start_resource</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_RESKEY_CRM_meta_notify_stop_resource"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources to be stopped <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>stop_resource</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>stop_resource</secondary> </indexterm> <indexterm> <primary>stop_resource</primary> </indexterm> <indexterm> <primary>stop_resource</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_RESKEY_CRM_meta_notify_active_resource"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources that are running <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>active_resource</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>active_resource</secondary> </indexterm> <indexterm> <primary>active_resource</primary> </indexterm> <indexterm> <primary>active_resource</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_RESKEY_CRM_meta_notify_inactive_resource"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources that are not running <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>inactive_resource</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>inactive_resource</secondary> </indexterm> <indexterm> <primary>inactive_resource</primary> </indexterm> <indexterm> <primary>inactive_resource</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_RESKEY_CRM_meta_notify_start_uname"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Nodes on which resources will be started <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>start_uname</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>start_uname</secondary> </indexterm> <indexterm> <primary>start_uname</primary> </indexterm> <indexterm> <primary>start_uname</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_RESKEY_CRM_meta_notify_stop_uname"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Nodes on which resources will be stopped <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>stop_uname</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>stop_uname</secondary> </indexterm> <indexterm> <primary>stop_uname</primary> </indexterm> <indexterm> <primary>stop_uname</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_RESKEY_CRM_meta_notify_active_uname"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Nodes on which resources are running <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>active_uname</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>active_uname</secondary> </indexterm> <indexterm> <primary>active_uname</primary> </indexterm> <indexterm> <primary>active_uname</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The variables come in pairs, such as <literal>OCF_RESKEY_CRM_meta_notify_start_resource</literal> and <literal>OCF_RESKEY_CRM_meta_notify_start_uname</literal> and should be treated as an array of whitespace-separated elements."
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>OCF_RESKEY_CRM_meta_notify_inactive_resource</literal> is an exception as the matching <literal>uname</literal> variable does not exist since inactive resources are not running on any node."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Thus in order to indicate that <literal>clone:0</literal> will be started on <literal>sles-1</literal>, <literal>clone:2</literal> will be started on <literal>sles-3</literal>, and <literal>clone:3</literal> will be started on <literal>sles-2</literal>, the cluster would set"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Notification variables"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "OCF_RESKEY_CRM_meta_notify_start_resource=\"clone:0 clone:2 clone:3\"\n"
"OCF_RESKEY_CRM_meta_notify_start_uname=\"sles-1 sles-3 sles-2\""
msgstr ""
#. Tag: title
#, no-c-format
msgid "Proper Interpretation of Notification Environment Variables"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Pre-notification (stop):"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Active resources: <literal>$OCF_RESKEY_CRM_meta_notify_active_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Inactive resources: <literal>$OCF_RESKEY_CRM_meta_notify_inactive_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources to be started: <literal>$OCF_RESKEY_CRM_meta_notify_start_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources to be stopped: <literal>$OCF_RESKEY_CRM_meta_notify_stop_resource</literal>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Post-notification (stop) / Pre-notification (start):"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Active resources"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>$OCF_RESKEY_CRM_meta_notify_active_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "minus <literal>$OCF_RESKEY_CRM_meta_notify_stop_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Inactive resources"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>$OCF_RESKEY_CRM_meta_notify_inactive_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "plus <literal>$OCF_RESKEY_CRM_meta_notify_stop_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources that were started: <literal>$OCF_RESKEY_CRM_meta_notify_start_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources that were stopped: <literal>$OCF_RESKEY_CRM_meta_notify_stop_resource</literal>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Post-notification (start):"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Active resources:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "plus <literal>$OCF_RESKEY_CRM_meta_notify_start_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Inactive resources:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "minus <literal>$OCF_RESKEY_CRM_meta_notify_start_resource</literal>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Multi-state - Resources That Have Multiple Modes"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Multi-state Resources</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Multi-state</secondary> </indexterm> <indexterm> <primary>Multi-state</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Multi-state resources are a specialization of clone resources; please ensure you understand <xref linkend=\"s-resource-clone\" /> before continuing!"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Multi-state resources allow the instances to be in one of two operating modes (called <emphasis>roles</emphasis>). The roles are called <emphasis>master</emphasis> and <emphasis>slave</emphasis>, but can mean whatever you wish them to mean. The only limitation is that when an instance is started, it must come up in the slave role."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Multi-state Properties"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Properties of a Multi-State Resource"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Your name for the multi-state resource <indexterm> <primary>id</primary><secondary>Multi-State Property</secondary> </indexterm> <indexterm> <primary>Multi-State Property</primary> </indexterm> <indexterm> <primary>Multi-State</primary><secondary>Property</secondary><tertiary>id</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>id</secondary> </indexterm> <indexterm> <primary>id</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Multi-state Options"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Options inherited from <link linkend=\"s-resource-options\">primitive</link> resources: <literal>priority</literal>, <literal>target-role</literal>, <literal>is-managed</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Options inherited from <link linkend=\"s-resource-clone\">clone</link> resources: <literal>clone-max</literal>, <literal>clone-node-max</literal>, <literal>notify</literal>, <literal>globally-unique</literal>, <literal>ordered</literal>, <literal>interleave</literal>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Multi-state-specific resource configuration options"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>master-max</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "How many copies of the resource can be promoted to the <literal>master</literal> role <indexterm> <primary>master-max</primary><secondary>Multi-State Option</secondary> </indexterm> <indexterm> <primary>Multi-State Option</primary> </indexterm> <indexterm> <primary>Multi-State</primary><secondary>Option</secondary><tertiary>master-max</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>master-max</secondary> </indexterm> <indexterm> <primary>master-max</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>master-node-max</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "How many copies of the resource can be promoted to the <literal>master</literal> role on a single node <indexterm> <primary>master-node-max</primary><secondary>Multi-State Option</secondary> </indexterm> <indexterm> <primary>Multi-State Option</primary> </indexterm> <indexterm> <primary>Multi-State</primary><secondary>Option</secondary><tertiary>master-node-max</tertiary> </indexterm> <indexterm> <primary>Option</primary><secondary>master-node-max</secondary> </indexterm> <indexterm> <primary>master-node-max</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Multi-state Instance Attributes"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Multi-state resources have no instance attributes; however, any that are set here will be inherited by a master’s children."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Multi-state Contents"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Masters must contain exactly one primitive or group resource."
msgstr ""
#. Tag: para
#, no-c-format
msgid "You should never reference the name of a master’s child. If you think you need to do this, you probably need to re-evaluate your design."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Monitoring Multi-State Resources"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The usual monitor actions are insufficient to monitor a multi-state resource, because pacemaker needs to verify not only that the resource is active, but also that its actual role matches its intended one."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Define two monitoring actions: the usual one will cover the slave role, and an additional one with <literal>role=\"master\"</literal> will cover the master role."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Monitoring both states of a multi-state resource"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;master id=\"myMasterRsc\"&gt;\n"
" &lt;primitive id=\"myRsc\" class=\"ocf\" type=\"myApp\" provider=\"myCorp\"&gt;\n"
" &lt;operations&gt;\n"
" &lt;op id=\"public-ip-slave-check\" name=\"monitor\" interval=\"60\"/&gt;\n"
" &lt;op id=\"public-ip-master-check\" name=\"monitor\" interval=\"61\" role=\"Master\"/&gt;\n"
" &lt;/operations&gt;\n"
" &lt;/primitive&gt;\n"
"&lt;/master&gt;"
msgstr ""
#. Tag: para
#, no-c-format
msgid "It is crucial that <emphasis>every</emphasis> monitor operation has a different interval! Pacemaker currently differentiates between operations only by resource and interval; so if (for example) a master/slave resource had the same monitor interval for both roles, Pacemaker would ignore the role when checking the status — which would cause unexpected return codes, and therefore unnecessary complications."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Multi-state Constraints"
msgstr ""
#. Tag: para
#, no-c-format
msgid "In most cases, multi-state resources will have a single copy on each active cluster node. If this is not the case, you can indicate which nodes the cluster should preferentially assign copies to with resource location constraints. These constraints are written no differently from those for primitive resources except that the master’s <literal>id</literal> is used."
msgstr ""
#. Tag: para
#, no-c-format
msgid "When considering multi-state resources in constraints, for most purposes it is sufficient to treat them as clones. The exception is that the <literal>first-action</literal> and/or <literal>then-action</literal> fields for ordering constraints may be set to <literal>promote</literal> or <literal>demote</literal> to constrain the master role, and colocation constraints may contain <literal>rsc-role</literal> and/or <literal>with-rsc-role</literal> fields."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Additional colocation constraint options for multi-state resources"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>rsc-role</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Started"
msgstr ""
#. Tag: para
#, no-c-format
msgid "An additional attribute of colocation constraints that specifies the role that <literal>rsc</literal> must be in. Allowed values: <literal>Started</literal>, <literal>Master</literal>, <literal>Slave</literal>. <indexterm> <primary>rsc-role</primary><secondary>Ordering Constraints</secondary> </indexterm> <indexterm> <primary>Ordering Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Ordering</secondary><tertiary>rsc-role</tertiary> </indexterm> <indexterm> <primary>Ordering</primary><secondary>rsc-role</secondary> </indexterm> <indexterm> <primary>rsc-role</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>with-rsc-role</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "An additional attribute of colocation constraints that specifies the role that <literal>with-rsc</literal> must be in. Allowed values: <literal>Started</literal>, <literal>Master</literal>, <literal>Slave</literal>. <indexterm> <primary>with-rsc-role</primary><secondary>Ordering Constraints</secondary> </indexterm> <indexterm> <primary>Ordering Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Ordering</secondary><tertiary>with-rsc-role</tertiary> </indexterm> <indexterm> <primary>Ordering</primary><secondary>with-rsc-role</secondary> </indexterm> <indexterm> <primary>with-rsc-role</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Constraints involving multi-state resources"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;constraints&gt;\n"
" &lt;rsc_location id=\"db-prefers-node1\" rsc=\"database\" node=\"node1\" score=\"500\"/&gt;\n"
" &lt;rsc_colocation id=\"backup-with-db-slave\" rsc=\"backup\"\n"
" with-rsc=\"database\" with-rsc-role=\"Slave\"/&gt;\n"
" &lt;rsc_colocation id=\"myapp-with-db-master\" rsc=\"myApp\"\n"
" with-rsc=\"database\" with-rsc-role=\"Master\"/&gt;\n"
" &lt;rsc_order id=\"start-db-before-backup\" first=\"database\" then=\"backup\"/&gt;\n"
" &lt;rsc_order id=\"promote-db-then-app\" first=\"database\" first-action=\"promote\"\n"
" then=\"myApp\" then-action=\"start\"/&gt;\n"
"&lt;/constraints&gt;"
msgstr ""
#. Tag: para
#, no-c-format
msgid "In the example above, <literal>myApp</literal> will wait until one of the database copies has been started and promoted to master before being started itself on the same node. Only if no copies can be promoted will <literal>myApp</literal> be prevented from being active. Additionally, the cluster will wait for <literal>myApp</literal> to be stopped before demoting the database."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Colocation of a primitive or group resource with a multi-state resource means that it can run on any machine with an active copy of the multi-state resource that has the specified role (<literal>master</literal> or <literal>slave</literal>). In the example above, the cluster will choose a location based on where database is running as a <literal>master</literal>, and if there are multiple <literal>master</literal> instances it will also factor in <literal>myApp</literal>'s own location preferences when deciding which location to choose."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Colocation with regular clones and other multi-state resources is also possible. In such cases, the set of allowed locations for the <literal>rsc</literal> clone is (after role filtering) limited to nodes on which the <literal>with-rsc</literal> multi-state resource is (or will be) in the specified role. Placement is then performed as normal."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Using Multi-state Resources in Colocation Sets"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Additional colocation set options relevant to multi-state resources"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>role</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The role that <emphasis>all members</emphasis> of the set must be in. Allowed values: <literal>Started</literal>, <literal>Master</literal>, <literal>Slave</literal>. <indexterm> <primary>role</primary><secondary>Ordering Constraints</secondary> </indexterm> <indexterm> <primary>Ordering Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Ordering</secondary><tertiary>role</tertiary> </indexterm> <indexterm> <primary>Ordering</primary><secondary>role</secondary> </indexterm> <indexterm> <primary>role</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "In the following example <literal>B</literal>'s master must be located on the same node as <literal>A</literal>'s master. Additionally resources <literal>C</literal> and <literal>D</literal> must be located on the same node as <literal>A</literal>'s and <literal>B</literal>'s masters."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Colocate C and D with A’s and B’s master instances"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;constraints&gt;\n"
" &lt;rsc_colocation id=\"coloc-1\" score=\"INFINITY\" &gt;\n"
" &lt;resource_set id=\"colocated-set-example-1\" sequential=\"true\" role=\"Master\"&gt;\n"
" &lt;resource_ref id=\"A\"/&gt;\n"
" &lt;resource_ref id=\"B\"/&gt;\n"
" &lt;/resource_set&gt;\n"
" &lt;resource_set id=\"colocated-set-example-2\" sequential=\"true\"&gt;\n"
" &lt;resource_ref id=\"C\"/&gt;\n"
" &lt;resource_ref id=\"D\"/&gt;\n"
" &lt;/resource_set&gt;\n"
" &lt;/rsc_colocation&gt;\n"
"&lt;/constraints&gt;"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Using Multi-state Resources in Ordering Sets"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Additional ordered set options relevant to multi-state resources"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>action</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "value of <literal>first-action</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "An additional attribute of ordering constraint sets that specifies the action that applies to <emphasis>all members</emphasis> of the set. Allowed values: <literal>start</literal>, <literal>stop</literal>, <literal>promote</literal>, <literal>demote</literal>. <indexterm> <primary>action</primary><secondary>Ordering Constraints</secondary> </indexterm> <indexterm> <primary>Ordering Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Ordering</secondary><tertiary>action</tertiary> </indexterm> <indexterm> <primary>Ordering</primary><secondary>action</secondary> </indexterm> <indexterm> <primary>action</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Start C and D after first promoting A and B"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;constraints&gt;\n"
" &lt;rsc_order id=\"order-1\" score=\"INFINITY\" &gt;\n"
" &lt;resource_set id=\"ordered-set-1\" sequential=\"true\" action=\"promote\"&gt;\n"
" &lt;resource_ref id=\"A\"/&gt;\n"
" &lt;resource_ref id=\"B\"/&gt;\n"
" &lt;/resource_set&gt;\n"
" &lt;resource_set id=\"ordered-set-2\" sequential=\"true\" action=\"start\"&gt;\n"
" &lt;resource_ref id=\"C\"/&gt;\n"
" &lt;resource_ref id=\"D\"/&gt;\n"
" &lt;/resource_set&gt;\n"
" &lt;/rsc_order&gt;\n"
"&lt;/constraints&gt;"
msgstr ""
#. Tag: para
#, no-c-format
msgid "In the above example, <literal>B</literal> cannot be promoted to a master role until <literal>A</literal> has been promoted. Additionally, resources <literal>C</literal> and <literal>D</literal> must wait until <literal>A</literal> and <literal>B</literal> have been promoted before they can start."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Multi-state Stickiness"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>resource-stickiness</primary><secondary>Multi-State</secondary> </indexterm> <indexterm> <primary>Multi-State</primary> </indexterm> As with regular clones, multi-state resources are slightly sticky by default. See <xref linkend=\"s-clone-stickiness\" /> for details."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Which Resource Instance is Promoted"
msgstr ""
#. Tag: para
#, no-c-format
msgid "During the start operation, most resource agents should call the <literal>crm_master</literal> utility. This tool automatically detects both the resource and host and should be used to set a preference for being promoted. Based on this, <literal>master-max</literal>, and <literal>master-node-max</literal>, the instance(s) with the highest preference will be promoted."
msgstr ""
#. Tag: para
#, no-c-format
msgid "An alternative is to create a location constraint that indicates which nodes are most preferred as masters."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Explicitly preferring node1 to be promoted to master"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;rsc_location id=\"master-location\" rsc=\"myMasterRsc\"&gt;\n"
" &lt;rule id=\"master-rule\" score=\"100\" role=\"Master\"&gt;\n"
" &lt;expression id=\"master-exp\" attribute=\"#uname\" operation=\"eq\" value=\"node1\"/&gt;\n"
" &lt;/rule&gt;\n"
"&lt;/rsc_location&gt;"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Requirements for Multi-state Resource Agents"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Since multi-state resources are an extension of cloned resources, all the requirements for resource agents that support clones are also requirements for resource agents that support multi-state resources."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Additionally, multi-state resources require two extra actions, <literal>demote</literal> and <literal>promote</literal>, which are responsible for changing the state of the resource. Like <literal>start</literal> and <literal>stop</literal>, they should return <literal>${OCF_SUCCESS}</literal> if they completed successfully or a relevant error code if they did not."
msgstr ""
#. Tag: para
#, no-c-format
msgid "The states can mean whatever you wish, but when the resource is started, it must come up in the mode called <literal>slave</literal>. From there the cluster will decide which instances to promote to <literal>master</literal>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "In addition to the clone requirements for monitor actions, agents must also <emphasis>accurately</emphasis> report which state they are in. The cluster relies on the agent to report its status (including role) accurately and does not indicate to the agent what role it currently believes it to be in."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Role implications of OCF return codes"
msgstr ""
#. Tag: entry
#, no-c-format
msgid "Monitor Return Code"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_NOT_RUNNING"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Stopped <indexterm> <primary>Return Code</primary><secondary>OCF_NOT_RUNNING</secondary> </indexterm> <indexterm> <primary>OCF_NOT_RUNNING</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_SUCCESS"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Running (Slave) <indexterm> <primary>Return Code</primary><secondary>OCF_SUCCESS</secondary> </indexterm> <indexterm> <primary>OCF_SUCCESS</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_RUNNING_MASTER"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Running (Master) <indexterm> <primary>Return Code</primary><secondary>OCF_RUNNING_MASTER</secondary> </indexterm> <indexterm> <primary>OCF_RUNNING_MASTER</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "OCF_FAILED_MASTER"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Failed (Master) <indexterm> <primary>Return Code</primary><secondary>OCF_FAILED_MASTER</secondary> </indexterm> <indexterm> <primary>OCF_FAILED_MASTER</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Other"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Failed (Slave)"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Multi-state Notifications"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Like clones, supporting notifications requires the <literal>notify</literal> action to be implemented. If supported, the notify action will be passed a number of extra variables which, when combined with additional context, can be used to calculate the current state of the cluster and what is about to happen to it."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Environment variables supplied with multi-state notify actions <footnote><para>Emphasized variables are specific to <literal>Master</literal> resources, and all behave in the same manner as described for Clone resources.</para></footnote>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>OCF_RESKEY_CRM_meta_notify_master_resource</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources that are running in <literal>Master</literal> mode <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>master_resource</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>master_resource</secondary> </indexterm> <indexterm> <primary>master_resource</primary> </indexterm> <indexterm> <primary>master_resource</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>OCF_RESKEY_CRM_meta_notify_slave_resource</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources that are running in <literal>Slave</literal> mode <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>slave_resource</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>slave_resource</secondary> </indexterm> <indexterm> <primary>slave_resource</primary> </indexterm> <indexterm> <primary>slave_resource</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>OCF_RESKEY_CRM_meta_notify_promote_resource</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources to be promoted <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>promote_resource</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>promote_resource</secondary> </indexterm> <indexterm> <primary>promote_resource</primary> </indexterm> <indexterm> <primary>promote_resource</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>OCF_RESKEY_CRM_meta_notify_demote_resource</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources to be demoted <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>demote_resource</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>demote_resource</secondary> </indexterm> <indexterm> <primary>demote_resource</primary> </indexterm> <indexterm> <primary>demote_resource</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>OCF_RESKEY_CRM_meta_notify_promote_uname</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Nodes on which resources will be promoted <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>promote_uname</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>promote_uname</secondary> </indexterm> <indexterm> <primary>promote_uname</primary> </indexterm> <indexterm> <primary>promote_uname</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>OCF_RESKEY_CRM_meta_notify_demote_uname</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Nodes on which resources will be demoted <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>demote_uname</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>demote_uname</secondary> </indexterm> <indexterm> <primary>demote_uname</primary> </indexterm> <indexterm> <primary>demote_uname</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>OCF_RESKEY_CRM_meta_notify_master_uname</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Nodes on which resources are running in <literal>Master</literal> mode <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>master_uname</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>master_uname</secondary> </indexterm> <indexterm> <primary>master_uname</primary> </indexterm> <indexterm> <primary>master_uname</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<emphasis>OCF_RESKEY_CRM_meta_notify_slave_uname</emphasis>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Nodes on which resources are running in <literal>Slave</literal> mode <indexterm> <primary>Environment Variable</primary><secondary>OCF_RESKEY_CRM_meta_notify_</secondary><tertiary>slave_uname</tertiary> </indexterm> <indexterm> <primary>OCF_RESKEY_CRM_meta_notify_</primary><secondary>slave_uname</secondary> </indexterm> <indexterm> <primary>slave_uname</primary> </indexterm> <indexterm> <primary>slave_uname</primary><secondary>Notification Environment Variable</secondary> </indexterm> <indexterm> <primary>Notification Environment Variable</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Proper Interpretation of Multi-state Notification Environment Variables"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Pre-notification (demote):"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>Active</literal> resources: <literal>$OCF_RESKEY_CRM_meta_notify_active_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>Master</literal> resources: <literal>$OCF_RESKEY_CRM_meta_notify_master_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>Slave</literal> resources: <literal>$OCF_RESKEY_CRM_meta_notify_slave_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources to be promoted: <literal>$OCF_RESKEY_CRM_meta_notify_promote_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources to be demoted: <literal>$OCF_RESKEY_CRM_meta_notify_demote_resource</literal>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Post-notification (demote) / Pre-notification (stop):"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>Master</literal> resources:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>$OCF_RESKEY_CRM_meta_notify_master_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "minus <literal>$OCF_RESKEY_CRM_meta_notify_demote_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources that were demoted: <literal>$OCF_RESKEY_CRM_meta_notify_demote_resource</literal>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Post-notification (stop) / Pre-notification (start)"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>Active</literal> resources:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>Slave</literal> resources:"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>$OCF_RESKEY_CRM_meta_notify_slave_resource</literal>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Post-notification (start) / Pre-notification (promote)"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Post-notification (promote)"
msgstr ""
#. Tag: para
#, no-c-format
msgid "plus <literal>$OCF_RESKEY_CRM_meta_notify_promote_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "minus <literal>$OCF_RESKEY_CRM_meta_notify_promote_resource</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Resources that were promoted: <literal>$OCF_RESKEY_CRM_meta_notify_promote_resource</literal>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Bundles - Isolated Environments"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>bundle</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>bundle</secondary> </indexterm> <indexterm> <primary>bundle</primary> </indexterm> <indexterm> <primary>Docker</primary><secondary>bundle</secondary> </indexterm> <indexterm> <primary>bundle</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Pacemaker (version 1.1.17 and later) supports a special syntax for combining an isolated environment with the infrastructure support that it needs: the <emphasis>bundle</emphasis>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "The only isolation technology currently supported by Pacemaker bundles is <ulink url=\"https://www.docker.com/\">Docker</ulink> containers. <footnote><para>Docker is a trademark of Docker, Inc. No endorsement by or association with Docker, Inc. is implied.</para></footnote>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "A bundle for a containerized web server"
msgstr ""
#. Tag: programlisting
#, no-c-format
msgid "&lt;bundle id=\"httpd-bundle\"&gt;\n"
" &lt;docker image=\"pcmk:http\" replicas=\"3\"/&gt;\n"
" &lt;network ip-range-start=\"192.168.122.131\"\n"
" host-netmask=\"24\"\n"
" host-interface=\"eth0\"&gt;\n"
" &lt;port-mapping id=\"httpd-port\" port=\"80\"/&gt;\n"
" &lt;/network&gt;\n"
" &lt;storage&gt;\n"
" &lt;storage-mapping id=\"httpd-syslog\"\n"
" source-dir=\"/dev/log\"\n"
" target-dir=\"/dev/log\"\n"
" options=\"rw\"/&gt;\n"
" &lt;storage-mapping id=\"httpd-root\"\n"
" source-dir=\"/srv/html\"\n"
" target-dir=\"/var/www/html\"\n"
" options=\"rw\"/&gt;\n"
" &lt;storage-mapping id=\"httpd-logs\"\n"
" source-dir-root=\"/var/log/pacemaker/bundles\"\n"
" target-dir=\"/etc/httpd/logs\"\n"
" options=\"rw\"/&gt;\n"
" &lt;/storage&gt;\n"
" &lt;primitive class=\"ocf\" id=\"httpd\" provider=\"heartbeat\" type=\"apache\"/&gt;\n"
"&lt;/bundle&gt;"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Bundle Properties"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Properties of a Bundle"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A unique name for the bundle (required) <indexterm> <primary>id</primary><secondary>bundle</secondary> </indexterm> <indexterm> <primary>bundle</primary> </indexterm> <indexterm> <primary>bundle</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>description</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Arbitrary text (not used by Pacemaker) <indexterm> <primary>description</primary><secondary>bundle</secondary> </indexterm> <indexterm> <primary>bundle</primary> </indexterm> <indexterm> <primary>bundle</primary><secondary>Property</secondary><tertiary>description</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>description</secondary> </indexterm> <indexterm> <primary>description</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Docker Properties"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A bundle must contain exactly one <literal>&lt;docker&gt;</literal> element."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Before configuring a bundle in Pacemaker, the user must install Docker and supply a fully configured Docker image on every node allowed to run the bundle."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Pacemaker will create an implicit <literal>ocf:heartbeat:docker</literal> resource to manage a bundle’s Docker container."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Properties of a Bundle’s Docker Element"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>image</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Docker image tag (required) <indexterm> <primary>image</primary><secondary>Docker</secondary> </indexterm> <indexterm> <primary>Docker</primary> </indexterm> <indexterm> <primary>Docker</primary><secondary>Property</secondary><tertiary>image</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>image</secondary> </indexterm> <indexterm> <primary>image</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>replicas</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Value of <literal>masters</literal> if that is positive, else 1"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A positive integer specifying the number of container instances to launch <indexterm> <primary>replicas</primary><secondary>Docker</secondary> </indexterm> <indexterm> <primary>Docker</primary> </indexterm> <indexterm> <primary>Docker</primary><secondary>Property</secondary><tertiary>replicas</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>replicas</secondary> </indexterm> <indexterm> <primary>replicas</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>replicas-per-host</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A positive integer specifying the number of container instances allowed to run on a single node <indexterm> <primary>replicas-per-host</primary><secondary>Docker</secondary> </indexterm> <indexterm> <primary>Docker</primary> </indexterm> <indexterm> <primary>Docker</primary><secondary>Property</secondary><tertiary>replicas-per-host</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>replicas-per-host</secondary> </indexterm> <indexterm> <primary>replicas-per-host</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>masters</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "0"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A non-negative integer that, if positive, indicates that the containerized service should be treated as a multistate service, with this many replicas allowed to run the service in the master role <indexterm> <primary>masters</primary><secondary>Docker</secondary> </indexterm> <indexterm> <primary>Docker</primary> </indexterm> <indexterm> <primary>Docker</primary><secondary>Property</secondary><tertiary>masters</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>masters</secondary> </indexterm> <indexterm> <primary>masters</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>network</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If specified, this will be passed to <literal>docker run</literal> as the <ulink url=\"https://docs.docker.com/engine/reference/run/#network-settings\">network setting</ulink> for the Docker container. <indexterm> <primary>network</primary><secondary>Docker</secondary> </indexterm> <indexterm> <primary>Docker</primary> </indexterm> <indexterm> <primary>Docker</primary><secondary>Property</secondary><tertiary>network</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>network</secondary> </indexterm> <indexterm> <primary>network</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>run-command</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>/usr/sbin/pacemaker_remoted</literal> if bundle contains a <literal>primitive</literal>, otherwise none"
msgstr ""
#. Tag: para
#, no-c-format
msgid "This command will be run inside the container when launching it (\"PID 1\"). If the bundle contains a <literal>primitive</literal>, this command <emphasis>must</emphasis> start pacemaker_remoted (but could, for example, be a script that does other stuff, too). <indexterm> <primary>network</primary><secondary>Docker</secondary> </indexterm> <indexterm> <primary>Docker</primary> </indexterm> <indexterm> <primary>Docker</primary><secondary>Property</secondary><tertiary>network</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>network</secondary> </indexterm> <indexterm> <primary>network</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>options</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Extra command-line options to pass to <literal>docker run</literal> <indexterm> <primary>options</primary><secondary>Docker</secondary> </indexterm> <indexterm> <primary>Docker</primary> </indexterm> <indexterm> <primary>Docker</primary><secondary>Property</secondary><tertiary>options</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>options</secondary> </indexterm> <indexterm> <primary>options</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Bundle Network Properties"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A bundle may optionally contain one <literal>&lt;network&gt;</literal> element. <indexterm> <primary>bundle</primary><secondary>network</secondary> </indexterm> <indexterm> <primary>network</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Properties of a Bundle’s Network Element"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>ip-range-start</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If specified, Pacemaker will create an implicit <literal>ocf:heartbeat:IPaddr2</literal> resource for each container instance, starting with this IP address, using up to <literal>replicas</literal> sequential addresses. These addresses can be used from the host’s network to reach the service inside the container, though it is not visible within the container itself. Only IPv4 addresses are currently supported. <indexterm> <primary>ip-range-start</primary><secondary>network</secondary> </indexterm> <indexterm> <primary>network</primary> </indexterm> <indexterm> <primary>network</primary><secondary>Property</secondary><tertiary>ip-range-start</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>ip-range-start</secondary> </indexterm> <indexterm> <primary>ip-range-start</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>host-netmask</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "32"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If <literal>ip-range-start</literal> is specified, the IP addresses are created with this CIDR netmask (as a number of bits). <indexterm> <primary>host-netmask</primary><secondary>network</secondary> </indexterm> <indexterm> <primary>network</primary> </indexterm> <indexterm> <primary>network</primary><secondary>Property</secondary><tertiary>host-netmask</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>host-netmask</secondary> </indexterm> <indexterm> <primary>host-netmask</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>host-interface</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If <literal>ip-range-start</literal> is specified, the IP addresses are created on this host interface (by default, it will be determined from the IP address). <indexterm> <primary>host-interface</primary><secondary>network</secondary> </indexterm> <indexterm> <primary>network</primary> </indexterm> <indexterm> <primary>network</primary><secondary>Property</secondary><tertiary>host-interface</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>host-interface</secondary> </indexterm> <indexterm> <primary>host-interface</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>control-port</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If the bundle contains a <literal>primitive</literal>, the cluster will use this integer TCP port for communication with Pacemaker Remote inside the container. This takes precedence over the value of any PCMK_remote_port environment variable set in the container image. This can allow a <literal>primitive</literal> to be specified without using <literal>ip-start-range</literal>, in which case <literal>replicas-per-host</literal> must be 1. <indexterm> <primary>control-port</primary><secondary>network</secondary> </indexterm> <indexterm> <primary>network</primary> </indexterm> <indexterm> <primary>network</primary><secondary>Property</secondary><tertiary>control-port</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>control-port</secondary> </indexterm> <indexterm> <primary>control-port</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If <literal>ip-range-start</literal> is used, Pacemaker will automatically ensure that <literal>/etc/hosts</literal> inside the containers has entries for each replica and its assigned IP. Replicas are named by the bundle id plus a dash and an integer counter starting with zero. For example, if a bundle named <literal>httpd-bundle</literal> has <literal>replicas=2</literal>, its containers will be named <literal>httpd-bundle-0</literal> and <literal>httpd-bundle-1</literal>."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Additionally, a <literal>&lt;network&gt;</literal> element may optionally contain one or more <literal>&lt;port-mapping&gt;</literal> elements. <indexterm> <primary>bundle</primary><secondary>network</secondary><tertiary>port-mapping</tertiary> </indexterm> <indexterm> <primary>network</primary><secondary>port-mapping</secondary> </indexterm> <indexterm> <primary>port-mapping</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Properties of a Bundle’s Port-Mapping Element"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A unique name for the port mapping (required) <indexterm> <primary>id</primary><secondary>port-mapping</secondary> </indexterm> <indexterm> <primary>port-mapping</primary> </indexterm> <indexterm> <primary>port-mapping</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>port</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If this is specified, connections to this TCP port number on the host network (on the container’s assigned IP address, if <literal>ip-range-start</literal> is specified) will be forwarded to the container network. Exactly one of <literal>port</literal> or <literal>range</literal> must be specified in a <literal>port-mapping</literal>. <indexterm> <primary>port</primary><secondary>port-mapping</secondary> </indexterm> <indexterm> <primary>port-mapping</primary> </indexterm> <indexterm> <primary>port-mapping</primary><secondary>Property</secondary><tertiary>port</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>port</secondary> </indexterm> <indexterm> <primary>port</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>internal-port</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "value of <literal>port</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If <literal>port</literal> and this are specified, connections to <literal>port</literal> on the host’s network will be forwarded to this port on the container network. <indexterm> <primary>internal-port</primary><secondary>port-mapping</secondary> </indexterm> <indexterm> <primary>port-mapping</primary> </indexterm> <indexterm> <primary>port-mapping</primary><secondary>Property</secondary><tertiary>internal-port</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>internal-port</secondary> </indexterm> <indexterm> <primary>internal-port</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>range</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If this is specified, connections to these TCP port numbers (expressed as <emphasis>first_port</emphasis>-<emphasis>last_port</emphasis>) on the host network (on the container’s assigned IP address, if <literal>ip-range-start</literal> is specified) will be forwarded to the same ports in the container network. Exactly one of <literal>port</literal> or <literal>range</literal> must be specified in a <literal>port-mapping</literal>. <indexterm> <primary>range</primary><secondary>port-mapping</secondary> </indexterm> <indexterm> <primary>port-mapping</primary> </indexterm> <indexterm> <primary>port-mapping</primary><secondary>Property</secondary><tertiary>range</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>range</secondary> </indexterm> <indexterm> <primary>range</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If the bundle contains a <literal>primitive</literal>, Pacemaker will automatically map the <literal>control-port</literal>, so it is not necessary to specify that port in a <literal>port-mapping</literal>."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Bundle Storage Properties"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A bundle may optionally contain one <literal>&lt;storage&gt;</literal> element. A <literal>&lt;storage&gt;</literal> element has no properties of its own, but may contain one or more <literal>&lt;storage-mapping&gt;</literal> elements. <indexterm> <primary>bundle</primary><secondary>storage</secondary><tertiary>storage-mapping</tertiary> </indexterm> <indexterm> <primary>storage</primary><secondary>storage-mapping</secondary> </indexterm> <indexterm> <primary>storage-mapping</primary> </indexterm>"
msgstr ""
#. Tag: title
#, no-c-format
msgid "Properties of a Bundle’s Storage-Mapping Element"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A unique name for the storage mapping (required) <indexterm> <primary>id</primary><secondary>storage-mapping</secondary> </indexterm> <indexterm> <primary>storage-mapping</primary> </indexterm> <indexterm> <primary>storage-mapping</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>source-dir</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The absolute path on the host’s filesystem that will be mapped into the container. Exactly one of <literal>source-dir</literal> and <literal>source-dir-root</literal> must be specified in a <literal>storage-mapping</literal>. <indexterm> <primary>source-dir</primary><secondary>storage-mapping</secondary> </indexterm> <indexterm> <primary>storage-mapping</primary> </indexterm> <indexterm> <primary>storage-mapping</primary><secondary>Property</secondary><tertiary>source-dir</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>source-dir</secondary> </indexterm> <indexterm> <primary>source-dir</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>source-dir-root</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The start of a path on the host’s filesystem that will be mapped into the container, using a different subdirectory on the host for each container instance. Exactly one of <literal>source-dir</literal> and <literal>source-dir-root</literal> must be specified in a <literal>storage-mapping</literal>. <indexterm> <primary>source-dir-root</primary><secondary>storage-mapping</secondary> </indexterm> <indexterm> <primary>storage-mapping</primary> </indexterm> <indexterm> <primary>storage-mapping</primary><secondary>Property</secondary><tertiary>source-dir-root</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>source-dir-root</secondary> </indexterm> <indexterm> <primary>source-dir-root</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "<literal>target-dir</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "The path name within the container where the host storage will be mapped (required) <indexterm> <primary>target-dir</primary><secondary>storage-mapping</secondary> </indexterm> <indexterm> <primary>storage-mapping</primary> </indexterm> <indexterm> <primary>storage-mapping</primary><secondary>Property</secondary><tertiary>target-dir</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>target-dir</secondary> </indexterm> <indexterm> <primary>target-dir</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "File system mount options to use when mapping the storage <indexterm> <primary>options</primary><secondary>storage-mapping</secondary> </indexterm> <indexterm> <primary>storage-mapping</primary> </indexterm> <indexterm> <primary>storage-mapping</primary><secondary>Property</secondary><tertiary>options</tertiary> </indexterm> <indexterm> <primary>Property</primary><secondary>options</secondary> </indexterm> <indexterm> <primary>options</primary> </indexterm>"
msgstr ""
#. Tag: para
#, no-c-format
msgid "If the bundle contains a <literal>primitive</literal>, Pacemaker will automatically map the equivalent of <literal>source-dir=/etc/pacemaker/authkey target-dir=/etc/pacemaker/authkey</literal> and <literal>source-dir-root=/var/log/pacemaker/bundles target-dir=/var/log</literal> into the container, so it is not necessary to specify those paths in a <literal>storage-mapping</literal>. Newer versions of <literal>ocf:heartbeat:docker</literal> will automatically create the source directories if they do not exist, but the user may want to ensure they exist beforehand."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Bundle Primitive"
msgstr ""
#. Tag: para
#, no-c-format
msgid "A bundle may optionally contain one <literal>&lt;primitive&gt;</literal> resource (see <xref linkend=\"s-resource-primitive\" />). The primitive may have operations, instance attributes and meta-attributes defined, as usual."
msgstr ""
#. Tag: para
#, no-c-format
msgid "If a bundle contains a primitive resource, the container image must include the Pacemaker Remote daemon, and either <literal>ip-range-start</literal> or <literal>control-port</literal> must be configured in the bundle. Pacemaker will create an implicit <literal>ocf:pacemaker:remote</literal> resource for the connection, launch Pacemaker Remote within the container, and monitor and manage the primitive resource via Pacemaker Remote."
msgstr ""
#. Tag: para
#, no-c-format
msgid "If the bundle has more than one container instance (replica), the primitive resource will function as an implicit clone (see <xref linkend=\"s-resource-clone\" />) — a multistate clone if the bundle has <literal>masters</literal> greater than zero (see <xref linkend=\"s-resource-multistate\" />)."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Containers in bundles with a <literal>primitive</literal> must have an accessible networking environment, so that Pacemaker can contact Pacemaker Remote inside the container. For example, the Docker option <literal>--net=none</literal> should not be used with a <literal>primitive</literal>. The default (using a distinct network space inside the container) works with <literal>ip-range-start</literal>. If the Docker option <literal>--net=host</literal> is used (making the container share the host’s network space), a unique <literal>control-port</literal> should be specified for each bundle."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Limitations of Bundles"
msgstr ""
#. Tag: para
#, no-c-format
msgid "Currently, bundles may not be cloned, or included in groups or colocation constraints. This includes the bundle’s primitive and any resources implicitly created by Pacemaker for the bundle."
msgstr ""
#. Tag: para
#, no-c-format
msgid "Bundles do not have instance attributes, meta-attributes, utilization attributes, or operations of their own, though a primitive included in a bundle may."
msgstr ""