You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize loading mappings in logsdb index settings provider
Optimize mapping service usages in when determining synthetic source usage and assessing whether host.name field can be used for index sorting. This is done by excluding the part of the mapping we're not interested in.
This replaces #119935 and addresses the problem differently, by just loading the parts of the mapping LogsdbIndexModeSettingsProvider is interested in and by this lowering the overhead of parsing/merging mappings that has been reported via #119552.
create logsdb data stream with no host.name and timestamp as date:
119
+
- requires:
120
+
test_runner_features: [ "allowed_warnings" ]
121
+
122
+
- do:
123
+
cluster.put_component_template:
124
+
name: "logsdb-mappings"
125
+
body:
126
+
template:
127
+
settings:
128
+
mode: "logsdb"
129
+
mappings:
130
+
properties:
131
+
"@timestamp":
132
+
type: "date"
133
+
134
+
- do:
135
+
indices.put_index_template:
136
+
name: "logsdb-index-template"
137
+
body:
138
+
index_patterns: ["logsdb"]
139
+
data_stream: {}
140
+
composed_of: ["logsdb-mappings"]
141
+
allowed_warnings:
142
+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
create logsdb data stream with host as keyword and timestamp as date:
165
+
- requires:
166
+
test_runner_features: [ "allowed_warnings" ]
167
+
168
+
- do:
169
+
cluster.put_component_template:
170
+
name: "logsdb-mappings"
171
+
body:
172
+
template:
173
+
settings:
174
+
mode: "logsdb"
175
+
mappings:
176
+
properties:
177
+
host:
178
+
type: "keyword"
179
+
"@timestamp":
180
+
type: "date"
181
+
182
+
- do:
183
+
indices.put_index_template:
184
+
name: "logsdb-index-template"
185
+
body:
186
+
index_patterns: ["logsdb"]
187
+
data_stream: {}
188
+
composed_of: ["logsdb-mappings"]
189
+
allowed_warnings:
190
+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
0 commit comments