/
template.DEFAULT.conf
2063 lines (1937 loc) · 64.5 KB
/
template.DEFAULT.conf
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
##############################################################################
# #
# DEFAULT #
# #
##############################################################################
[DEFAULT]
#
# keyword: lock_timeout
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: 60
# inheritance: leaf > head
# scope order: specific > generic
# convert: duration
#
# desc: A duration expression, like '1m30s'. The maximum wait time for the
# action lock acquire. The svcmgr --waitlock option overrides this
# parameter.
#
;lock_timeout = 60
#
# keyword: docker_daemon_private
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: True
# inheritance: leaf > head
# scope order: specific > generic
# convert: boolean
#
# desc: If set to False, this service will use the system's shared docker
# daemon instance. This is parameter is forced to False on non-Linux
# systems.
#
;docker_daemon_private = True
#
# keyword: flex_primary
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: <first node of the nodes parameter>
# inheritance: leaf > head
# scope order: specific > generic
# depends: cluster_type in ['flex']
#
# desc: The node in charge of syncing the other nodes. --cluster actions on
# the flex_primary are execute on all peer nodes (ie, not drpnodes).
#
;flex_primary = <first node of the nodes parameter>
#
# keyword: drp_flex_primary
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: <first node of the drpnodes parameter>
# inheritance: leaf > head
# scope order: specific > generic
# depends: cluster_type in ['flex']
#
# desc: The drpnode in charge of syncing the other drpnodes. --cluster
# actions on the drp_flex_primary are execute on all drpnodes (ie, not
# pri nodes).
#
;drp_flex_primary = <first node of the drpnodes parameter>
#
# keyword: rollback
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: True
# inheritance: leaf > head
# scope order: specific > generic
# convert: boolean
#
# desc: If set to False, the default rollback on action error is inhibited,
# leaving the service in its half-started state.
#
;rollback = True
#
# keyword: status_schedule
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: @10
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: The service status evaluation schedule. See
# usr/share/doc/template.node.conf for the schedule syntax.
#
;status_schedule = @10
#
# keyword: comp_schedule
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: 00:00-06:00@361
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: The service compliance run schedule. See
# usr/share/doc/template.node.conf for the schedule syntax.
#
;comp_schedule = 00:00-06:00@361
#
# keyword: monitor_schedule
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: @1
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: The service resource monitor schedule. See
# usr/share/doc/template.node.conf for the schedule syntax.
#
;monitor_schedule = @1
#
# keyword: resinfo_schedule
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: @60
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: The service resource info push schedule. See
# usr/share/doc/template.node.conf for the schedule syntax.
#
;resinfo_schedule = @60
#
# keyword: push_schedule
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: 00:00-06:00@361
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: The service configuration emission to the collector schedule. See
# usr/share/doc/template.node.conf for the schedule syntax.
#
;push_schedule = 00:00-06:00@361
#
# keyword: sync_schedule
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: 04:00-06:00@121
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: The default sync resources schedule. See
# usr/share/doc/template.node.conf for the schedule syntax.
#
;sync_schedule = 04:00-06:00@121
#
# keyword: aws
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: The aws cli executable fullpath. If not provided, aws is expected to
# be found in the PATH.
#
;aws = foo
#
# keyword: aws_profile
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: default
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: The profile to use with the AWS api.
#
;aws_profile = default
#
# keyword: docker_exe
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: If you have multiple docker versions installed and want the service
# to stick to a version whatever the PATH definition, you should set
# this parameter to the full path to the docker executable.
#
;docker_exe = /usr/bin/docker-1.8
#
# keyword: dockerd_exe
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: If you have multiple docker versions installed and want the service
# to stick to a version whatever the PATH definition, you should set
# this parameter to the full path to the docker daemon executable.
#
;dockerd_exe = /usr/bin/dockerd-1.8
#
# keyword: docker_data_dir
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: If the service has docker-type container resources and
# docker_daemon_private is set to True, the service handles the
# startup of a private docker daemon. Its socket is
# <pathvar>/services/<svcname>/docker.sock, and its data directory
# must be specified using this parameter. This organization is
# necessary to enable service relocalization.
#
;docker_data_dir = /srv/svc1/data/docker
#
# keyword: docker_daemon_args
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: If the service has docker-type container resources, the service
# handles the startup of a private docker daemon. OpenSVC sets the
# socket and data dir parameters. Admins can set extra parameters
# using this keyword. For example, it can be useful to set the --ip
# parameter for a docker registry service.
#
;docker_daemon_args = --ip 1.2.3.4
#
# keyword: docker_swarm_args
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: The arguments passed to docker swarm init on the flex primary, and
# to docker swarm join on the the other nodes. The --token argument
# must not be specified, as it is handled by the agent. Scoping this
# parameter permits to set additional parameters on the flex_primary
# for use with swarm init only, like --autolock.
#
;docker_swarm_args = --advertize-addr {ip#0.ipname} --listen-addr {ip#0.ipname}
#
# keyword: prkey
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: Defines a specific default persistent reservation key for the
# service. A prkey set in a resource takes priority. If no prkey is
# specified in the service nor in the DEFAULT section, the prkey in
# node.conf is used. If node.conf has no prkey set, the hostid is
# computed and written in node.conf.
#
;prkey = foo
#
# keyword: hard_affinity
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: set([])
# inheritance: leaf > head
# scope order: specific > generic
# convert: set
#
# desc: A whitespace separated list of services that must be started on the
# node to allow the monitor to start this service.
#
;hard_affinity = set([])
#
# keyword: hard_anti_affinity
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: set([])
# inheritance: leaf > head
# scope order: specific > generic
# convert: set
#
# desc: A whitespace separated list of services that must not be started on
# the node to allow the monitor to start this service.
#
;hard_anti_affinity = set([])
#
# keyword: soft_affinity
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: set([])
# inheritance: leaf > head
# scope order: specific > generic
# convert: set
#
# desc: A whitespace separated list of services that must be started on the
# node to allow the monitor to start this service. If the local node
# is the only candidate ignore this constraint and allow start.
#
;soft_affinity = set([])
#
# keyword: soft_anti_affinity
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: set([])
# inheritance: leaf > head
# scope order: specific > generic
# convert: set
#
# desc: A whitespace separated list of services that must not be started on
# the node to allow the monitor to start this service. If the local
# node is the only candidate ignore this constraint and allow start.
#
;soft_anti_affinity = set([])
#
# keyword: show_disabled
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: True
# inheritance: leaf > head
# scope order: specific > generic
# candidates: True | False
# convert: boolean
#
# desc: Specifies if the disabled resources must be included in the print
# status and json status output.
#
;show_disabled = True
#
# keyword: cluster
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: The symbolic name of the cluster. Used to label shared disks
# represented to tiers-2 consumers like containers.
#
;cluster = cluster1
#
# keyword: cluster_type
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: failover
# inheritance: leaf > head
# scope order: specific > generic
# candidates: failover | flex
#
# desc: failover: the service is allowed to be up on one node at a time.
# allactive: the service must be up on all nodes. flex: the service
# can be up on n out of m nodes (n <= m), n/m must be in the
# [flex_min_nodes, flex_max_nodes] range.
#
;cluster_type = failover
#
# keyword: env
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: <same as node env>
# inheritance: leaf > head
# scope order: specific > generic
# candidates: DEV | DRP | FOR | INT | PRA | PRD | PRJ | PPRD | REC | STG | TMP | TST | UAT
#
# desc: A non-PRD service can not be brought up on a PRD node, but a PRD
# service can be startup on a non-PRD node (in a DRP situation). The
# default value is the node env.
#
;env = <same as node env>
#
# keyword: no_preempt_abort
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: False
# inheritance: leaf > head
# scope order: specific > generic
# candidates: True | False
# convert: boolean
#
# desc: If set to 'true', OpenSVC will preempt scsi reservation with a
# preempt command instead of a preempt and and abort. Some scsi target
# implementations do not support this last mode (esx). If set to
# 'false' or not set, 'no_preempt_abort' can be activated on a per-
# resource basis.
#
;no_preempt_abort = False
#
# keyword: orchestrate
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: no
# inheritance: leaf > head
# scope order: specific > generic
# candidates: ha | start | no
# convert: string
#
# desc: If set to 'no', disable service orchestration by the OpenSVC daemon
# monitor, including service start on boot. If set to 'start' failover
# services won't failover automatically, though the service instance
# on the natural placement leader is started if another instance is
# not already up. Flex services won't start missing instances to meet
# the flex_min_nodes target, though the <flex_min_nodes>th instances
# on best placement leaders are started if the instances minimum quota
# is not already reached. Resource restart is still active whatever
# the orchestrate value.
#
;orchestrate = no
#
# keyword: placement
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: nodes order
# inheritance: leaf > head
# scope order: specific > generic
# candidates: nodes order | load avg
#
# desc: Set a service instances placement policy. nodes order: the left-most
# available node is allowed to start a service instance when
# necessary. load avg: the least loaded node.
#
;placement = nodes order
#
# keyword: constraints
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
# depends: orchestrate in ha
#
# desc: An expression evaluating as a boolean, constraining the service
# instance placement by the daemon monitor to nodes with the
# constraints evaluated as True. The constraints are not honored by
# manual start operations. The constraints value is embedded in the
# json status. Supported comparison operators are '==', '!=', '>',
# '>=', '<=', 'in (e1, e2)', 'in [e1, e2]'. Supported arithmetic
# operators are '*', '+', '-', '/', '**', '//', '%'. Supported binary
# operators are '&', '|', '^'. The negation operator is 'not'.
# Supported boolean operators are 'and', 'or'. References are allowed.
# Strings, and references evaluating as strings, containing dots must
# be quoted.
#
;constraints = $("{nodename}"=="n2.opensvc.com")
#
# keyword: flex_min_nodes
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: 1
# inheritance: leaf > head
# scope order: specific > generic
# depends: cluster_type in ['flex']
# convert: integer
#
# desc: Minimum number of active nodes in the cluster. Below this number
# alerts are raised by the collector, and the collector won't stop any
# more service instances.
#
;flex_min_nodes = 1
#
# keyword: flex_max_nodes
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: 10
# inheritance: leaf > head
# scope order: specific > generic
# depends: cluster_type in ['flex']
# convert: integer
#
# desc: Maximum number of active nodes in the cluster. Above this number
# alerts are raised by the collector, and the collector won't start
# any more service instances. 0 means unlimited.
#
;flex_max_nodes = 10
#
# keyword: flex_cpu_low_threshold
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: 10
# inheritance: leaf > head
# scope order: specific > generic
# depends: cluster_type in ['flex']
# convert: integer
#
# desc: Cluster-wide load average below which flex service instances will be
# stopped.
#
;flex_cpu_low_threshold = 10
#
# keyword: flex_cpu_high_threshold
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: 70
# inheritance: leaf > head
# scope order: specific > generic
# depends: cluster_type in ['flex']
# convert: integer
#
# desc: Cluster-wide load average above which flex new service instances
# will be started.
#
;flex_cpu_high_threshold = 70
#
# keyword: stonith
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: False
# inheritance: leaf > head
# scope order: specific > generic
# candidates: True | False
# depends: cluster_type in ['failover']
# convert: boolean
#
# desc: Stonith the node previously running the service if stale upon start
# by the daemon monitor.
#
;stonith = False
#
# keyword: docker_swarm_managers
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: List of nodes promoted as docker swarm managers.The flex primary
# node is implicitely a manager. Whitespace separated.
#
;docker_swarm_managers = foo
#
# keyword: parents
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: []
# inheritance: leaf > head
# scope order: specific > generic
# convert: list_lower
#
# desc: List of services that must be 'avail up' before allowing this
# service to be started by the daemon monitor. Whitespace separated.
#
;parents = []
#
# keyword: children
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: []
# inheritance: leaf > head
# scope order: specific > generic
# convert: list_lower
#
# desc: List of services that must be 'avail down' before allowing this
# service to be stopped by the daemon monitor. Whitespace separated.
#
;children = []
#
# keyword: nodes
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: <hostname of the current node>
# inheritance: leaf > head
# scope order: specific > generic
# convert: list_lower
#
# desc: List of cluster local nodes able to start the service. Whitespace
# separated.
#
;nodes = <hostname of the current node>
#
# keyword: drpnode
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: The backup node where the service is activated in a DRP situation.
# This node is also a data synchronization target for 'sync'
# resources.
#
;drpnode = node1
#
# keyword: drpnodes
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: []
# inheritance: leaf > head
# scope order: specific > generic
# convert: list_lower
#
# desc: Alternate backup nodes, where the service could be activated in a
# DRP situation if the 'drpnode' is not available. These nodes are
# also data synchronization targets for 'sync' resources.
#
;drpnodes = []
#
# keyword: encapnodes
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: []
# inheritance: leaf > head
# scope order: specific > generic
# convert: list_lower
#
# desc: The list of containers handled by this service and with an OpenSVC
# agent installed to handle the encapsulated resources. With this
# parameter set, parameters can be scoped with the @encapnodes suffix.
#
;encapnodes = []
#
# keyword: app
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: DEFAULT
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: Used to identify who is responsible for this service, who is
# billable and provides a most useful filtering key. Better keep it a
# short code.
#
;app = DEFAULT
#
# keyword: comment
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: Helps users understand the role of the service, which is nice to on-
# call support people having to operate on a service they are not
# usually responsible for.
#
;comment = foo
#
# keyword: scsireserv
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: False
# inheritance: leaf > head
# scope order: specific > generic
# candidates: True | False
# convert: boolean
#
# desc: If set to 'true', OpenSVC will try to acquire a type-5 (write
# exclusive, registrant only) scsi3 persistent reservation on every
# path to disks of every disk group attached to this service. Existing
# reservations are preempted to not block service start-up. If the
# start-up was not legitimate the data are still protected from being
# written over from both nodes. If set to 'false' or not set,
# 'scsireserv' can be activated on a per-resource basis.
#
;scsireserv = False
#
# keyword: bwlimit
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
# convert: speed_kps
#
# desc: Bandwidth limit in KB applied to all rsync transfers. Leave empty to
# enforce no limit.
#
;bwlimit = 3 mb/s
#
# keyword: sync_interval
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: 121
# inheritance: leaf > head
# scope order: specific > generic
# convert: duration
#
# desc: Set the minimum delay between syncs in minutes. If a sync is
# triggered through a scheduler or manually, it is skipped if last
# sync occurred less than 'sync_min_delay' ago. The mecanism is
# enforced by a timestamp created upon each sync completion in
# <pathvar>/services/<svcname>/<rid>/last_sync_<node>
#
;sync_interval = 121
#
# keyword: sync_max_delay
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: 1440
# inheritance: leaf > head
# scope order: specific > generic
# convert: duration
#
# desc: Unit is minutes. This sets to delay above which the sync status of
# the resource is to be considered down. Should be set according to
# your application service level agreement. The scheduler task
# frequency should be set between 'sync_min_delay' and
# 'sync_max_delay'
#
;sync_max_delay = 1440
#
# keyword: presnap_trigger
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
# convert: shlex
#
# desc: Define a command to run before creating snapshots. This is most
# likely what you need to use plug a script to put you data in a
# coherent state (alter begin backup and the like).
#
;presnap_trigger = /srv/svc1/etc/init.d/pre_snap.sh
#
# keyword: postsnap_trigger
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
# convert: shlex
#
# desc: Define a command to run after snapshots are created. This is most
# likely what you need to use plug a script to undo the actions of
# 'presnap_trigger'.
#
;postsnap_trigger = /srv/svc1/etc/init.d/post_snap.sh
#
# keyword: pre_monitor_action
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
#
# desc: A script to execute before the monitor_action. For example, if the
# monitor_action is set to freezestop, the script can decide to crash
# the server if it detects a situation were the freezestop can not
# succeed (ex. fs can not be umounted with a dead storage array).
#
;pre_monitor_action = /bin/true
#
# keyword: monitor_action
# ----------------------------------------------------------------------------
# scopable: True
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
# candidates: reboot | crash | freezestop
#
# desc: The action to take when a monitored resource is not up nor standby
# up, and if the resource restart procedure has failed.
#
;monitor_action = reboot
#
# keyword: create_pg
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: True
# inheritance: leaf > head
# scope order: specific > generic
# candidates: True | False
# convert: boolean
#
# desc: Use process containers when possible. Containers allow capping
# memory, swap and cpu usage per service. Lxc containers are naturally
# containerized, so skip containerization of their startapp.
#
;create_pg = True
#
# keyword: pg_cpus
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
# depends: create_pg in [True]
#
# desc: Allow service process to bind only the specified cpus. Cpus are
# specified as list or range : 0,1,2 or 0-2
#
;pg_cpus = 0-2
#
# keyword: pg_mems
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
# depends: create_pg in [True]
#
# desc: Allow service process to bind only the specified memory nodes.
# Memory nodes are specified as list or range : 0,1,2 or 0-2
#
;pg_mems = 0-2
#
# keyword: pg_cpu_shares
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
# depends: create_pg in [True]
# convert: integer
#
# desc: Kernel default value is used, which usually is 1024 shares. In a
# cpu-bound situation, ensure the service does not use more than its
# share of cpu ressource. The actual percentile depends on shares
# allowed to other services.
#
;pg_cpu_shares = 512
#
# keyword: pg_cpu_quota
# ----------------------------------------------------------------------------
# scopable: False
# required: False
# provisioning: False
# default: None
# inheritance: leaf > head
# scope order: specific > generic
# depends: create_pg in [True]
#
# desc: The percent ratio of one core to allocate to the process group if %
# is specified, else the absolute value to set in the process group
# parameter. For example, on Linux cgroups, -1 means unlimited, and a
# positive absolute value means the number of microseconds to allocate
# each period. 50%@all means 50% of all cores, and 50%@2 means 50% of
# two cores.
#
;pg_cpu_quota = 50%@all
#
# keyword: pg_mem_oom_control