-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdopey.example.yaml
86 lines (81 loc) · 1.99 KB
/
dopey.example.yaml
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
#log: dopey.log
eshost: http://user:secret@127.0.0.1:9200
batch: 10
sumary:
log: null
prints: null
mail:
mail_host: "mail.corp.com"
from_who: "jia.liu@corp.com"
to_list: ["jia.liu@corp.com"]
login_user: 'admin'
login_password: '123456'
setup:
- update_cluster_settings:
transient:
cluster:
routing:
rebalance.enable: none
teardown:
- update_cluster_settings:
transient:
cluster:
routing:
rebalance.enable: all
indices:
test1-:
- delete_indices:
days: 10 # <=10 days
- close_indices:
days: 7 # <= 7 days
- freeze_indices:
days: 3-6
- optimize_indices:
day: 2
settings:
flush: 'true'
max_num_segments: 1
- update_settings:
day: 1 # == 1 day
settings:
index:
routing:
allocation:
require:
boxtype: "weak"
number_of_replicas: "1"
refresh_interval: "30s"
test2-:
- delete_indices:
days: 10 # <=10 days
- close_indices:
days: 7 # <= 7 days
- freeze_indices:
days: 3-6
- optimize_indices:
day: 2
settings:
flush: 'true'
max_num_segments: 2
- update_settings:
day: 1 # == 1 day
settings:
index:
routing:
allocation:
require:
boxtype: "weak"
number_of_replicas: "1"
refresh_interval: "30s"
#按月建的索引, 在34天后删除, 按天建的索引, 8天后删除
.*-(?=\d{4}\.\d{2}$):
- delete_indices:
days: 34
.*-(?=\d{4}\.\d{2}\.\d{2}$):
- delete_indices:
days: 8
test-(?P<date>%Y%m%d%H)00-\d:
- delete_indices:
hours: 6
- freeze_indices:
hours: 4