forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ml_info.yml
103 lines (93 loc) · 4.45 KB
/
ml_info.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
teardown:
- do:
cluster.put_settings:
body:
persistent:
xpack.ml.max_model_memory_limit: null
---
"Test ml info":
- do:
ml.info: {}
- match: { defaults.anomaly_detectors.categorization_analyzer.tokenizer: "ml_classic" }
- match: { defaults.anomaly_detectors.model_memory_limit: "1gb" }
- match: { defaults.anomaly_detectors.categorization_examples_limit: 4 }
- match: { defaults.anomaly_detectors.model_snapshot_retention_days: 10 }
- match: { defaults.anomaly_detectors.daily_model_snapshot_retention_after_days: 1 }
- match: { defaults.datafeeds.scroll_size: 1000 }
- is_false: limits.max_model_memory_limit
# We cannot assert an exact value for the next two as they will vary depending on the test machine
- match: { limits.effective_max_model_memory_limit: "/\\d+[kmg]?b/" }
- match: { limits.total_ml_memory: "/\\d+mb/" }
- match: { upgrade_mode: false }
- do:
cluster.put_settings:
body:
persistent:
xpack.ml.max_model_memory_limit: "512mb"
- do:
ml.info: {}
- match: { defaults.anomaly_detectors.categorization_analyzer.tokenizer: "ml_classic" }
- match: { defaults.anomaly_detectors.model_memory_limit: "512mb" }
- match: { defaults.anomaly_detectors.categorization_examples_limit: 4 }
- match: { defaults.anomaly_detectors.model_snapshot_retention_days: 10 }
- match: { defaults.anomaly_detectors.daily_model_snapshot_retention_after_days: 1 }
- match: { defaults.datafeeds.scroll_size: 1000 }
- match: { limits.max_model_memory_limit: "512mb" }
# We cannot assert an exact value for the next two as they will vary depending on the test machine
- match: { limits.effective_max_model_memory_limit: "/\\d+[kmg]?b/" }
- match: { limits.total_ml_memory: "/\\d+mb/" }
- match: { upgrade_mode: false }
- do:
cluster.put_settings:
body:
persistent:
xpack.ml.max_model_memory_limit: "6gb"
- do:
ml.info: {}
- match: { defaults.anomaly_detectors.categorization_analyzer.tokenizer: "ml_classic" }
- match: { defaults.anomaly_detectors.model_memory_limit: "1gb" }
- match: { defaults.anomaly_detectors.categorization_examples_limit: 4 }
- match: { defaults.anomaly_detectors.model_snapshot_retention_days: 10 }
- match: { defaults.anomaly_detectors.daily_model_snapshot_retention_after_days: 1 }
- match: { defaults.datafeeds.scroll_size: 1000 }
- match: { limits.max_model_memory_limit: "6gb" }
# We cannot assert an exact value for the next two as they will vary depending on the test machine
- match: { limits.effective_max_model_memory_limit: "/\\d+[kmg]?b/" }
- match: { limits.total_ml_memory: "/\\d+mb/" }
- match: { upgrade_mode: false }
- do:
cluster.put_settings:
body:
persistent:
xpack.ml.max_model_memory_limit: "6gb"
- do:
ml.info: {}
- match: { defaults.anomaly_detectors.categorization_analyzer.tokenizer: "ml_classic" }
- match: { defaults.anomaly_detectors.model_memory_limit: "1gb" }
- match: { defaults.anomaly_detectors.categorization_examples_limit: 4 }
- match: { defaults.anomaly_detectors.model_snapshot_retention_days: 10 }
- match: { defaults.anomaly_detectors.daily_model_snapshot_retention_after_days: 1 }
- match: { defaults.datafeeds.scroll_size: 1000 }
- match: { limits.max_model_memory_limit: "6gb" }
# We cannot assert an exact value for the next two as they will vary depending on the test machine
- match: { limits.effective_max_model_memory_limit: "/\\d+[kmg]?b/" }
- match: { limits.total_ml_memory: "/\\d+mb/" }
- match: { upgrade_mode: false }
- do:
cluster.put_settings:
body:
persistent:
xpack.ml.max_model_memory_limit: "1mb"
- do:
ml.info: {}
- match: { defaults.anomaly_detectors.categorization_analyzer.tokenizer: "ml_classic" }
- match: { defaults.anomaly_detectors.model_memory_limit: "1mb" }
- match: { defaults.anomaly_detectors.categorization_examples_limit: 4 }
- match: { defaults.anomaly_detectors.model_snapshot_retention_days: 10 }
- match: { defaults.anomaly_detectors.daily_model_snapshot_retention_after_days: 1 }
- match: { defaults.datafeeds.scroll_size: 1000 }
- match: { limits.max_model_memory_limit: "1mb" }
# This time we can assert an exact value for the next one because the hard limit is so low
- match: { limits.effective_max_model_memory_limit: "1mb" }
- match: { limits.total_ml_memory: "/\\d+mb/" }
- match: { upgrade_mode: false }