-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathschedule.yml
86 lines (84 loc) · 3.13 KB
/
schedule.yml
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
#
# Copyright 2020 Telefonaktiebolaget LM Ericsson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##
## The schedules can be defined using exact keyspace/table names.
## It's also possible to define the names using quoted regular expressions.
##
## When the repair scheduler configures repairs it configures in the following order:
##
## 1. Defined tables (ks1/tb1)
## 2. Defined keyspaces with regex tables (ks1/[a-Z]123)
## 3. Regex Keyspaces with defined tables ([a-Z]abc/tb2)
## 4. Regex keyspaces with regex tables ([a-Z]abc/[a-Z]123)
##
## Multiple regular expressions matching a single table should be avoided as it will be difficult
## to know which value will win out.
##
keyspaces:
# - name: ks1
# tables:
# - name: tb1
##
## If repair should be enabled for this table.
## This can be used to disable automatic repairs of certain tables.
##
# enabled: true
##
## How often repairs should be triggered for the table.
##
# interval:
# time: 7
# unit: days
##
## Alarms are triggered when the table has not been repaired for a long amount of time.
## The warning alarm is meant to indicate early that repairs are falling behind.
## The error alarm is meant to indicate that gc_grace has passed between repairs.
##
## With the defaults where repairs triggers once every 7 days for the table a warning alarm would be raised
## if the table has not been properly repaired within one full day.
##
# alarm:
# warn:
# time: 8
# unit: days
# error:
# time: 10
# unit: days
##
## Specifies the unwind ratio to smooth out the load that repairs generate.
## This value is a ratio between 0 -> 100% of the execution time of a repair session.
##
## 100% means that the executor will wait to run the next session for as long time as the previous session took.
##
# unwind_ratio: 0.0
##
## Specifies a target for how much data each repair session should process.
## This is only supported if using 'vnode' as repair_type.
## This is an estimation assuming uniform data distribution among partition keys.
## The value should be either a number or a number with a unit of measurement:
## 12 (12 B)
## 12k (12 KiB)
## 12m (12 MiB)
## 12g (12 GiB)
##
# size_target:
##
## Specifies the default repair_type.
## Possible values are: vnode, parallel_vnode, incremental
## vnode = repair 1 vnode at a time (supports size_target to split the vnode further, in this case there will be 1 repair session per subrange)
## parallel_vnode = repair vnodes in parallel, this will combine vnodes into a single repair session per repair group
## incremental = repair vnodes incrementally (incremental repair)
##
# repair_type: vnode