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
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
|
<grammar xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:a4doc="http://people.redhat.com/jpokorny/ns/a4doc" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start><ref name="rng_pivot_logging"/></start><define name="corosync">
<element name="corosync">
<interleave>
<optional>
<ref name="logging"/>
</optional>
<optional>
<ref name="nodelist"/>
</optional>
<optional>
<ref name="resources"/>
</optional>
<optional>
<ref name="quorum"/>
</optional>
<ref name="totem"/>
<optional>
<ref name="uidgid"/>
</optional>
</interleave>
</element>
</define>
<define name="logging">
<ref name="rng_pivot_logging"/></define>
<define name="logger_subsys">
<element name="logger_subsys">
<group>
<attribute name="subsys">
<a:documentation>This specifies the subsystem identity
(name) for which logging is specified. This is the name used by
a service in the `log_init` call, e.g., 'CPG'.</a:documentation>
<text/>
</attribute>
<optional>
<attribute name="debug" a:defaultValue="off">
<a:documentation>This specifies whether debug output is
logged for this particular logger. Also can contain value 'trace',
which is highest level of debug informations.</a:documentation>
<choice>
<value>off</value>
<value>on</value>
<value>trace</value>
</choice>
</attribute>
</optional><optional>
<attribute name="logfile">
<a:documentation>If the *to_logfile* option is set to
'yes', this option specifies the pathname of the log file.</a:documentation>
<text/>
</attribute>
</optional><optional>
<attribute name="logfile_priority" a:defaultValue="info">
<a:documentation>This specifies the logfile level for this particular subsystem. Ignored
if *debug* is 'on'. Note: 'debug' is the same as if *debug* is 'on'.</a:documentation>
<choice>
<value>alert</value>
<value>crit</value>
<value>debug</value>
<value>emerg</value>
<value>err</value>
<value>info</value>
<value>notice</value>
<value>warning</value>
</choice>
</attribute>
</optional><optional>
<attribute name="syslog_facility" a:defaultValue="daemon">
<a:documentation>This specifies the syslog facility type
that will be used for any messages sent to syslog.</a:documentation>
<choice>
<value>daemon</value>
<value>local0</value>
<value>local1</value>
<value>local2</value>
<value>local3</value>
<value>local4</value>
<value>local5</value>
<value>local6</value>
<value>local7</value>
</choice>
</attribute>
</optional><optional>
<attribute name="syslog_priority" a:defaultValue="info">
<a:documentation>This specifies the syslog level for this
particular subsystem. Ignored if *debug* is 'on'. Note: 'debug'
is the same as *debug* is 'on'.</a:documentation>
<choice>
<value>alert</value>
<value>crit</value>
<value>debug</value>
<value>emerg</value>
<value>err</value>
<value>info</value>
<value>notice</value>
<value>warning</value>
</choice>
</attribute>
</optional><optional>
<attribute name="tags">
<text/>
</attribute>
</optional><optional>
<attribute name="to_logfile" a:defaultValue="no">
<a:documentation>This specifies whether to use
the respective destination of logging output.
Please note, if you are using *to_logfile* and want to rotate the file,
use `logrotate(8)` with the option `copytruncate`, e.g.
----
/var/log/corosync.log {
missingok
compress
notifempty
daily
rotate 7
copytruncate
}
----</a:documentation>
<choice>
<value>no</value>
<value>yes</value>
</choice>
</attribute>
</optional><optional>
<attribute name="to_stderr" a:defaultValue="yes">
<a:documentation>This specifies whether to use
the respective destination of logging output.</a:documentation>
<choice>
<value>no</value>
<value>yes</value>
</choice>
</attribute>
</optional><optional>
<attribute name="to_syslog" a:defaultValue="yes">
<a:documentation>This specifies whether to use
the respective destination of logging output.</a:documentation>
<choice>
<value>no</value>
<value>yes</value>
</choice>
</attribute>
</optional>
</group>
</element>
</define>
<define name="nodelist">
<element name="nodelist">
<a:documentation>In this configuration section, one can
adjust nodes in the cluster.</a:documentation>
<zeroOrMore>
<ref name="node"/>
</zeroOrMore>
</element>
</define>
<define name="node">
<element name="node">
<group>
<optional>
<attribute name="nodeid">
<a:documentation>This configuration option is optional when
using IPv4 and required when using IPv6. This is a 32bit value
specifying the node identifier delivered to the cluster membership
service. If this is not specified with IPv4, *nodeid* will be
determined from the 32bit IP address the system to which the system
is bound with ring identifier of 0. The node identifier value of zero
is reserved and should not be used.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="quorum_votes">
<data type="unsignedInt"/>
</attribute>
</optional>
<attribute name="ring0_addr">
<a:documentation>This specifies IP address of one of the nodes for particular ring
as denoted by its number (instead 0, there can be higher numbers).</a:documentation>
<text/>
</attribute>
<optional>
<attribute name="ring1_addr"/>
</optional>
<optional>
<attribute name="ring2_addr"/>
</optional>
<optional>
<attribute name="ring3_addr"/>
</optional>
<optional>
<attribute name="ring4_addr"/>
</optional>
<optional>
<attribute name="ring5_addr"/>
</optional>
<optional>
<attribute name="ring6_addr"/>
</optional>
<optional>
<attribute name="ring7_addr"/>
</optional>
<optional>
<attribute name="ring8_addr"/>
</optional>
<optional>
<attribute name="ring9_addr"/>
</optional>
</group>
</element>
</define>
<define name="quorum">
<element name="quorum">
<a:documentation>In this configuration section, one can
adjust quorum.</a:documentation>
<group>
<optional>
<attribute name="allow_downscale" a:defaultValue="0">
<a:documentation>This enables Downscale feature
(see `votequorum(5)`).</a:documentation>
<choice>
<value>0</value>
<value>1</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="auto_tie_breaker" a:defaultValue="0">
<a:documentation>This enables Auto Tie Breaker feature
(see `votequorum(5)`).</a:documentation>
<choice>
<value>0</value>
<value>1</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="expected_votes">
<a:documentation>This specifies the number of expected votes, overriding the number
implied by the number of *node* items within *nodes*.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="last_man_standing" a:defaultValue="0">
<a:documentation>This enables Last Man Standing feature
(see `votequorum(5)`).</a:documentation>
<choice>
<value>0</value>
<value>1</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="last_man_standing_window" a:defaultValue="0">
<a:documentation>This specifies the tunable for Last Man
Standing feature (see `votequorum(5)`).</a:documentation>
<data type="nonNegativeInteger"/>
</attribute>
</optional>
<optional>
<attribute name="provider">
<a:documentation>This specifies the quorum algorithm to use.
As of now, only 'corosync_votequorum' is supported.</a:documentation>
<value>corosync_votequorum</value>
</attribute>
</optional>
<optional>
<attribute name="two_node" a:defaultValue="0">
<a:documentation>This enables two node cluster operations
(see `votequorum(5)`).</a:documentation>
<choice>
<value>0</value>
<value>1</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="votes">
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="wait_for_all" a:defaultValue="0">
<a:documentation>This enables Wait For All feature
(see `votequorum(5)`).</a:documentation>
<choice>
<value>0</value>
<value>1</value>
</choice>
</attribute>
</optional>
</group>
</element>
</define>
<define name="load_15min">
<element name="load_15min">
<optional>
<optional>
<attribute name="max">
<data type="decimal"/>
</attribute>
</optional><optional>
<attribute name="poll_period">
<data type="unsignedInt"/>
</attribute>
</optional><optional>
<attribute name="recovery">
<choice>
<value>reboot</value>
<value>shutdown</value>
<value>watchdog</value>
<value>none</value>
</choice>
</attribute>
</optional>
</optional>
</element>
</define>
<define name="memory_used">
<element name="memory_used">
<optional>
<optional>
<attribute name="max">
<data type="decimal"/>
</attribute>
</optional><optional>
<attribute name="poll_period">
<data type="unsignedInt"/>
</attribute>
</optional><optional>
<attribute name="recovery">
<choice>
<value>reboot</value>
<value>shutdown</value>
<value>watchdog</value>
<value>none</value>
</choice>
</attribute>
</optional>
</optional>
</element>
</define>
<define name="system">
<element name="system">
<interleave>
<optional>
<ref name="load_15min"/>
</optional>
<optional>
<ref name="memory_used"/>
</optional>
</interleave>
</element>
</define>
<define name="resources">
<element name="resources">
<optional>
<ref name="system"/>
</optional>
</element>
</define>
<define name="totem">
<element name="totem">
<a:documentation>In this configuration section, one can
adjust totem protocol.</a:documentation>
<group>
<optional>
<attribute name="clear_node_high_bit" a:defaultValue="no" a4doc:discretion-hint="The clusters behavior is undefined if this option is enabled on only a subset of the cluster (for example during a rolling upgrade).">
<a:documentation>This configuration option is only relevant
when no *nodeid* option within *nodelist* section is specified. Some
corosync clients require a signed 32bit nodeid that is greater than
zero however, by default, corosync uses all 32 bits of the IPv4 address
space when generating a nodeid.
Set this option to 'yes' to force the high bit to be zero and therefor
ensure the nodeid is a positive signed 32bit integer.</a:documentation>
<choice>
<value>no</value>
<value>yes</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="cluster_name">
<a:documentation>This specifies the name of cluster and it's
used for automatic generating of multicast address.</a:documentation>
<text/>
</attribute>
</optional>
<optional>
<attribute name="consensus" a:defaultValue="1200">
<a:documentation>This timeout specifies in milliseconds how
long to wait for consensus to be achieved before starting a new round
of membership configuration. The minimum value for *consensus* must be
1.2 x *token*.
This value will be automatically calculated at 1.2 x *token* if
the user doesn't specify a *consensus* value.
For two node clusters, a *consensus* larger than the *join* timeout but
less than *token* is safe. For three-node or larger clusters,
*consensus* should be larger than *token*. There is an increasing risk
of odd membership changes, which still guarantee virtual synchrony,
as node count grows if *consensus* is less than *token*.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="crypto_cipher" a:defaultValue="aes256">
<a:documentation>This specifies which cipher should be used
to encrypt all messages.</a:documentation>
<choice>
<value>3des</value>
<value>aes128</value>
<value>aes192</value>
<value>aes256</value>
<value>none</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="crypto_compat">
<choice>
<value>2.0</value>
<value>2.2</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="crypto_hash" a:defaultValue="sha1">
<a:documentation>This specifies which HMAC authentication
should be used to authenticate all messages.</a:documentation>
<choice>
<value>none</value>
<value>md5</value>
<value>sha1</value>
<value>sha256</value>
<value>sha384</value>
<value>sha512</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="crypto_type">
<choice>
<value>3des</value>
<value>aes128</value>
<value>aes192</value>
<value>aes256</value>
<value>nss</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="downcheck" a:defaultValue="1000">
<a:documentation>This timeout specifies in milliseconds how
long to wait before checking that a network interface is back up after
it has been downed.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="fail_recv_const" a:defaultValue="2500">
<a:documentation>This constant specifies how many rotations
of the token without receiving any of the messages when messages should
be received may occur before a new configuration is formed.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="heartbeat_failures_allowed" a:defaultValue="0">
<a:documentation>Configures the optional HeartBeating
mechanism for faster failure detection. Keep in mind that engaging this
mechanism in lossy networks could cause faulty loss declaration as
the mechanism relies on the network for heartbeating.
So as a rule of thumb use this mechanism if you require improved
failure in low to medium utilized networks.
This constant specifies the number of heartbeat failures the system
should tolerate before declaring heartbeat failure, e.g., 3.
Also if this value is not set or is 0, the heartbeat mechanism is
not engaged in the system and token rotation is the method of failure
detection. Zero disables the mechanism.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="hold" a:defaultValue="180" a4doc:danger-hint="It is not recommended to override this value without guidance from the corosync community.">
<a:documentation>This timeout specifies in milliseconds
how long the token should be held by the representative when
the protocol is under low utilization.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="join" a:defaultValue="50">
<a:documentation>This timeout specifies in milliseconds how
long to wait for join messages in the membership protocol.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="max_messages" a:defaultValue="17">
<a:documentation>This constant specifies the maximum number
of messages that may be sent by one processor on receipt of the token.
The *max_messages* parameter is limited to 256000 / *netmtu* to prevent
overflow of the kernel transmit buffers.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="max_network_delay" a:defaultValue="50">
<a:documentation>This constant specifies in milliseconds
the approximate delay that your network takes to transport one packet
from one machine to another. This value is to be set by system engineers
and please don't change it if not sure as this effects the failure
detection mechanism using heartbeat.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="merge" a:defaultValue="200">
<a:documentation>This timeout specifies in milliseconds how
long to wait before checking for a partition when no multicast traffic
is being sent. If multicast traffic is being sent, the merge detection
happens automatically as a function of the protocol.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="miss_count_const" a:defaultValue="5">
<a:documentation>This constant defines the maximum number
of times on receipt of a token a message is checked for retransmission
before a retransmission occurs. This parameter is useful to modify for
switches that delay multicast packets compared to unicast packets.
The default setting works well for nearly all modern switches.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="netmtu" a:defaultValue="1500">
<a:documentation>This specifies the network maximum transmit
unit. To set this value beyond 1500, the regular frame MTU, requires
ethernet devices that support large, or also called jumbo, frames.
If any device in the network doesn't support large frames, the protocol
will not operate properly. The hosts must also have their mtu size set
from 1500 to whatever frame size is specified here.
Please note that while some NICs or
switches claim large frame support, they support '9000' MTU as
the maximum frame size including the IP header. Setting the *netmtu*
and host MTUs to '9000' will cause totem to use the full 9000 bytes
of the frame. Then Linux will add an 18byte header moving the full
frame size to 9018. As a result some hardware will not operate properly
with this size of data. A *netmtu* of '8982' seems to work for the few
large frame devices that have been tested. Some manufacturers claim
large frame support when in fact they support frame sizes of 4500 bytes.
When sending multicast traffic, if the network frequently reconfigures,
chances are that some device in the network doesn't support large frames.
Choose hardware carefully if intending to use large frame support.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="nodeid">
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="rrp_autorecovery_check_timeout" a:defaultValue="1000">
<a:documentation>This specifies the time in milliseconds
to check if the failed ring can be auto-recovered.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="rrp_mode">
<a:documentation>This specifies the mode of redundant ring.
Active replication ('active') offers slightly lower latency from
transmit to delivery in faulty network environments but with less
performance. Passive replication ('passive') may nearly double
the speed of the totem protocol if it doesn't become CPU bound.
The remaining option is 'none', in which case only one network
interface will be used to operate the totem protocol.
If only one *interface* section is specified, 'none' is automatically
chosen. If multiple *interface* sections are specified, only 'active'
or 'passive' may be chosen.
The maximum number of *interface* sections that is allowed for either
mode ('active' or 'passive') is 2.</a:documentation>
<choice>
<value>active</value>
<value>none</value>
<value>passive</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="rrp_problem_count_mcast_threshold">
<a:documentation>This specifies the number of times
a problem is detected with multicast before setting the link faulty for
'passive' *rrp_mode*. This variable is unused in 'active' *rrp_mode*.
The default is 10 x *rrp_problem_count_threshold*.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="rrp_problem_count_threshold" a:defaultValue="10">
<a:documentation>This specifies the number of times
a problem is detected with a link before setting the link faulty.
Once a link is set faulty, no more data is transmitted upon it. Also,
the problem counter is no longer decremented when the problem count
timeout expires.
A problem is detected whenever all tokens from the proceeding
processor have not been received within the *rrp_token_expired_timeout*.
The *rrp_problem_count_threshold* x *rrp_token_expired_timeout* should be
at least 50 milliseconds less than the *token* timeout, or a complete
reconfiguration may occur.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="rrp_problem_count_timeout" a:defaultValue="2000">
<a:documentation>This specifies the time in milliseconds
to wait before decrementing the problem count by 1 for a particular ring
to ensure a link is not marked faulty for transient network failures.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="rrp_token_expired_timeout" a:defaultValue="47" a4doc:danger-hint="It is not recommended to override this value without guidance from the corosync community.">
<a:documentation>This specifies the time in milliseconds
to increment the problem counter for the redundant ring protocol after
not having received a token from all rings for a particular processor.
This value will automatically be calculated from the *token* timeout
and *problem_count_threshold* but may be overridden.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="secauth" a:defaultValue="on" a4doc:deprecation-hint="It's recomended to use combination of *crypto_cipher* and *crypto_hash*.">
<a:documentation>This specifies that HMAC/SHA1 authentication should be used
to authenticate all messages. It further specifies that all data
should be encrypted with the nss library and aes256 encryption
algorithm to protect data from eavesdropping.
Enabling this option adds a encryption header to every message sent
by totem which reduces total throughput. Also encryption and
authentication consume extra CPU cycles in corosync.</a:documentation>
<choice>
<value>off</value>
<value>on</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="send_join" a:defaultValue="0" a4doc:danger-hint="Seek advice from the corosync mailing list if trying to run larger configurations.">
<a:documentation>This timeout specifies in milliseconds
an upper range between 0 and *send_join* to wait before sending a join
message. For configurations with less than 32 nodes, this parameter
is not necessary. For larger rings, this parameter is necessary
to ensure the NIC is not overflowed with join messages on formation of
a new ring. A reasonable value for large rings (128 nodes) would be
__80__msec. Other timer values must also change if this value
is changed.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="seqno_unchanged_const" a:defaultValue="30">
<a:documentation>This constant specifies how many rotations
of the token without any multicast traffic should occur before the hold
timer is started.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="threads">
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="token" a:defaultValue="1000">
<a:documentation>This timeout specifies a period in
milliseconds until a token loss is declared after not receiving
a token. This is the time spent detecting a failure of a processor
in the current configuration. Reforming a new configuration takes
about 50 milliseconds in addition to this timeout.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="token_retransmit" a:defaultValue="238" a4doc:danger-hint="It is not recommended to override this value without guidance from the corosync community.">
<a:documentation>This timeout specifies a period in
milliseconds without receiving a token after which the token is
retransmitted. This will be automatically calculated if *token* is
modified.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="token_retransmits_before_loss_const" a:defaultValue="4">
<a:documentation>This value identifies how many token
retransmits should be attempted before forming a new configuration.
If this value is set, retransmit and hold will be automatically
calculated from *retransmits_before_loss* and *token*.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<optional>
<attribute name="transport" a:defaultValue="udp">
<a:documentation>This option controls the transport
mechanism used. If the interface to which corosync is binding is
an RDMA interface such as RoCEE or Infiniband, the 'iba' parameter
may be specified. To avoid the use of multicast entirely, a unicast
transport parameter 'udpu' can be specified. This requires specifying
the list of members that could potentially make up the membership
in *nodelist* section before deployment.</a:documentation>
<choice>
<value>iba</value>
<value>udp</value>
<value>udpu</value>
</choice>
</attribute>
</optional>
<attribute name="version">
<a:documentation>This specifies the version of
the configuration file. Currently the only valid value for this
option is '2'.</a:documentation>
<data type="boolean"/>
</attribute>
<optional>
<attribute name="vsftype" a:defaultValue="ykd">
<a:documentation>This option controls the virtual
synchrony filter type used to identify a primary component.
The preferred choice is YKD dynamic linear voting ('ykd'), however, for
clusters larger than 32 nodes YKD consumes a lot of memory. For large
scale clusters that are created by changing the MAX_PROCESSORS_COUNT
#define in the C code totem.h file, the virtual synchrony filter 'none'
is recommended but then AMF and DLCK services (which are currently
experimental) are not safe for use.</a:documentation>
<choice>
<value>none</value>
<value>ykd</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="window_size" a:defaultValue="50">
<a:documentation>This constant specifies the maximum number
of messages that may be sent on one token rotation. If all processors
perform equally well, this value could be large ('300'), which would
introduce higher latency from origination to delivery for very large
rings. To reduce latency in large rings (16+), the default is a safe
compromise. If 1 or more slow processor(s) are present among fast
processors, *window_size* should be no larger than 256000 / *netmtu*
to avoid overflow of the kernel receive buffers. The user is notified
of this by the display of a retransmit list in the notification logs.
There is no loss of data, but performance is reduced when these errors
occur.</a:documentation>
<data type="unsignedInt"/>
</attribute>
</optional>
<zeroOrMore>
<ref name="interface"/>
</zeroOrMore>
</group>
</element>
</define>
<define name="interface">
<element name="interface">
<group>
<optional>
<attribute name="bindnetaddr">
<a:documentation>This specifies the network address
the corosync executive should bind to.
*bindnetaddr* should be an IP address configured on the system, or
a network address.
For example, if the local interface is `192.168.5.92` with netmask
`255.255.255.0`, you should set *bindnetaddr* to `192.168.5.92` or
`192.168.5.0`. If the local interface is `192.168.5.92` with netmask
`255.255.255.192`, set *bindnetaddr* to `192.168.5.92` or `192.168.5.64`,
and so forth.
This may also be an IPv6 address, in which case IPv6 networking will be
used. In this case, the exact address must be specified and there is no
automatic selection of the network interface within a specific subnet
as with IPv4.
If IPv6 networking is used, *nodeid* options within *nodelist* section
must be specified.</a:documentation>
<text/>
</attribute>
</optional>
<optional>
<attribute name="broadcast" a:defaultValue="no">
<a:documentation>If this is set to 'yes', the broadcast
address will be used for communication. If this option is set,
*mcastaddr* should not be set.</a:documentation>
<choice>
<value>no</value>
<value>yes</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="mcastaddr">
<a:documentation>This is the multicast address used
by corosync executive. The default should work for most networks, but
the network administrator should be queried about a multicast address
to use. Avoid `224.x.x.x` because this is a "config" multicast address.
This may also be an IPv6 multicast address, in which case IPv6 networking
will be used. If IPv6 networking is used, *nodeid* options within
*nodelist* section must be specified.
It's not needed to use this option if *cluster_name* option in
*totem* section is used. If both options are used, *mcastaddr* has
higher priority.</a:documentation>
<text/>
</attribute>
</optional>
<optional>
<attribute name="mcastport">
<a:documentation>This specifies the UDP port number.
It is possible to use the same multicast address on a network with
the corosync services configured for different UDP ports. Please note
corosync uses two UDP ports *mcastport* (for mcast receives) and
*mcastport* - 1 (for mcast sends). If you have multiple clusters
on the same network using the same *mcastaddr*, please configure
the **mcastport**s with a gap.</a:documentation>
<data type="unsignedShort"/>
</attribute>
</optional>
<optional>
<attribute name="ringnumber">
<a:documentation>This specifies the ring number for
the interface. When using the redundant ring protocol, each interface
should specify separate ring numbers to uniquely identify to
the membership protocol which interface to use for which redundant ring.
The *ringnumber* must start at '0'.</a:documentation>
<data type="unsignedByte"/>
</attribute>
</optional>
<optional>
<attribute name="ttl" a:defaultValue="1">
<a:documentation>This specifies the Time To Live (TTL).
If you run your cluster on a routed network, the default of '1' will
be too small. This option provides a way to increase this up to '255'.
The valid range is '0..255'. Note that this is only valid on multicast
transport types.</a:documentation>
<data type="unsignedByte"/>
</attribute>
</optional>
</group>
</element>
</define>
<define name="uidgid">
<element name="uidgid">
<group>
<optional>
<attribute name="uid">
<text/>
</attribute>
</optional>
<optional>
<attribute name="gid">
<text/>
</attribute>
</optional>
</group>
</element>
</define>
<define name="rng_pivot_logging"><element name="logging">
<a:documentation>In this configuration section, one can
adjust logging.</a:documentation>
<group>
<optional>
<attribute name="fileline" a:defaultValue="off">
<a:documentation>This specifies that file and line should
be printed.</a:documentation>
<choice>
<value>off</value>
<value>on</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="function_name" a:defaultValue="off">
<a:documentation>This specifies that the code function name
should be printed.</a:documentation>
<choice>
<value>off</value>
<value>on</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="timestamp" a:defaultValue="off">
<a:documentation>This specifies that a timestamp is placed
on all log messages.</a:documentation>
<choice>
<value>off</value>
<value>on</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="debug" a:defaultValue="off">
<a:documentation>This specifies whether debug output is
logged for this particular logger. Also can contain value 'trace',
which is highest level of debug informations.</a:documentation>
<choice>
<value>off</value>
<value>on</value>
<value>trace</value>
</choice>
</attribute>
</optional><optional>
<attribute name="logfile">
<a:documentation>If the *to_logfile* option is set to
'yes', this option specifies the pathname of the log file.</a:documentation>
<text/>
</attribute>
</optional><optional>
<attribute name="logfile_priority" a:defaultValue="info">
<a:documentation>This specifies the logfile level for this particular subsystem. Ignored
if *debug* is 'on'. Note: 'debug' is the same as if *debug* is 'on'.</a:documentation>
<choice>
<value>alert</value>
<value>crit</value>
<value>debug</value>
<value>emerg</value>
<value>err</value>
<value>info</value>
<value>notice</value>
<value>warning</value>
</choice>
</attribute>
</optional><optional>
<attribute name="syslog_facility" a:defaultValue="daemon">
<a:documentation>This specifies the syslog facility type
that will be used for any messages sent to syslog.</a:documentation>
<choice>
<value>daemon</value>
<value>local0</value>
<value>local1</value>
<value>local2</value>
<value>local3</value>
<value>local4</value>
<value>local5</value>
<value>local6</value>
<value>local7</value>
</choice>
</attribute>
</optional><optional>
<attribute name="syslog_priority" a:defaultValue="info">
<a:documentation>This specifies the syslog level for this
particular subsystem. Ignored if *debug* is 'on'. Note: 'debug'
is the same as *debug* is 'on'.</a:documentation>
<choice>
<value>alert</value>
<value>crit</value>
<value>debug</value>
<value>emerg</value>
<value>err</value>
<value>info</value>
<value>notice</value>
<value>warning</value>
</choice>
</attribute>
</optional><optional>
<attribute name="tags">
<text/>
</attribute>
</optional><optional>
<attribute name="to_logfile" a:defaultValue="no">
<a:documentation>This specifies whether to use
the respective destination of logging output.
Please note, if you are using *to_logfile* and want to rotate the file,
use `logrotate(8)` with the option `copytruncate`, e.g.
----
/var/log/corosync.log {
missingok
compress
notifempty
daily
rotate 7
copytruncate
}
----</a:documentation>
<choice>
<value>no</value>
<value>yes</value>
</choice>
</attribute>
</optional><optional>
<attribute name="to_stderr" a:defaultValue="yes">
<a:documentation>This specifies whether to use
the respective destination of logging output.</a:documentation>
<choice>
<value>no</value>
<value>yes</value>
</choice>
</attribute>
</optional><optional>
<attribute name="to_syslog" a:defaultValue="yes">
<a:documentation>This specifies whether to use
the respective destination of logging output.</a:documentation>
<choice>
<value>no</value>
<value>yes</value>
</choice>
</attribute>
</optional>
<zeroOrMore>
<ref name="logger_subsys"/>
</zeroOrMore>
</group>
</element>
</define></grammar>
|