File: Ch-Rules.pot

package info (click to toggle)
pacemaker 2.0.1-5%2Bdeb10u2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 55,644 kB
  • sloc: xml: 130,752; ansic: 96,958; python: 5,692; sh: 4,852; makefile: 1,082
file content (937 lines) | stat: -rw-r--r-- 40,881 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
# 
# AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: 0\n"
"POT-Creation-Date: 2018-05-14 18:03-0500\n"
"PO-Revision-Date: 2018-05-14 18:03-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 "Rules"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<anchor id=\"ch-rules\" xreflabel=\"Chapter 8, Rules\"></anchor> <indexterm> <primary>Resource</primary><secondary>Constraint</secondary><tertiary>Rule</tertiary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Rule</secondary> </indexterm> <indexterm> <primary>Rule</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Rules can be used to make your configuration more dynamic. One common example is to set one value for <literal>resource-stickiness</literal> during working hours, to prevent resources from being moved back to their most preferred location, and another on weekends when no-one is around to notice an outage."
msgstr ""

#. Tag: para
#, no-c-format
msgid "Another use of rules might be to assign machines to different processing groups (using a node attribute) based on time and to then use that attribute when creating location constraints."
msgstr ""

#. Tag: para
#, no-c-format
msgid "Each rule can contain a number of expressions, date-expressions and even other rules. The results of the expressions are combined based on the rule’s <literal>boolean-op</literal> field to determine if the rule ultimately evaluates to <literal>true</literal> or <literal>false</literal>. What happens next depends on the context in which the rule is being used."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Rule Properties"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Properties of a Rule"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "Field"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "Default"
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 rule (required) <indexterm> <primary>id</primary><secondary>Constraint Rule</secondary> </indexterm> <indexterm> <primary>Constraint Rule</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Rule</secondary><tertiary>id</tertiary> </indexterm> <indexterm> <primary>Rule</primary><secondary>id</secondary> </indexterm> <indexterm> <primary>id</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>role</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>Started</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Limits the rule to apply only when the resource is in the specified role. Allowed values are <literal>Started</literal>, <literal>Slave</literal>, and <literal>Master</literal>. A rule with <literal>role=\"Master\"</literal> cannot determine the initial location of a clone instance and will only affect which of the active instances will be promoted. <indexterm> <primary>role</primary><secondary>Constraint Rule</secondary> </indexterm> <indexterm> <primary>Constraint Rule</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Rule</secondary><tertiary>role</tertiary> </indexterm> <indexterm> <primary>Rule</primary><secondary>role</secondary> </indexterm> <indexterm> <primary>role</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>score</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The score to apply if the rule evaluates to <literal>true</literal>. Limited to use in rules that are part of location constraints. <indexterm> <primary>score</primary><secondary>Constraint Rule</secondary> </indexterm> <indexterm> <primary>Constraint Rule</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Rule</secondary><tertiary>score</tertiary> </indexterm> <indexterm> <primary>Rule</primary><secondary>score</secondary> </indexterm> <indexterm> <primary>score</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>score-attribute</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The node attribute to look up and use as a score if the rule evaluates to <literal>true</literal>. Limited to use in rules that are part of location constraints. <indexterm> <primary>score-attribute</primary><secondary>Constraint Rule</secondary> </indexterm> <indexterm> <primary>Constraint Rule</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Rule</secondary><tertiary>score-attribute</tertiary> </indexterm> <indexterm> <primary>Rule</primary><secondary>score-attribute</secondary> </indexterm> <indexterm> <primary>score-attribute</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>boolean-op</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>and</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "How to combine the result of multiple expression objects. Allowed values are <literal>and</literal> and <literal>or</literal>. <indexterm> <primary>boolean-op</primary><secondary>Constraint Rule</secondary> </indexterm> <indexterm> <primary>Constraint Rule</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Rule</secondary><tertiary>boolean-op</tertiary> </indexterm> <indexterm> <primary>Rule</primary><secondary>boolean-op</secondary> </indexterm> <indexterm> <primary>boolean-op</primary> </indexterm>"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Node Attribute Expressions"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Resource</primary><secondary>Constraint</secondary><tertiary>Attribute Expression</tertiary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Attribute Expression</secondary> </indexterm> <indexterm> <primary>Attribute Expression</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Expression objects are used to control a resource based on the attributes defined by a node or nodes."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Properties of an Expression"
msgstr ""

#. Tag: para
#, no-c-format
msgid "A unique name for the expression (required) <indexterm> <primary>id</primary><secondary>Constraint Expression</secondary> </indexterm> <indexterm> <primary>Constraint Expression</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Attribute Expression</secondary><tertiary>id</tertiary> </indexterm> <indexterm> <primary>Attribute Expression</primary><secondary>id</secondary> </indexterm> <indexterm> <primary>id</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>attribute</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The node attribute to test (required) <indexterm> <primary>attribute</primary><secondary>Constraint Expression</secondary> </indexterm> <indexterm> <primary>Constraint Expression</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Attribute Expression</secondary><tertiary>attribute</tertiary> </indexterm> <indexterm> <primary>Attribute Expression</primary><secondary>attribute</secondary> </indexterm> <indexterm> <primary>attribute</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>type</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>string</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Determines how the value(s) should be tested. Allowed values are <literal>string</literal>, <literal>integer</literal>, and <literal>version</literal>. <indexterm> <primary>type</primary><secondary>Constraint Expression</secondary> </indexterm> <indexterm> <primary>Constraint Expression</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Attribute Expression</secondary><tertiary>type</tertiary> </indexterm> <indexterm> <primary>Attribute Expression</primary><secondary>type</secondary> </indexterm> <indexterm> <primary>type</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>operation</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The comparison to perform (required). Allowed values:"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>lt:</literal> True if the value of the node’s <literal>attribute</literal> is less than <literal>value</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>gt:</literal> True if the value of the node’s <literal>attribute</literal> is greater than <literal>value</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>lte:</literal> True if the value of the node’s <literal>attribute</literal> is less than or equal to <literal>value</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>gte:</literal> True if the value of the node’s <literal>attribute</literal> is greater than or equal to <literal>value</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>eq:</literal> True if the value of the node’s <literal>attribute</literal> is equal to <literal>value</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>ne:</literal> True if the value of the node’s <literal>attribute</literal> is not equal to <literal>value</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>defined:</literal> True if the node has the named attribute"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>not_defined:</literal> True if the node does not have the named attribute <indexterm> <primary>operation</primary><secondary>Constraint Expression</secondary> </indexterm> <indexterm> <primary>Constraint Expression</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Attribute Expression</secondary><tertiary>operation</tertiary> </indexterm> <indexterm> <primary>Attribute Expression</primary><secondary>operation</secondary> </indexterm> <indexterm> <primary>operation</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>value</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "User-supplied value for comparison (required) <indexterm> <primary>value</primary><secondary>Constraint Expression</secondary> </indexterm> <indexterm> <primary>Constraint Expression</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Attribute Expression</secondary><tertiary>value</tertiary> </indexterm> <indexterm> <primary>Attribute Expression</primary><secondary>value</secondary> </indexterm> <indexterm> <primary>value</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>value-source</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>literal</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "How the <literal>value</literal> is derived. Allowed values:"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>literal</literal>: <literal>value</literal> is a literal string to compare against"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>param</literal>: <literal>value</literal> is the name of a resource parameter to compare against (only valid in location constraints)"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>meta</literal>: <literal>value</literal> is the name of a resource meta-attribute to compare against (only valid in location constraints) <indexterm> <primary>value</primary><secondary>Constraint Expression</secondary> </indexterm> <indexterm> <primary>Constraint Expression</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Attribute Expression</secondary><tertiary>value</tertiary> </indexterm> <indexterm> <primary>Attribute Expression</primary><secondary>value</secondary> </indexterm> <indexterm> <primary>value</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "In addition to any attributes added by the administrator, the cluster defines special, built-in node attributes for each node that can also be used."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Built-in node attributes"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "Name"
msgstr ""

#. Tag: entry
#, no-c-format
msgid "Value"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>#uname</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Node <link linkend=\"s-node-name\">name</link>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>#id</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Node ID"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>#kind</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Node type. Possible values are <literal>cluster</literal>, <literal>remote</literal>, and <literal>container</literal>. Kind is <literal>remote</literal> for Pacemaker Remote nodes created with the <literal>ocf:pacemaker:remote</literal> resource, and <literal>container</literal> for Pacemaker Remote guest nodes and bundle nodes"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>#is_dc</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "\"true\" if this node is a Designated Controller (DC), \"false\" otherwise"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>#cluster-name</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The value of the <literal>cluster-name</literal> cluster property, if set"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>#site-name</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The value of the <literal>site-name</literal> cluster property, if set, otherwise identical to <literal>#cluster-name</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>#role</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The role the relevant promotable clone resource has on this node. Valid only within a rule for a location constraint for a promotable clone resource."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Time- and Date-Based Expressions"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Time Based Expressions</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Constraint</secondary><tertiary>Date/Time Expression</tertiary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date/Time Expression</secondary> </indexterm> <indexterm> <primary>Date/Time Expression</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "As the name suggests, <literal>date_expressions</literal> are used to control a resource or cluster option based on the current date/time. They may contain an optional <literal>date_spec</literal> and/or <literal>duration</literal> object depending on the context."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Properties of a Date Expression"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>start</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "A date/time conforming to the <ulink url=\"http://en.wikipedia.org/wiki/ISO_8601\">ISO8601</ulink> specification. <indexterm> <primary>start</primary><secondary>Constraint Expression</secondary> </indexterm> <indexterm> <primary>Constraint Expression</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date/Time Expression</secondary><tertiary>start</tertiary> </indexterm> <indexterm> <primary>Date/Time Expression</primary><secondary>start</secondary> </indexterm> <indexterm> <primary>start</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>end</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "A date/time conforming to the <ulink url=\"http://en.wikipedia.org/wiki/ISO_8601\">ISO8601</ulink> specification. Can be inferred by supplying a value for <literal>start</literal> and a <literal>duration</literal>. <indexterm> <primary>end</primary><secondary>Constraint Expression</secondary> </indexterm> <indexterm> <primary>Constraint Expression</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date/Time Expression</secondary><tertiary>end</tertiary> </indexterm> <indexterm> <primary>Date/Time Expression</primary><secondary>end</secondary> </indexterm> <indexterm> <primary>end</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Compares the current date/time with the start and/or end date, depending on the context. Allowed values:"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>gt:</literal> True if the current date/time is after <literal>start</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>lt:</literal> True if the current date/time is before <literal>end</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>in_range:</literal> True if the current date/time is after <literal>start</literal> and before <literal>end</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>date_spec:</literal> True if the current date/time matches a <literal>date_spec</literal> object (described below) <indexterm> <primary>operation</primary><secondary>Constraint Expression</secondary> </indexterm> <indexterm> <primary>Constraint Expression</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date/Time Expression</secondary><tertiary>operation</tertiary> </indexterm> <indexterm> <primary>Date/Time Expression</primary><secondary>operation</secondary> </indexterm> <indexterm> <primary>operation</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "As these comparisons (except for <literal>date_spec</literal>) include the time, the <literal>eq</literal>, <literal>neq</literal>, <literal>gte</literal> and <literal>lte</literal> operators have not been implemented since they would only be valid for a single second."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Date Specifications"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Date Specification</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Constraint</secondary><tertiary>Date Specification</tertiary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date Specification</secondary> </indexterm> <indexterm> <primary>Date Specification</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>date_spec</literal> objects are used to create cron-like expressions relating to time. Each field can contain a single number or a single range. Instead of defaulting to zero, any field not supplied is ignored."
msgstr ""

#. Tag: para
#, no-c-format
msgid "For example, <literal>monthdays=\"1\"</literal> matches the first day of every month and <literal>hours=\"09-17\"</literal> matches the hours between 9am and 5pm (inclusive). At this time, multiple ranges (e.g. <literal>weekdays=\"1,2\"</literal> or <literal>weekdays=\"1-2,5-6\"</literal>) are not supported; depending on demand, this might be implemented in a future release."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Properties of a Date Specification"
msgstr ""

#. Tag: para
#, no-c-format
msgid "A unique name for the object <indexterm> <primary>id</primary><secondary>Date Specification</secondary> </indexterm> <indexterm> <primary>Date Specification</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date Specification</secondary><tertiary>id</tertiary> </indexterm> <indexterm> <primary>Date Specification</primary><secondary>id</secondary> </indexterm> <indexterm> <primary>id</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>hours</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Allowed values: 0-23 <indexterm> <primary>hours</primary><secondary>Date Specification</secondary> </indexterm> <indexterm> <primary>Date Specification</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date Specification</secondary><tertiary>hours</tertiary> </indexterm> <indexterm> <primary>Date Specification</primary><secondary>hours</secondary> </indexterm> <indexterm> <primary>hours</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>monthdays</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Allowed values: 1-31 (depending on month and year) <indexterm> <primary>monthdays</primary><secondary>Date Specification</secondary> </indexterm> <indexterm> <primary>Date Specification</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date Specification</secondary><tertiary>monthdays</tertiary> </indexterm> <indexterm> <primary>Date Specification</primary><secondary>monthdays</secondary> </indexterm> <indexterm> <primary>monthdays</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>weekdays</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Allowed values: 1-7 (1=Monday, 7=Sunday) <indexterm> <primary>weekdays</primary><secondary>Date Specification</secondary> </indexterm> <indexterm> <primary>Date Specification</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date Specification</secondary><tertiary>weekdays</tertiary> </indexterm> <indexterm> <primary>Date Specification</primary><secondary>weekdays</secondary> </indexterm> <indexterm> <primary>weekdays</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>yeardays</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Allowed values: 1-366 (depending on the year) <indexterm> <primary>yeardays</primary><secondary>Date Specification</secondary> </indexterm> <indexterm> <primary>Date Specification</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date Specification</secondary><tertiary>yeardays</tertiary> </indexterm> <indexterm> <primary>Date Specification</primary><secondary>yeardays</secondary> </indexterm> <indexterm> <primary>yeardays</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>months</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Allowed values: 1-12 <indexterm> <primary>months</primary><secondary>Date Specification</secondary> </indexterm> <indexterm> <primary>Date Specification</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date Specification</secondary><tertiary>months</tertiary> </indexterm> <indexterm> <primary>Date Specification</primary><secondary>months</secondary> </indexterm> <indexterm> <primary>months</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>weeks</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Allowed values: 1-53 (depending on weekyear) <indexterm> <primary>weeks</primary><secondary>Date Specification</secondary> </indexterm> <indexterm> <primary>Date Specification</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date Specification</secondary><tertiary>weeks</tertiary> </indexterm> <indexterm> <primary>Date Specification</primary><secondary>weeks</secondary> </indexterm> <indexterm> <primary>weeks</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>years</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Year according to the Gregorian calendar <indexterm> <primary>years</primary><secondary>Date Specification</secondary> </indexterm> <indexterm> <primary>Date Specification</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date Specification</secondary><tertiary>years</tertiary> </indexterm> <indexterm> <primary>Date Specification</primary><secondary>years</secondary> </indexterm> <indexterm> <primary>years</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>weekyears</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Year in which the week started; e.g. 1 January 2005 can be specified as <emphasis>2005-001 Ordinal</emphasis>, <emphasis>2005-01-01 Gregorian</emphasis> or <emphasis>2004-W53-6 Weekly</emphasis> and thus would match <literal>years=\"2005\"</literal> or <literal>weekyears=\"2004\"</literal> <indexterm> <primary>weekyears</primary><secondary>Date Specification</secondary> </indexterm> <indexterm> <primary>Date Specification</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date Specification</secondary><tertiary>weekyears</tertiary> </indexterm> <indexterm> <primary>Date Specification</primary><secondary>weekyears</secondary> </indexterm> <indexterm> <primary>weekyears</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>moon</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Allowed values are 0-7 (0 is new, 4 is full moon). Seriously, you can use this. This was implemented to demonstrate the ease with which new comparisons could be added. <indexterm> <primary>moon</primary><secondary>Date Specification</secondary> </indexterm> <indexterm> <primary>Date Specification</primary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Date Specification</secondary><tertiary>moon</tertiary> </indexterm> <indexterm> <primary>Date Specification</primary><secondary>moon</secondary> </indexterm> <indexterm> <primary>moon</primary> </indexterm>"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Durations"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Duration</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Constraint</secondary><tertiary>Duration</tertiary> </indexterm> <indexterm> <primary>Constraint</primary><secondary>Duration</secondary> </indexterm> <indexterm> <primary>Duration</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Durations are used to calculate a value for <literal>end</literal> when one is not supplied to <literal>in_range</literal> operations. They contain the same fields as <literal>date_spec</literal> objects but without the limitations (e.g. you can have a duration of 19 months). As with <literal>date_specs</literal>, any field not supplied is ignored."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Sample Time-Based Expressions"
msgstr ""

#. Tag: para
#, no-c-format
msgid "A small sample of how time-based expressions can be used:"
msgstr ""

#. Tag: title
#, no-c-format
msgid "True if now is any time in the year 2005"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;rule id=\"rule1\"&gt;\n"
"   &lt;date_expression id=\"date_expr1\" start=\"2005-001\" operation=\"in_range\"&gt;\n"
"    &lt;duration years=\"1\"/&gt;\n"
"   &lt;/date_expression&gt;\n"
"&lt;/rule&gt;"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Equivalent expression"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;rule id=\"rule2\"&gt;\n"
"   &lt;date_expression id=\"date_expr2\" operation=\"date_spec\"&gt;\n"
"    &lt;date_spec years=\"2005\"/&gt;\n"
"   &lt;/date_expression&gt;\n"
"&lt;/rule&gt;"
msgstr ""

#. Tag: title
#, no-c-format
msgid "9am-5pm Monday-Friday"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;rule id=\"rule3\"&gt;\n"
"   &lt;date_expression id=\"date_expr3\" operation=\"date_spec\"&gt;\n"
"    &lt;date_spec hours=\"9-16\" days=\"1-5\"/&gt;\n"
"   &lt;/date_expression&gt;\n"
"&lt;/rule&gt;"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Please note that the <literal>16</literal> matches up to <literal>16:59:59</literal>, as the numeric value (hour) still matches!"
msgstr ""

#. Tag: title
#, no-c-format
msgid "9am-6pm Monday through Friday or anytime Saturday"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;rule id=\"rule4\" boolean-op=\"or\"&gt;\n"
"   &lt;date_expression id=\"date_expr4-1\" operation=\"date_spec\"&gt;\n"
"    &lt;date_spec hours=\"9-16\" days=\"1-5\"/&gt;\n"
"   &lt;/date_expression&gt;\n"
"   &lt;date_expression id=\"date_expr4-2\" operation=\"date_spec\"&gt;\n"
"    &lt;date_spec days=\"6\"/&gt;\n"
"   &lt;/date_expression&gt;\n"
"&lt;/rule&gt;"
msgstr ""

#. Tag: title
#, no-c-format
msgid "9am-5pm or 9pm-12am Monday through Friday"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;rule id=\"rule5\" boolean-op=\"and\"&gt;\n"
"   &lt;rule id=\"rule5-nested1\" boolean-op=\"or\"&gt;\n"
"    &lt;date_expression id=\"date_expr5-1\" operation=\"date_spec\"&gt;\n"
"     &lt;date_spec hours=\"9-16\"/&gt;\n"
"    &lt;/date_expression&gt;\n"
"    &lt;date_expression id=\"date_expr5-2\" operation=\"date_spec\"&gt;\n"
"     &lt;date_spec hours=\"21-23\"/&gt;\n"
"    &lt;/date_expression&gt;\n"
"   &lt;/rule&gt;\n"
"   &lt;date_expression id=\"date_expr5-3\" operation=\"date_spec\"&gt;\n"
"    &lt;date_spec days=\"1-5\"/&gt;\n"
"   &lt;/date_expression&gt;\n"
"  &lt;/rule&gt;"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Mondays in March 2005"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;rule id=\"rule6\" boolean-op=\"and\"&gt;\n"
"   &lt;date_expression id=\"date_expr6-1\" operation=\"date_spec\"&gt;\n"
"    &lt;date_spec weekdays=\"1\"/&gt;\n"
"   &lt;/date_expression&gt;\n"
"   &lt;date_expression id=\"date_expr6-2\" operation=\"in_range\"\n"
"     start=\"2005-03-01\" end=\"2005-04-01\"/&gt;\n"
"  &lt;/rule&gt;"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Because no time is specified with the above dates, 00:00:00 is implied. This means that the range includes all of 2005-03-01 but none of 2005-04-01. You may wish to write <literal>end=\"2005-03-31T23:59:59\"</literal> to avoid confusion."
msgstr ""

#. Tag: title
#, no-c-format
msgid "A full moon on Friday the 13th"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;rule id=\"rule7\" boolean-op=\"and\"&gt;\n"
"   &lt;date_expression id=\"date_expr7\" operation=\"date_spec\"&gt;\n"
"    &lt;date_spec weekdays=\"5\" monthdays=\"13\" moon=\"4\"/&gt;\n"
"   &lt;/date_expression&gt;\n"
"&lt;/rule&gt;"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Using Rules to Determine Resource Location"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Rule</primary><secondary>Determine Resource Location</secondary> </indexterm> <indexterm> <primary>Determine Resource Location</primary> </indexterm> <indexterm> <primary>Resource</primary><secondary>Location</secondary><tertiary>Determine by Rules</tertiary> </indexterm> <indexterm> <primary>Location</primary><secondary>Determine by Rules</secondary> </indexterm> <indexterm> <primary>Determine by Rules</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "A location constraint may contain rules. When the constraint’s outermost rule evaluates to <literal>false</literal>, the cluster treats the constraint as if it were not there. When the rule evaluates to <literal>true</literal>, the node’s preference for running the resource is updated with the score associated with the rule."
msgstr ""

#. Tag: para
#, no-c-format
msgid "If this sounds familiar, it is because you have been using a simplified syntax for location constraint rules already. Consider the following location constraint:"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Prevent myApacheRsc from running on c001n03"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;rsc_location id=\"dont-run-apache-on-c001n03\" rsc=\"myApacheRsc\"\n"
"              score=\"-INFINITY\" node=\"c001n03\"/&gt;"
msgstr ""

#. Tag: para
#, no-c-format
msgid "This constraint can be more verbosely written as:"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Prevent myApacheRsc from running on c001n03 - expanded version"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;rsc_location id=\"dont-run-apache-on-c001n03\" rsc=\"myApacheRsc\"&gt;\n"
"    &lt;rule id=\"dont-run-apache-rule\" score=\"-INFINITY\"&gt;\n"
"      &lt;expression id=\"dont-run-apache-expr\" attribute=\"#uname\"\n"
"        operation=\"eq\" value=\"c00n03\"/&gt;\n"
"    &lt;/rule&gt;\n"
"&lt;/rsc_location&gt;"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The advantage of using the expanded form is that one can then add extra clauses to the rule, such as limiting the rule such that it only applies during certain times of the day or days of the week."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Location Rules Based on Other Node Properties"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The expanded form allows us to match on node properties other than its name. If we rated each machine’s CPU power such that the cluster had the following nodes section:"
msgstr ""

#. Tag: title
#, no-c-format
msgid "A sample nodes section for use with score-attribute"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;nodes&gt;\n"
"   &lt;node id=\"uuid1\" uname=\"c001n01\" type=\"normal\"&gt;\n"
"      &lt;instance_attributes id=\"uuid1-custom_attrs\"&gt;\n"
"        &lt;nvpair id=\"uuid1-cpu_mips\" name=\"cpu_mips\" value=\"1234\"/&gt;\n"
"      &lt;/instance_attributes&gt;\n"
"   &lt;/node&gt;\n"
"   &lt;node id=\"uuid2\" uname=\"c001n02\" type=\"normal\"&gt;\n"
"      &lt;instance_attributes id=\"uuid2-custom_attrs\"&gt;\n"
"        &lt;nvpair id=\"uuid2-cpu_mips\" name=\"cpu_mips\" value=\"5678\"/&gt;\n"
"      &lt;/instance_attributes&gt;\n"
"   &lt;/node&gt;\n"
"&lt;/nodes&gt;"
msgstr ""

#. Tag: para
#, no-c-format
msgid "then we could prevent resources from running on underpowered machines with this rule:"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;rule id=\"need-more-power-rule\" score=\"-INFINITY\"&gt;\n"
"   &lt;expression id=\"need-more-power-expr\" attribute=\"cpu_mips\"\n"
"               operation=\"lt\" value=\"3000\"/&gt;\n"
"&lt;/rule&gt;"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Using <literal>score-attribute</literal> Instead of <literal>score</literal>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "When using <literal>score-attribute</literal> instead of <literal>score</literal>, each node matched by the rule has its score adjusted differently, according to its value for the named node attribute. Thus, in the previous example, if a rule used <literal>score-attribute=\"cpu_mips\"</literal>, <literal>c001n01</literal> would have its preference to run the resource increased by <literal>1234</literal> whereas <literal>c001n02</literal> would have its preference increased by <literal>5678</literal>."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Using Rules to Control Resource Options"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Often some cluster nodes will be different from their peers. Sometimes, these differences — e.g. the location of a binary or the names of network interfaces — require resources to be configured differently depending on the machine they’re hosted on."
msgstr ""

#. Tag: para
#, no-c-format
msgid "By defining multiple <literal>instance_attributes</literal> objects for the resource and adding a rule to each, we can easily handle these special cases."
msgstr ""

#. Tag: para
#, no-c-format
msgid "In the example below, <literal>mySpecialRsc</literal> will use eth1 and port 9999 when run on <literal>node1</literal>, eth2 and port 8888 on <literal>node2</literal> and default to eth0 and port 9999 for all other nodes."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Defining different resource options based on the node name"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;primitive id=\"mySpecialRsc\" class=\"ocf\" type=\"Special\" provider=\"me\"&gt;\n"
"   &lt;instance_attributes id=\"special-node1\" score=\"3\"&gt;\n"
"    &lt;rule id=\"node1-special-case\" score=\"INFINITY\" &gt;\n"
"     &lt;expression id=\"node1-special-case-expr\" attribute=\"#uname\"\n"
"       operation=\"eq\" value=\"node1\"/&gt;\n"
"    &lt;/rule&gt;\n"
"    &lt;nvpair id=\"node1-interface\" name=\"interface\" value=\"eth1\"/&gt;\n"
"   &lt;/instance_attributes&gt;\n"
"   &lt;instance_attributes id=\"special-node2\" score=\"2\" &gt;\n"
"    &lt;rule id=\"node2-special-case\" score=\"INFINITY\"&gt;\n"
"     &lt;expression id=\"node2-special-case-expr\" attribute=\"#uname\"\n"
"       operation=\"eq\" value=\"node2\"/&gt;\n"
"    &lt;/rule&gt;\n"
"    &lt;nvpair id=\"node2-interface\" name=\"interface\" value=\"eth2\"/&gt;\n"
"    &lt;nvpair id=\"node2-port\" name=\"port\" value=\"8888\"/&gt;\n"
"   &lt;/instance_attributes&gt;\n"
"   &lt;instance_attributes id=\"defaults\" score=\"1\" &gt;\n"
"    &lt;nvpair id=\"default-interface\" name=\"interface\" value=\"eth0\"/&gt;\n"
"    &lt;nvpair id=\"default-port\" name=\"port\" value=\"9999\"/&gt;\n"
"   &lt;/instance_attributes&gt;\n"
"&lt;/primitive&gt;"
msgstr ""

#. Tag: para
#, no-c-format
msgid "The order in which <literal>instance_attributes</literal> objects are evaluated is determined by their score (highest to lowest). If not supplied, score defaults to zero, and objects with an equal score are processed in listed order. If the <literal>instance_attributes</literal> object has no rule or a <literal>rule</literal> that evaluates to <literal>true</literal>, then for any parameter the resource does not yet have a value for, the resource will use the parameter values defined by the <literal>instance_attributes</literal>."
msgstr ""

#. Tag: para
#, no-c-format
msgid "For example, given the configuration above, if the resource is placed on node1:"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>special-node1</literal> has the highest score (3) and so is evaluated first; its rule evaluates to <literal>true</literal>, so <literal>interface</literal> is set to <literal>eth1</literal>."
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>special-node2</literal> is evaluated next with score 2, but its rule evaluates to <literal>false</literal>, so it is ignored."
msgstr ""

#. Tag: para
#, no-c-format
msgid "<literal>defaults</literal> is evaluated last with score 1, and has no rule, so its values are examined; <literal>interface</literal> is already defined, so the value here is not used, but <literal>port</literal> is not yet defined, so <literal>port</literal> is set to <literal>9999</literal>."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Using Rules to Control Cluster Options"
msgstr ""

#. Tag: para
#, no-c-format
msgid "<indexterm> <primary>Rule</primary><secondary>Controlling Cluster Options</secondary> </indexterm> <indexterm> <primary>Controlling Cluster Options</primary> </indexterm> <indexterm> <primary>Cluster</primary><secondary>Setting Options with Rules</secondary> </indexterm> <indexterm> <primary>Setting Options with Rules</primary> </indexterm>"
msgstr ""

#. Tag: para
#, no-c-format
msgid "Controlling cluster options is achieved in much the same manner as specifying different resource options on different nodes."
msgstr ""

#. Tag: para
#, no-c-format
msgid "The difference is that because they are cluster options, one cannot (or should not, because they won’t work) use attribute-based expressions. The following example illustrates how to set a different <literal>resource-stickiness</literal> value during and outside work hours. This allows resources to automatically move back to their most preferred hosts, but at a time that (in theory) does not interfere with business activities."
msgstr ""

#. Tag: title
#, no-c-format
msgid "Change <literal>resource-stickiness</literal> during working hours"
msgstr ""

#. Tag: programlisting
#, no-c-format
msgid "&lt;rsc_defaults&gt;\n"
"   &lt;meta_attributes id=\"core-hours\" score=\"2\"&gt;\n"
"      &lt;rule id=\"core-hour-rule\" score=\"0\"&gt;\n"
"        &lt;date_expression id=\"nine-to-five-Mon-to-Fri\" operation=\"date_spec\"&gt;\n"
"          &lt;date_spec id=\"nine-to-five-Mon-to-Fri-spec\" hours=\"9-16\" weekdays=\"1-5\"/&gt;\n"
"        &lt;/date_expression&gt;\n"
"      &lt;/rule&gt;\n"
"      &lt;nvpair id=\"core-stickiness\" name=\"resource-stickiness\" value=\"INFINITY\"/&gt;\n"
"   &lt;/meta_attributes&gt;\n"
"   &lt;meta_attributes id=\"after-hours\" score=\"1\" &gt;\n"
"      &lt;nvpair id=\"after-stickiness\" name=\"resource-stickiness\" value=\"0\"/&gt;\n"
"   &lt;/meta_attributes&gt;\n"
"&lt;/rsc_defaults&gt;"
msgstr ""

#. Tag: title
#, no-c-format
msgid "Ensuring Time-Based Rules Take Effect"
msgstr ""

#. Tag: para
#, no-c-format
msgid "A Pacemaker cluster is an event-driven system. As such, it won’t recalculate the best place for resources to run unless something (like a resource failure or configuration change) happens. This can mean that a location constraint that only allows resource X to run between 9am and 5pm is not enforced."
msgstr ""

#. Tag: para
#, no-c-format
msgid "If you rely on time-based rules, the <literal>cluster-recheck-interval</literal> cluster option (which defaults to 15 minutes) is essential. This tells the cluster to periodically recalculate the ideal state of the cluster."
msgstr ""

#. Tag: para
#, no-c-format
msgid "For example, if you set <literal>cluster-recheck-interval=\"5m\"</literal>, then sometime between 09:00 and 09:05 the cluster would notice that it needs to start resource X, and between 17:00 and 17:05 it would realize that X needed to be stopped. The timing of the actual start and stop actions depends on what other actions the cluster may need to perform first."
msgstr ""