~ubuntu-branches/ubuntu/utopic/pacemaker/utopic-proposed

« back to all changes in this revision

Viewing changes to doc/Pacemaker_Explained/it-IT/Ch-Constraints.po

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-07-16 16:40:24 UTC
  • mfrom: (1.1.11) (2.2.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130716164024-lvwrf4xivk1wdr3c
Tags: 1.1.9+git20130321-1ubuntu1
* Resync from debian expiremental.
* debian/control:
  - Use lower version for Build-Depends on libcorosync-dev
    and libqb-dev.
  - Build-Depends on libcfg-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# AUTHOR <EMAIL@ADDRESS>, YEAR.
 
3
#
 
4
msgid ""
 
5
msgstr ""
 
6
"Project-Id-Version: 0\n"
 
7
"POT-Creation-Date: 2012-10-17T05:19:02\n"
 
8
"PO-Revision-Date: 2011-05-03 15:38+0100\n"
 
9
"Last-Translator: RaSca <rasca@miamammausalinux.org>\n"
 
10
"Language-Team: None\n"
 
11
"Language: \n"
 
12
"MIME-Version: 1.0\n"
 
13
"Content-Type: text/plain; charset=UTF-8\n"
 
14
"Content-Transfer-Encoding: 8bit\n"
 
15
 
 
16
#. Tag: title
 
17
#, no-c-format
 
18
msgid "Resource Constraints"
 
19
msgstr "Vincoli delle risorse"
 
20
 
 
21
#. Tag: para
 
22
#, no-c-format
 
23
msgid "<indexterm> <primary>Resource</primary><secondary>Constraints</secondary> </indexterm> <indexterm> <primary>Constraints</primary> </indexterm>"
 
24
msgstr ""
 
25
 
 
26
#. Tag: title
 
27
#, no-c-format
 
28
msgid "Scores"
 
29
msgstr "Punteggi"
 
30
 
 
31
#. Tag: para
 
32
#, no-c-format
 
33
msgid "Scores of all kinds are integral to how the cluster works. Practically everything from moving a resource to deciding which resource to stop in a degraded cluster is achieved by manipulating scores in some way."
 
34
msgstr "Nel funzionamento del cluster sono integrati punteggi di ogni tipo. Praticamente qualsiasi decisione, dallo spostamento di una risorsa sino a quale risorsa fermare in un cluster degradato, è ottenuta manipolando in qualche forma i punteggi."
 
35
 
 
36
#. Tag: para
 
37
#, fuzzy, no-c-format
 
38
msgid "Scores are calculated on a per-resource basis and any node with a negative score for a resource can’t run that resource. After calculating the scores for a resource, the cluster then chooses the node with the highest one."
 
39
msgstr "I punteggi sono calcolati sulla base per l'erogazione di ogni risorsa e qualsiasi nodo con un punteggio negativo non può erogare la risorsa associata. Dopo aver calcolato i punteggi per una risorsa il cluster sceglie il nodo con il punteggio più alto."
 
40
 
 
41
#. Tag: title
 
42
#, no-c-format
 
43
msgid "Infinity Math"
 
44
msgstr "Il valore INFINITY"
 
45
 
 
46
#. Tag: para
 
47
#, fuzzy, no-c-format
 
48
msgid "<literal>INFINITY</literal> is currently defined as 1,000,000 and addition/subtraction with it follows these three basic rules:"
 
49
msgstr "<literal>INFINITY</literal> viene attualmente definito come 1,000,000 ed addizioni/sottrazioni ad esso seguono queste 3 regole base:"
 
50
 
 
51
#. Tag: para
 
52
#, no-c-format
 
53
msgid "Any value + <literal>INFINITY</literal> = <literal>INFINITY</literal>"
 
54
msgstr "Qualsiasi valore + <literal>INFINITY</literal> = <literal>INFINITY</literal>"
 
55
 
 
56
#. Tag: para
 
57
#, no-c-format
 
58
msgid "Any value - <literal>INFINITY</literal> = -<literal>INFINITY</literal>"
 
59
msgstr "Qualsiasi valore - <literal>INFINITY</literal> = -<literal>INFINITY</literal>"
 
60
 
 
61
#. Tag: para
 
62
#, no-c-format
 
63
msgid "<literal>INFINITY</literal> - <literal>INFINITY</literal> = -<literal>INFINITY</literal>"
 
64
msgstr "<literal>INFINITY</literal> - <literal>INFINITY</literal> = -<literal>INFINITY</literal>"
 
65
 
 
66
#. Tag: title
 
67
#, no-c-format
 
68
msgid "Deciding Which Nodes a Resource Can Run On"
 
69
msgstr "Decidere quale nodo può erogare una risorsa"
 
70
 
 
71
#. Tag: para
 
72
#, fuzzy, no-c-format
 
73
msgid "<indexterm> <primary>Location Constraints</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Constraints</secondary><tertiary>Location</tertiary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Location</secondary> </indexterm> <indexterm> <primary>Location</primary> </indexterm> There are two alternative strategies for specifying which nodes a resources can run on. One way is to say that by default they can run anywhere and then create location constraints for nodes that are not allowed. The other option is to have nodes \"opt-in\"… to start with nothing able to run anywhere and selectively enable allowed nodes."
 
74
msgstr "Esistono due strategie alternative per specificare su quali nodi può funzionare una risorsa. Una via è quella di dire che di default la risorsa può funzionare ovunque e poi create dei vincoli posizionali (location constraints) per i nodi da escludere. L'altra via è quella di avere nodi che vengano avviati come inabili ad erogare risorse ed fare in modo che questi vengano abilitati selettivamente."
 
75
 
 
76
#. Tag: title
 
77
#, no-c-format
 
78
msgid "Options"
 
79
msgstr "Opzioni"
 
80
 
 
81
#. Tag: title
 
82
#, no-c-format
 
83
msgid "Options for Simple Location Constraints"
 
84
msgstr "Opzioni per semplici vincoli di locazione (location constraints)"
 
85
 
 
86
#. Tag: entry
 
87
#, no-c-format
 
88
msgid "Field"
 
89
msgstr "Campo"
 
90
 
 
91
#. Tag: entry
 
92
#, no-c-format
 
93
msgid "Description"
 
94
msgstr "Descrizione"
 
95
 
 
96
#. Tag: para
 
97
#, no-c-format
 
98
msgid "<literal>id</literal>"
 
99
msgstr ""
 
100
 
 
101
#. Tag: para
 
102
#, no-c-format
 
103
msgid "A unique name for the constraint <indexterm> <primary>id</primary><secondary>Location Constraints</secondary> </indexterm> <indexterm> <primary>Location Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Location</secondary><tertiary>id</tertiary> </indexterm> <indexterm> <primary>Location</primary><secondary>id</secondary> </indexterm> <indexterm> <primary>id</primary> </indexterm>"
 
104
msgstr ""
 
105
 
 
106
#. Tag: para
 
107
#, no-c-format
 
108
msgid "<literal>rsc</literal>"
 
109
msgstr ""
 
110
 
 
111
#. Tag: para
 
112
#, no-c-format
 
113
msgid "A resource name <indexterm> <primary>rsc</primary><secondary>Location Constraints</secondary> </indexterm> <indexterm> <primary>Location Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Location</secondary><tertiary>rsc</tertiary> </indexterm> <indexterm> <primary>Location</primary><secondary>rsc</secondary> </indexterm> <indexterm> <primary>rsc</primary> </indexterm>"
 
114
msgstr ""
 
115
 
 
116
#. Tag: para
 
117
#, no-c-format
 
118
msgid "<literal>node</literal>"
 
119
msgstr ""
 
120
 
 
121
#. Tag: para
 
122
#, no-c-format
 
123
msgid "A node’s name <indexterm> <primary>node</primary><secondary>Location Constraints</secondary> </indexterm> <indexterm> <primary>Location Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Location</secondary><tertiary>node</tertiary> </indexterm> <indexterm> <primary>Location</primary><secondary>node</secondary> </indexterm> <indexterm> <primary>node</primary> </indexterm>"
 
124
msgstr ""
 
125
 
 
126
#. Tag: para
 
127
#, no-c-format
 
128
msgid "<literal>score</literal>"
 
129
msgstr ""
 
130
 
 
131
#. Tag: para
 
132
#, fuzzy, no-c-format
 
133
msgid "Positive values indicate the resource should run on this node. Negative values indicate the resource should not run on this node."
 
134
msgstr "Valori positivi indicano che la risorsa può funzionare su questo nodo. Valori negativi indicano che la risorsa non può funzionare su questo nodo. Valori di +/- <literal>INFINITY</literal> modificano &#34;può&#34; in &#34;deve&#34;."
 
135
 
 
136
#. Tag: para
 
137
#, no-c-format
 
138
msgid "Values of +/- <literal>INFINITY</literal> change \"should\"/\"should not\" to \"must\"/\"must not\". <indexterm> <primary>score</primary><secondary>Location Constraints</secondary> </indexterm> <indexterm> <primary>Location Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Location</secondary><tertiary>score</tertiary> </indexterm> <indexterm> <primary>Location</primary><secondary>score</secondary> </indexterm> <indexterm> <primary>score</primary> </indexterm>"
 
139
msgstr ""
 
140
 
 
141
#. Tag: title
 
142
#, fuzzy, no-c-format
 
143
msgid "Asymmetrical \"Opt-In\" Clusters"
 
144
msgstr "Cluster &#34;Opt-In&#34; asimmetrici"
 
145
 
 
146
#. Tag: para
 
147
#, no-c-format
 
148
msgid "<indexterm> <primary>Asymmetrical Opt-In Clusters</primary> </indexterm> <indexterm> <primary>Cluster Type</primary><secondary>Asymmetrical Opt-In</secondary> </indexterm> <indexterm> <primary>Asymmetrical Opt-In</primary> </indexterm>"
 
149
msgstr ""
 
150
 
 
151
#. Tag: para
 
152
#, no-c-format
 
153
msgid "To create an opt-in cluster, start by preventing resources from running anywhere by default:"
 
154
msgstr ""
 
155
 
 
156
#. Tag: programlisting
 
157
#, no-c-format
 
158
msgid "# crm_attribute --attr-name symmetric-cluster --attr-value false"
 
159
msgstr ""
 
160
 
 
161
#. Tag: para
 
162
#, no-c-format
 
163
msgid "Then start enabling nodes. The following fragment says that the web server prefers <literal>sles-1</literal>, the database prefers <literal>sles-2</literal> and both can fail over to <literal>sles-3</literal> if their most preferred node fails."
 
164
msgstr ""
 
165
 
 
166
#. Tag: title
 
167
#, no-c-format
 
168
msgid "Example set of opt-in location constraints"
 
169
msgstr ""
 
170
 
 
171
#. Tag: programlisting
 
172
#, no-c-format
 
173
msgid ""
 
174
"&lt;constraints&gt;\n"
 
175
"    &lt;rsc_location id=\"loc-1\" rsc=\"Webserver\" node=\"sles-1\" score=\"200\"/&gt;\n"
 
176
"    &lt;rsc_location id=\"loc-2\" rsc=\"Webserver\" node=\"sles-3\" score=\"0\"/&gt;\n"
 
177
"    &lt;rsc_location id=\"loc-3\" rsc=\"Database\" node=\"sles-2\" score=\"200\"/&gt;\n"
 
178
"    &lt;rsc_location id=\"loc-4\" rsc=\"Database\" node=\"sles-3\" score=\"0\"/&gt;\n"
 
179
"&lt;/constraints&gt;"
 
180
msgstr ""
 
181
 
 
182
#. Tag: title
 
183
#, fuzzy, no-c-format
 
184
msgid "Symmetrical \"Opt-Out\" Clusters"
 
185
msgstr "Cluster &#34;Opt-In&#34; asimmetrici"
 
186
 
 
187
#. Tag: para
 
188
#, no-c-format
 
189
msgid "<indexterm> <primary>Symmetrical Opt-Out Clusters</primary> </indexterm> <indexterm> <primary>Cluster Type</primary><secondary>Symmetrical Opt-Out</secondary> </indexterm> <indexterm> <primary>Symmetrical Opt-Out</primary> </indexterm>"
 
190
msgstr ""
 
191
 
 
192
#. Tag: para
 
193
#, no-c-format
 
194
msgid "To create an opt-out cluster, start by allowing resources to run anywhere by default:"
 
195
msgstr ""
 
196
 
 
197
#. Tag: programlisting
 
198
#, no-c-format
 
199
msgid "# crm_attribute --attr-name symmetric-cluster --attr-value true"
 
200
msgstr ""
 
201
 
 
202
#. Tag: para
 
203
#, no-c-format
 
204
msgid "Then start disabling nodes. The following fragment is the equivalent of the above opt-in configuration."
 
205
msgstr ""
 
206
 
 
207
#. Tag: title
 
208
#, no-c-format
 
209
msgid "Example set of opt-out location constraints"
 
210
msgstr ""
 
211
 
 
212
#. Tag: programlisting
 
213
#, no-c-format
 
214
msgid ""
 
215
"&lt;constraints&gt;\n"
 
216
"    &lt;rsc_location id=\"loc-1\" rsc=\"Webserver\" node=\"sles-1\" score=\"200\"/&gt;\n"
 
217
"    &lt;rsc_location id=\"loc-2-dont-run\" rsc=\"Webserver\" node=\"sles-2\" score=\"-INFINITY\"/&gt;\n"
 
218
"    &lt;rsc_location id=\"loc-3-dont-run\" rsc=\"Database\" node=\"sles-1\" score=\"-INFINITY\"/&gt;\n"
 
219
"    &lt;rsc_location id=\"loc-4\" rsc=\"Database\" node=\"sles-2\" score=\"200\"/&gt;\n"
 
220
"&lt;/constraints&gt;"
 
221
msgstr ""
 
222
 
 
223
#. Tag: para
 
224
#, no-c-format
 
225
msgid "Whether you should choose opt-in or opt-out depends both on your personal preference and the make-up of your cluster. If most of your resources can run on most of the nodes, then an opt-out arrangement is likely to result in a simpler configuration. On the other-hand, if most resources can only run on a small subset of nodes an opt-in configuration might be simpler."
 
226
msgstr ""
 
227
 
 
228
#. Tag: title
 
229
#, no-c-format
 
230
msgid "What if Two Nodes Have the Same Score"
 
231
msgstr ""
 
232
 
 
233
#. Tag: para
 
234
#, no-c-format
 
235
msgid "If two nodes have the same score, then the cluster will choose one. This choice may seem random and may not be what was intended, however the cluster was not given enough information to know any better."
 
236
msgstr ""
 
237
 
 
238
#. Tag: title
 
239
#, no-c-format
 
240
msgid "Example of two resources that prefer two nodes equally"
 
241
msgstr ""
 
242
 
 
243
#. Tag: programlisting
 
244
#, no-c-format
 
245
msgid ""
 
246
"&lt;constraints&gt;\n"
 
247
"    &lt;rsc_location id=\"loc-1\" rsc=\"Webserver\" node=\"sles-1\" score=\"INFINITY\"/&gt;\n"
 
248
"    &lt;rsc_location id=\"loc-2\" rsc=\"Webserver\" node=\"sles-2\" score=\"INFINITY\"/&gt;\n"
 
249
"    &lt;rsc_location id=\"loc-3\" rsc=\"Database\" node=\"sles-1\" score=\"500\"/&gt;\n"
 
250
"    &lt;rsc_location id=\"loc-4\" rsc=\"Database\" node=\"sles-2\" score=\"300\"/&gt;\n"
 
251
"    &lt;rsc_location id=\"loc-5\" rsc=\"Database\" node=\"sles-2\" score=\"200\"/&gt;\n"
 
252
"&lt;/constraints&gt;"
 
253
msgstr ""
 
254
 
 
255
#. Tag: para
 
256
#, no-c-format
 
257
msgid "In the example above, assuming no other constraints and an inactive cluster, Webserver would probably be placed on sles-1 and Database on sles-2. It would likely have placed Webserver based on the node’s uname and Database based on the desire to spread the resource load evenly across the cluster. However other factors can also be involved in more complex configurations."
 
258
msgstr ""
 
259
 
 
260
#. Tag: title
 
261
#, no-c-format
 
262
msgid "Specifying in which Order Resources Should Start/Stop"
 
263
msgstr ""
 
264
 
 
265
#. Tag: para
 
266
#, no-c-format
 
267
msgid "<indexterm> <primary>Resource</primary><secondary>Constraints</secondary><tertiary>Ordering</tertiary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Ordering</secondary> </indexterm> <indexterm> <primary>Ordering</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Start Order</secondary> </indexterm> <indexterm> <primary>Start Order</primary> </indexterm> <indexterm> <primary>Ordering Constraints</primary> </indexterm> The way to specify the order in which resources should start is by creating <literal>rsc_order</literal> constraints."
 
268
msgstr ""
 
269
 
 
270
#. Tag: title
 
271
#, no-c-format
 
272
msgid "Properties of an Ordering Constraint"
 
273
msgstr ""
 
274
 
 
275
#. Tag: para
 
276
#, no-c-format
 
277
msgid "A unique name for the constraint <indexterm> <primary>id</primary><secondary>Ordering Constraints</secondary> </indexterm> <indexterm> <primary>Ordering Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Ordering</secondary><tertiary>id</tertiary> </indexterm> <indexterm> <primary>Ordering</primary><secondary>id</secondary> </indexterm> <indexterm> <primary>id</primary> </indexterm>"
 
278
msgstr ""
 
279
 
 
280
#. Tag: para
 
281
#, no-c-format
 
282
msgid "<literal>first</literal>"
 
283
msgstr ""
 
284
 
 
285
#. Tag: para
 
286
#, no-c-format
 
287
msgid "The name of a resource that must be started before the <literal>then</literal> resource is allowed to. <indexterm> <primary>first</primary><secondary>Ordering Constraints</secondary> </indexterm> <indexterm> <primary>Ordering Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Ordering</secondary><tertiary>first</tertiary> </indexterm> <indexterm> <primary>Ordering</primary><secondary>first</secondary> </indexterm> <indexterm> <primary>first</primary> </indexterm>"
 
288
msgstr ""
 
289
 
 
290
#. Tag: para
 
291
#, no-c-format
 
292
msgid "<literal>then</literal>"
 
293
msgstr ""
 
294
 
 
295
#. Tag: para
 
296
#, no-c-format
 
297
msgid "The name of a resource. This resource will start after the <literal>first</literal> resource. <indexterm> <primary>then</primary><secondary>Ordering Constraints</secondary> </indexterm> <indexterm> <primary>Ordering Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Ordering</secondary><tertiary>then</tertiary> </indexterm> <indexterm> <primary>Ordering</primary><secondary>then</secondary> </indexterm> <indexterm> <primary>then</primary> </indexterm>"
 
298
msgstr ""
 
299
 
 
300
#. Tag: para
 
301
#, no-c-format
 
302
msgid "<literal>kind</literal>"
 
303
msgstr ""
 
304
 
 
305
#. Tag: para
 
306
#, no-c-format
 
307
msgid "How to enforce the constraint. (<emphasis>Since 1.1.2</emphasis>)"
 
308
msgstr ""
 
309
 
 
310
#. Tag: para
 
311
#, no-c-format
 
312
msgid "* Optional - Just a suggestion. Only applies if both resources are starting/stopping."
 
313
msgstr ""
 
314
 
 
315
#. Tag: para
 
316
#, no-c-format
 
317
msgid "* Mandatory - Always. If <emphasis>first</emphasis> is stopping or cannot be started, <emphasis>then</emphasis> must be stopped."
 
318
msgstr ""
 
319
 
 
320
#. Tag: para
 
321
#, no-c-format
 
322
msgid "* Serialize - Ensure that no two stop/start actions occur concurrently for a set of resources."
 
323
msgstr ""
 
324
 
 
325
#. Tag: para
 
326
#, no-c-format
 
327
msgid "<indexterm> <primary>kind</primary><secondary>Ordering Constraints</secondary> </indexterm> <indexterm> <primary>Ordering Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Ordering</secondary><tertiary>kind</tertiary> </indexterm> <indexterm> <primary>Ordering</primary><secondary>kind</secondary> </indexterm> <indexterm> <primary>kind</primary> </indexterm>"
 
328
msgstr ""
 
329
 
 
330
#. Tag: para
 
331
#, no-c-format
 
332
msgid "<literal>symmetrical</literal>"
 
333
msgstr ""
 
334
 
 
335
#. Tag: para
 
336
#, no-c-format
 
337
msgid "If true, which is the default, stop the resources in the reverse order. Default value: <emphasis>true</emphasis> <indexterm> <primary>symmetrical</primary><secondary>Ordering Constraints</secondary> </indexterm> <indexterm> <primary>Ordering Constraints</primary> </indexterm> <indexterm> <primary>Ordering Constraints</primary><secondary>symmetrical</secondary> </indexterm> <indexterm> <primary>symmetrical</primary> </indexterm>"
 
338
msgstr ""
 
339
 
 
340
#. Tag: title
 
341
#, no-c-format
 
342
msgid "Mandatory Ordering"
 
343
msgstr ""
 
344
 
 
345
#. Tag: para
 
346
#, no-c-format
 
347
msgid "When the <literal>then</literal> resource cannot run without the <literal>first</literal> resource being active, one should use mandatory constraints. To specify a constraint is mandatory, use scores greater than zero. This will ensure that the then resource will react when the first resource changes state."
 
348
msgstr ""
 
349
 
 
350
#. Tag: para
 
351
#, no-c-format
 
352
msgid "If the <literal>first</literal> resource was running and is stopped, the <literal>then</literal> resource will also be stopped (if it is running)."
 
353
msgstr ""
 
354
 
 
355
#. Tag: para
 
356
#, no-c-format
 
357
msgid "If the <literal>first</literal> resource was not running and cannot be started, the <literal>then</literal> resource will be stopped (if it is running)."
 
358
msgstr ""
 
359
 
 
360
#. Tag: para
 
361
#, no-c-format
 
362
msgid "If the <literal>first</literal> resource is (re)started while the <literal>then</literal> resource is running, the <literal>then</literal> resource will be stopped and restarted."
 
363
msgstr ""
 
364
 
 
365
#. Tag: title
 
366
#, no-c-format
 
367
msgid "Advisory Ordering"
 
368
msgstr ""
 
369
 
 
370
#. Tag: para
 
371
#, no-c-format
 
372
msgid "On the other hand, when <literal>score=\"0\"</literal> is specified for a constraint, the constraint is considered optional and only has an effect when both resources are stopping and/or starting. Any change in state by the <literal>first</literal> resource will have no effect on the <literal>then</literal> resource."
 
373
msgstr ""
 
374
 
 
375
#. Tag: title
 
376
#, no-c-format
 
377
msgid "Example of an optional and mandatory ordering constraint"
 
378
msgstr ""
 
379
 
 
380
#. Tag: programlisting
 
381
#, no-c-format
 
382
msgid ""
 
383
"&lt;constraints&gt;\n"
 
384
"    &lt;rsc_order id=\"order-1\" first=\"Database\" then=\"Webserver\" /&gt;\n"
 
385
"    &lt;rsc_order id=\"order-2\" first=\"IP\" then=\"Webserver\" score=\"0\"/&gt;\n"
 
386
"&lt;/constraints&gt;"
 
387
msgstr ""
 
388
 
 
389
#. Tag: para
 
390
#, no-c-format
 
391
msgid "Some additional information on ordering constraints can be found in the document <ulink url=\"http://www.clusterlabs.org/mediawiki/images/d/d6/Ordering_Explained.pdf\">Ordering Explained</ulink>."
 
392
msgstr ""
 
393
 
 
394
#. Tag: title
 
395
#, no-c-format
 
396
msgid "Placing Resources Relative to other Resources"
 
397
msgstr ""
 
398
 
 
399
#. Tag: para
 
400
#, no-c-format
 
401
msgid "<indexterm> <primary>Resource</primary><secondary>Constraints</secondary><tertiary>Colocation</tertiary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Colocation</secondary> </indexterm> <indexterm> <primary>Colocation</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Location Relative to other Resources</secondary> </indexterm> <indexterm> <primary>Location Relative to other Resources</primary> </indexterm> When the location of one resource depends on the location of another one, we call this colocation."
 
402
msgstr ""
 
403
 
 
404
#. Tag: para
 
405
#, no-c-format
 
406
msgid "There is an important side-effect of creating a colocation constraint between two resources: it affects the order in which resources are assigned to a node. If you think about it, it’s somewhat obvious. You can’t place A relative to B unless you know where B is. <footnote><para> While the human brain is sophisticated enough to read the constraint in any order and choose the correct one depending on the situation, the cluster is not quite so smart. Yet. </para></footnote>"
 
407
msgstr ""
 
408
 
 
409
#. Tag: para
 
410
#, no-c-format
 
411
msgid "So when you are creating colocation constraints, it is important to consider whether you should colocate A with B or B with A."
 
412
msgstr ""
 
413
 
 
414
#. Tag: para
 
415
#, no-c-format
 
416
msgid "Another thing to keep in mind is that, assuming A is collocated with B, the cluster will also take into account A’s preferences when deciding which node to choose for B."
 
417
msgstr ""
 
418
 
 
419
#. Tag: para
 
420
#, no-c-format
 
421
msgid "For a detailed look at exactly how this occurs, see the <ulink url=\"http://www.clusterlabs.org/mediawiki/images/6/61/Colocation_Explained.pdf\">Colocation Explained</ulink> document."
 
422
msgstr ""
 
423
 
 
424
#. Tag: title
 
425
#, no-c-format
 
426
msgid "Properties of a Collocation Constraint"
 
427
msgstr ""
 
428
 
 
429
#. Tag: para
 
430
#, no-c-format
 
431
msgid "A unique name for the constraint. <indexterm> <primary>id</primary><secondary>Colocation Constraints</secondary> </indexterm> <indexterm> <primary>Colocation Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Colocation</secondary><tertiary>id</tertiary> </indexterm> <indexterm> <primary>Colocation</primary><secondary>id</secondary> </indexterm> <indexterm> <primary>id</primary> </indexterm>"
 
432
msgstr ""
 
433
 
 
434
#. Tag: para
 
435
#, no-c-format
 
436
msgid "The colocation source. If the constraint cannot be satisfied, the cluster may decide not to allow the resource to run at all. <indexterm> <primary>rsc</primary><secondary>Colocation Constraints</secondary> </indexterm> <indexterm> <primary>Colocation Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Colocation</secondary><tertiary>rsc</tertiary> </indexterm> <indexterm> <primary>Colocation</primary><secondary>rsc</secondary> </indexterm> <indexterm> <primary>rsc</primary> </indexterm>"
 
437
msgstr ""
 
438
 
 
439
#. Tag: para
 
440
#, no-c-format
 
441
msgid "<literal>with-rsc</literal>"
 
442
msgstr ""
 
443
 
 
444
#. Tag: para
 
445
#, no-c-format
 
446
msgid "The colocation target. The cluster will decide where to put this resource first and then decide where to put the resource in the <literal>rsc</literal> field. <indexterm> <primary>with-rsc</primary><secondary>Colocation Constraints</secondary> </indexterm> <indexterm> <primary>Colocation Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Colocation</secondary><tertiary>with-rsc</tertiary> </indexterm> <indexterm> <primary>Colocation</primary><secondary>with-rsc</secondary> </indexterm> <indexterm> <primary>with-rsc</primary> </indexterm>"
 
447
msgstr ""
 
448
 
 
449
#. Tag: para
 
450
#, no-c-format
 
451
msgid "Positive values indicate the resource should run on the same node. Negative values indicate the resources should not run on the same node. Values of +/- <literal>INFINITY</literal> change \"should\" to \"must\". <indexterm> <primary>score</primary><secondary>Colocation Constraints</secondary> </indexterm> <indexterm> <primary>Colocation Constraints</primary> </indexterm> <indexterm> <primary>Constraints</primary><secondary>Colocation</secondary><tertiary>score</tertiary> </indexterm> <indexterm> <primary>Colocation</primary><secondary>score</secondary> </indexterm> <indexterm> <primary>score</primary> </indexterm>"
 
452
msgstr ""
 
453
 
 
454
#. Tag: title
 
455
#, no-c-format
 
456
msgid "Mandatory Placement"
 
457
msgstr ""
 
458
 
 
459
#. Tag: para
 
460
#, no-c-format
 
461
msgid "Mandatory placement occurs any time the constraint’s score is <literal>+INFINITY</literal> or <literal>-INFINITY</literal>. In such cases, if the constraint can’t be satisfied, then the <literal>rsc</literal> resource is not permitted to run. For <literal>score=INFINITY</literal>, this includes cases where the <literal>with-rsc</literal> resource is not active."
 
462
msgstr ""
 
463
 
 
464
#. Tag: para
 
465
#, no-c-format
 
466
msgid "If you need <literal>resource1</literal> to always run on the same machine as <literal>resource2</literal>, you would add the following constraint:"
 
467
msgstr ""
 
468
 
 
469
#. Tag: title
 
470
#, no-c-format
 
471
msgid "An example colocation constraint"
 
472
msgstr ""
 
473
 
 
474
#. Tag: programlisting
 
475
#, no-c-format
 
476
msgid "&lt;rsc_colocation id=\"colocate\" rsc=\"resource1\" with-rsc=\"resource2\" score=\"INFINITY\"/&gt;"
 
477
msgstr ""
 
478
 
 
479
#. Tag: para
 
480
#, no-c-format
 
481
msgid "Remember, because <literal>INFINITY</literal> was used, if <literal>resource2</literal> can’t run on any of the cluster nodes (for whatever reason) then <literal>resource1</literal> will not be allowed to run."
 
482
msgstr ""
 
483
 
 
484
#. Tag: para
 
485
#, no-c-format
 
486
msgid "Alternatively, you may want the opposite… that <literal>resource1</literal> cannot run on the same machine as <literal>resource2</literal>. In this case use <literal>score=\"-INFINITY\"</literal>"
 
487
msgstr ""
 
488
 
 
489
#. Tag: title
 
490
#, no-c-format
 
491
msgid "An example anti-colocation constraint"
 
492
msgstr ""
 
493
 
 
494
#. Tag: programlisting
 
495
#, no-c-format
 
496
msgid "&lt;rsc_colocation id=\"anti-colocate\" rsc=\"resource1\" with-rsc=\"resource2\" score=\"-INFINITY\"/&gt;"
 
497
msgstr ""
 
498
 
 
499
#. Tag: para
 
500
#, no-c-format
 
501
msgid "Again, by specifying <literal>-INFINTY</literal>, the constraint is binding. So if the only place left to run is where <literal>resource2</literal> already is, then <literal>resource1</literal> may not run anywhere."
 
502
msgstr ""
 
503
 
 
504
#. Tag: title
 
505
#, no-c-format
 
506
msgid "Advisory Placement"
 
507
msgstr ""
 
508
 
 
509
#. Tag: para
 
510
#, no-c-format
 
511
msgid "If mandatory placement is about \"must\" and \"must not\", then advisory placement is the \"I’d prefer if\" alternative. For constraints with scores greater than <literal>-INFINITY</literal> and less than <literal>INFINITY</literal>, the cluster will try and accommodate your wishes but may ignore them if the alternative is to stop some of the cluster resources."
 
512
msgstr ""
 
513
 
 
514
#. Tag: para
 
515
#, no-c-format
 
516
msgid "Like in life, where if enough people prefer something it effectively becomes mandatory, advisory colocation constraints can combine with other elements of the configuration to behave as if they were mandatory."
 
517
msgstr ""
 
518
 
 
519
#. Tag: title
 
520
#, no-c-format
 
521
msgid "An example advisory-only colocation constraint"
 
522
msgstr ""
 
523
 
 
524
#. Tag: programlisting
 
525
#, no-c-format
 
526
msgid "&lt;rsc_colocation id=\"colocate-maybe\" rsc=\"resource1\" with-rsc=\"resource2\" score=\"500\"/&gt;"
 
527
msgstr ""
 
528
 
 
529
#. Tag: title
 
530
#, no-c-format
 
531
msgid "Ordering Sets of Resources"
 
532
msgstr ""
 
533
 
 
534
#. Tag: para
 
535
#, no-c-format
 
536
msgid "A common situation is for an administrator to create a chain of ordered resources, such as:"
 
537
msgstr ""
 
538
 
 
539
#. Tag: title
 
540
#, no-c-format
 
541
msgid "A chain of ordered resources"
 
542
msgstr ""
 
543
 
 
544
#. Tag: programlisting
 
545
#, no-c-format
 
546
msgid ""
 
547
"&lt;constraints&gt;\n"
 
548
"    &lt;rsc_order id=\"order-1\" first=\"A\" then=\"B\" /&gt;\n"
 
549
"    &lt;rsc_order id=\"order-2\" first=\"B\" then=\"C\" /&gt;\n"
 
550
"    &lt;rsc_order id=\"order-3\" first=\"C\" then=\"D\" /&gt;\n"
 
551
"&lt;/constraints&gt;"
 
552
msgstr ""
 
553
 
 
554
#. Tag: title
 
555
#, no-c-format
 
556
msgid "Ordered Set"
 
557
msgstr ""
 
558
 
 
559
#. Tag: title
 
560
#, no-c-format
 
561
msgid "Visual representation of the four resources' start order for the above constraints"
 
562
msgstr ""
 
563
 
 
564
#. Tag: phrase
 
565
#, no-c-format
 
566
msgid "Ordered set"
 
567
msgstr ""
 
568
 
 
569
#. Tag: para
 
570
#, no-c-format
 
571
msgid "To simplify this situation, there is an alternate format for ordering constraints:"
 
572
msgstr ""
 
573
 
 
574
#. Tag: title
 
575
#, no-c-format
 
576
msgid "A chain of ordered resources expressed as a set"
 
577
msgstr ""
 
578
 
 
579
#. Tag: programlisting
 
580
#, no-c-format
 
581
msgid ""
 
582
"&lt;constraints&gt;\n"
 
583
"    &lt;rsc_order id=\"order-1\"&gt;\n"
 
584
"      &lt;resource_set id=\"ordered-set-example\" sequential=\"true\"&gt;\n"
 
585
"        &lt;resource_ref id=\"A\"/&gt;\n"
 
586
"        &lt;resource_ref id=\"B\"/&gt;\n"
 
587
"        &lt;resource_ref id=\"C\"/&gt;\n"
 
588
"        &lt;resource_ref id=\"D\"/&gt;\n"
 
589
"      &lt;/resource_set&gt;\n"
 
590
"    &lt;/rsc_order&gt;\n"
 
591
"&lt;/constraints&gt;"
 
592
msgstr ""
 
593
 
 
594
#. Tag: para
 
595
#, no-c-format
 
596
msgid "Resource sets have the same ordering semantics as groups."
 
597
msgstr ""
 
598
 
 
599
#. Tag: title
 
600
#, no-c-format
 
601
msgid "A group resource with the equivalent ordering rules"
 
602
msgstr ""
 
603
 
 
604
#. Tag: programlisting
 
605
#, no-c-format
 
606
msgid ""
 
607
"&lt;group id=\"dummy\"&gt;\n"
 
608
"    &lt;primitive id=\"A\" .../&gt;\n"
 
609
"    &lt;primitive id=\"B\" .../&gt;\n"
 
610
"    &lt;primitive id=\"C\" .../&gt;\n"
 
611
"    &lt;primitive id=\"D\" .../&gt;\n"
 
612
"&lt;/group&gt;"
 
613
msgstr ""
 
614
 
 
615
#. Tag: para
 
616
#, no-c-format
 
617
msgid "While the set-based format is not less verbose, it is significantly easier to get right and maintain. It can also be expanded to allow ordered sets of (un)ordered resources. In the example below, <literal>rscA</literal> and <literal>rscB</literal> can both start in parallel, as can <literal>rscC</literal> and <literal>rscD</literal>, however <literal>rscC</literal> and <literal>rscD</literal> can only start once <emphasis>both</emphasis> <literal>rscA</literal> <emphasis>and</emphasis> <literal>rscB</literal> are active."
 
618
msgstr ""
 
619
 
 
620
#. Tag: title
 
621
#, no-c-format
 
622
msgid "Ordered sets of unordered resources"
 
623
msgstr ""
 
624
 
 
625
#. Tag: programlisting
 
626
#, no-c-format
 
627
msgid ""
 
628
"&lt;constraints&gt;\n"
 
629
"    &lt;rsc_order id=\"order-1\"&gt;\n"
 
630
"      &lt;resource_set id=\"ordered-set-1\" sequential=\"false\"&gt;\n"
 
631
"        &lt;resource_ref id=\"A\"/&gt;\n"
 
632
"        &lt;resource_ref id=\"B\"/&gt;\n"
 
633
"      &lt;/resource_set&gt;\n"
 
634
"      &lt;resource_set id=\"ordered-set-2\" sequential=\"false\"&gt;\n"
 
635
"        &lt;resource_ref id=\"C\"/&gt;\n"
 
636
"        &lt;resource_ref id=\"D\"/&gt;\n"
 
637
"      &lt;/resource_set&gt;\n"
 
638
"    &lt;/rsc_order&gt;\n"
 
639
"  &lt;/constraints&gt;"
 
640
msgstr ""
 
641
 
 
642
#. Tag: title
 
643
#, no-c-format
 
644
msgid "Two Sets of Unordered Resources"
 
645
msgstr ""
 
646
 
 
647
#. Tag: title
 
648
#, no-c-format
 
649
msgid "Visual representation of the start order for two ordered sets of unordered resources"
 
650
msgstr ""
 
651
 
 
652
#. Tag: phrase
 
653
#, no-c-format
 
654
msgid "Two ordered sets"
 
655
msgstr ""
 
656
 
 
657
#. Tag: para
 
658
#, no-c-format
 
659
msgid "Of course either set — or both sets — of resources can also be internally ordered (by setting <literal>sequential=\"true\"</literal>) and there is no limit to the number of sets that can be specified."
 
660
msgstr ""
 
661
 
 
662
#. Tag: title
 
663
#, no-c-format
 
664
msgid "Advanced use of set ordering - Three ordered sets, two of which are internally unordered"
 
665
msgstr ""
 
666
 
 
667
#. Tag: programlisting
 
668
#, no-c-format
 
669
msgid ""
 
670
"&lt;constraints&gt;\n"
 
671
"    &lt;rsc_order id=\"order-1\"&gt;\n"
 
672
"      &lt;resource_set id=\"ordered-set-1\" sequential=\"false\"&gt;\n"
 
673
"        &lt;resource_ref id=\"A\"/&gt;\n"
 
674
"        &lt;resource_ref id=\"B\"/&gt;\n"
 
675
"      &lt;/resource_set&gt;\n"
 
676
"      &lt;resource_set id=\"ordered-set-2\" sequential=\"true\"&gt;\n"
 
677
"        &lt;resource_ref id=\"C\"/&gt;\n"
 
678
"        &lt;resource_ref id=\"D\"/&gt;\n"
 
679
"      &lt;/resource_set&gt;\n"
 
680
"      &lt;resource_set id=\"ordered-set-3\" sequential=\"false\"&gt;\n"
 
681
"        &lt;resource_ref id=\"E\"/&gt;\n"
 
682
"        &lt;resource_ref id=\"F\"/&gt;\n"
 
683
"      &lt;/resource_set&gt;\n"
 
684
"    &lt;/rsc_order&gt;\n"
 
685
"&lt;/constraints&gt;"
 
686
msgstr ""
 
687
 
 
688
#. Tag: title
 
689
#, no-c-format
 
690
msgid "Three Resources Sets"
 
691
msgstr ""
 
692
 
 
693
#. Tag: title
 
694
#, no-c-format
 
695
msgid "Visual representation of the start order for the three sets defined above"
 
696
msgstr ""
 
697
 
 
698
#. Tag: phrase
 
699
#, no-c-format
 
700
msgid "Three ordered sets"
 
701
msgstr ""
 
702
 
 
703
#. Tag: title
 
704
#, no-c-format
 
705
msgid "Collocating Sets of Resources"
 
706
msgstr ""
 
707
 
 
708
#. Tag: para
 
709
#, no-c-format
 
710
msgid "Another common situation is for an administrator to create a set of collocated resources. Previously this was possible either by defining a resource group (See <xref linkend=\"group-resources\" />) which could not always accurately express the design; or by defining each relationship as an individual constraint, causing a constraint explosion as the number of resources and combinations grew."
 
711
msgstr ""
 
712
 
 
713
#. Tag: title
 
714
#, no-c-format
 
715
msgid "A chain of collocated resources"
 
716
msgstr ""
 
717
 
 
718
#. Tag: programlisting
 
719
#, no-c-format
 
720
msgid ""
 
721
"&lt;constraints&gt;\n"
 
722
"    &lt;rsc_colocation id=\"coloc-1\" rsc=\"B\" with-rsc=\"A\" score=\"INFINITY\"/&gt;\n"
 
723
"    &lt;rsc_colocation id=\"coloc-2\" rsc=\"C\" with-rsc=\"B\" score=\"INFINITY\"/&gt;\n"
 
724
"    &lt;rsc_colocation id=\"coloc-3\" rsc=\"D\" with-rsc=\"C\" score=\"INFINITY\"/&gt;\n"
 
725
"&lt;/constraints&gt;"
 
726
msgstr ""
 
727
 
 
728
#. Tag: para
 
729
#, no-c-format
 
730
msgid "To make things easier, we allow an alternate form of colocation constraints using <literal>resource_sets</literal>. Just like the expanded version, a resource that can’t be active also prevents any resource that must be collocated with it from being active. For example, if <literal>B was</literal> not able to run, then both <literal>C (+and by inference +D)</literal> must also remain stopped."
 
731
msgstr ""
 
732
 
 
733
#. Tag: title
 
734
#, no-c-format
 
735
msgid "The equivalent colocation chain expressed using <literal>resource_sets</literal>"
 
736
msgstr ""
 
737
 
 
738
#. Tag: programlisting
 
739
#, no-c-format
 
740
msgid ""
 
741
"&lt;constraints&gt;\n"
 
742
"    &lt;rsc_colocation id=\"coloc-1\" score=\"INFINITY\" &gt;\n"
 
743
"      &lt;resource_set id=\"collocated-set-example\" sequential=\"true\"&gt;\n"
 
744
"        &lt;resource_ref id=\"A\"/&gt;\n"
 
745
"        &lt;resource_ref id=\"B\"/&gt;\n"
 
746
"        &lt;resource_ref id=\"C\"/&gt;\n"
 
747
"        &lt;resource_ref id=\"D\"/&gt;\n"
 
748
"      &lt;/resource_set&gt;\n"
 
749
"    &lt;/rsc_colocation&gt;\n"
 
750
"&lt;/constraints&gt;"
 
751
msgstr ""
 
752
 
 
753
#. Tag: para
 
754
#, no-c-format
 
755
msgid "Resource sets have the same colocation semantics as groups."
 
756
msgstr ""
 
757
 
 
758
#. Tag: title
 
759
#, no-c-format
 
760
msgid "A group resource with the equivalent colocation rules"
 
761
msgstr ""
 
762
 
 
763
#. Tag: para
 
764
#, no-c-format
 
765
msgid "This notation can also be used in this context to tell the cluster that a set of resources must all be located with a common peer, but have no dependencies on each other. In this scenario, unlike the previous, <literal>B would</literal> be allowed to remain active even if <literal>A or</literal> <literal>C</literal> (or both) were inactive."
 
766
msgstr ""
 
767
 
 
768
#. Tag: title
 
769
#, no-c-format
 
770
msgid "Using colocation sets to specify a common peer."
 
771
msgstr ""
 
772
 
 
773
#. Tag: programlisting
 
774
#, no-c-format
 
775
msgid ""
 
776
"&lt;constraints&gt;\n"
 
777
"    &lt;rsc_colocation id=\"coloc-1\" score=\"INFINITY\" &gt;\n"
 
778
"      &lt;resource_set id=\"collocated-set-1\" sequential=\"false\"&gt;\n"
 
779
"        &lt;resource_ref id=\"A\"/&gt;\n"
 
780
"        &lt;resource_ref id=\"B\"/&gt;\n"
 
781
"        &lt;resource_ref id=\"C\"/&gt;\n"
 
782
"      &lt;/resource_set&gt;\n"
 
783
"      &lt;resource_set id=\"collocated-set-2\" sequential=\"true\"&gt;\n"
 
784
"        &lt;resource_ref id=\"D\"/&gt;\n"
 
785
"      &lt;/resource_set&gt;\n"
 
786
"    &lt;/rsc_colocation&gt;\n"
 
787
"&lt;/constraints&gt;"
 
788
msgstr ""
 
789
 
 
790
#. Tag: para
 
791
#, no-c-format
 
792
msgid "Of course there is no limit to the number and size of the sets used. The only thing that matters is that in order for any member of set N to be active, all the members of set N+1 must also be active (and naturally on the same node); and if a set has <literal>sequential=\"true\"</literal>, then in order for member M to be active, member M+1 must also be active. You can even specify the role in which the members of a set must be in using the set’s role attribute."
 
793
msgstr ""
 
794
 
 
795
#. Tag: title
 
796
#, no-c-format
 
797
msgid "A colocation chain where the members of the middle set have no inter-dependencies and the last has master status."
 
798
msgstr ""
 
799
 
 
800
#. Tag: programlisting
 
801
#, no-c-format
 
802
msgid ""
 
803
"&lt;constraints&gt;\n"
 
804
"    &lt;rsc_colocation id=\"coloc-1\" score=\"INFINITY\" &gt;\n"
 
805
"      &lt;resource_set id=\"collocated-set-1\" sequential=\"true\"&gt;\n"
 
806
"        &lt;resource_ref id=\"A\"/&gt;\n"
 
807
"        &lt;resource_ref id=\"B\"/&gt;\n"
 
808
"      &lt;/resource_set&gt;\n"
 
809
"      &lt;resource_set id=\"collocated-set-2\" sequential=\"false\"&gt;\n"
 
810
"        &lt;resource_ref id=\"C\"/&gt;\n"
 
811
"        &lt;resource_ref id=\"D\"/&gt;\n"
 
812
"        &lt;resource_ref id=\"E\"/&gt;\n"
 
813
"      &lt;/resource_set&gt;\n"
 
814
"      &lt;resource_set id=\"collocated-set-2\" sequential=\"true\" role=\"Master\"&gt;\n"
 
815
"        &lt;resource_ref id=\"F\"/&gt;\n"
 
816
"        &lt;resource_ref id=\"G\"/&gt;\n"
 
817
"      &lt;/resource_set&gt;\n"
 
818
"    &lt;/rsc_colocation&gt;\n"
 
819
"&lt;/constraints&gt;"
 
820
msgstr ""
 
821
 
 
822
#. Tag: title
 
823
#, no-c-format
 
824
msgid "Another Three Resources Sets"
 
825
msgstr ""
 
826
 
 
827
#. Tag: title
 
828
#, no-c-format
 
829
msgid "Visual representation of a colocation chain where the members of the middle set have no inter-dependencies"
 
830
msgstr ""
 
831
 
 
832
#. Tag: phrase
 
833
#, no-c-format
 
834
msgid "Colocation chain"
 
835
msgstr ""
 
836
 
 
837
#~ msgid "id"
 
838
#~ msgstr "id"
 
839
 
 
840
#~ msgid "A unique name for the constraint"
 
841
#~ msgstr "Nome univoco per il vincolo (constraint)"
 
842
 
 
843
#~ msgid "rsc"
 
844
#~ msgstr "rsc"
 
845
 
 
846
#~ msgid "A resource name"
 
847
#~ msgstr "Nome della risorsa"
 
848
 
 
849
#~ msgid "node"
 
850
#~ msgstr "node"
 
851
 
 
852
#~ msgid "A node&#39;s uname"
 
853
#~ msgstr "uname del nodo"
 
854
 
 
855
#~ msgid "score"
 
856
#~ msgstr "punteggio"