Commit 89d80a6
authored
Feature/querysharding ii (#1927)
* [wip] sharding evaluator/ast
* [wip] continues experimenting with ast mapping
* refactoring in preparation for binops
* evaluators can pass state to other evaluators
* compiler alignment
* Evaluator method renamed to StepEvaluator
* chained evaluator impl
* tidying up sharding code
* handling for ConcatSampleExpr
* downstream iterator
* structure for downstreaming asts
* outlines sharding optimizations
* work on sharding mapper
* ast sharding optimizations
* test for different logrange positions
* shard mapper tests
* stronger ast sharding & tests
* shardmapper tests for string->string
* removes sharding evaluator code
* removes unused ctx arg
* Revert "removes sharding evaluator code"
This reverts commit 55d41b9.
* interfaces for downstreaming, type conversions
* sharding plumbing on frontend
* type alignment in queryrange to downstream sharded queriers
* downstreaming support for sharding incl storage code
* removes chainedevaluator
* comment alignment
* storage shard injection
* speccing out testware for sharding equivalence
* [wip] shared engine refactor
* sorting streams, sharding eval fixes
* downstream evaluator embeds defaultevaluator
* other pkgs adopt logql changes
* metrics & logs use same middleware instantiation process
* wires up shardingware
* middleware per metrics/logfilter
* empty step populating StepEvaluator promql.Matrix adapter
* sharding metrics
* log/span injection into sharded engine
* sharding metrics avoids multiple instantiation
* downstreamhandler tracing
* sharding parameterized libsonnet
* removes querier replicas
* default 32 concurrency for workers
* jsonnet correct level override
* unquote true in yaml
* lowercase error + downstreamEvaluator defaults to embedded defaultEvaluator
* makes shardRecorder private
* logs query on failed parse
* refactors engine to be multi-use, minimizes logger injection, generalizes Query methods, removes Engine interface
* basic tests for querysharding mware
* [wip] concurrent evaluator
* integrates stat propagation into sharding evaluator
* splitby histogram
* extends le bounds for bytes processed
* byte throughput histogram buckets to 40gb
* chunk duration mixin
* fixes merge w/ field rename
* derives logger in sharded engine via ctx & logs some downstream evaluators
* moves sharded engine to top, adds comments
* logs failed merge results in stats ctx
* snapshotting stats merge logic is done more effectively
* per query concurrency controlled via downstreamer
* unexports decodereq
* queryrange testware
* downstreamer tests
* pr requests1 parent 156023a commit 89d80a6
File tree
43 files changed
+2808
-377
lines changed- pkg
- logcli/query
- loghttp
- logproto
- logql
- stats
- loki
- querier
- queryrange
- storage
- production
- ksonnet/loki
- loki-mixin
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+2808
-377
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
124 | 134 | | |
125 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
126 | 145 | | |
127 | 146 | | |
128 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
| |||
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
| 284 | + | |
| 285 | + | |
283 | 286 | | |
284 | 287 | | |
285 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
67 | 74 | | |
68 | 75 | | |
69 | 76 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 83 | + | |
| 84 | + | |
88 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
| |||
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
109 | 115 | | |
110 | 116 | | |
111 | | - | |
| 117 | + | |
112 | 118 | | |
113 | | - | |
| 119 | + | |
114 | 120 | | |
115 | 121 | | |
116 | | - | |
| 122 | + | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| |||
122 | 128 | | |
123 | 129 | | |
124 | 130 | | |
125 | | - | |
| 131 | + | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| |||
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
137 | | - | |
| 143 | + | |
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
143 | 149 | | |
144 | 150 | | |
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 | | - | |
| 151 | + | |
| 152 | + | |
185 | 153 | | |
186 | 154 | | |
187 | | - | |
188 | | - | |
189 | | - | |
| 155 | + | |
190 | 156 | | |
191 | 157 | | |
192 | 158 | | |
193 | 159 | | |
194 | 160 | | |
195 | 161 | | |
196 | | - | |
| 162 | + | |
197 | 163 | | |
198 | 164 | | |
199 | 165 | | |
200 | | - | |
| 166 | + | |
201 | 167 | | |
202 | 168 | | |
203 | 169 | | |
| 170 | + | |
204 | 171 | | |
205 | | - | |
| 172 | + | |
206 | 173 | | |
| 174 | + | |
| 175 | + | |
207 | 176 | | |
208 | | - | |
209 | | - | |
210 | 177 | | |
211 | 178 | | |
212 | 179 | | |
213 | | - | |
| 180 | + | |
214 | 181 | | |
215 | | - | |
| 182 | + | |
216 | 183 | | |
217 | 184 | | |
218 | | - | |
| 185 | + | |
219 | 186 | | |
220 | 187 | | |
221 | 188 | | |
| |||
224 | 191 | | |
225 | 192 | | |
226 | 193 | | |
227 | | - | |
| 194 | + | |
228 | 195 | | |
229 | 196 | | |
230 | 197 | | |
| |||
262 | 229 | | |
263 | 230 | | |
264 | 231 | | |
265 | | - | |
| 232 | + | |
266 | 233 | | |
267 | | - | |
| 234 | + | |
268 | 235 | | |
269 | 236 | | |
270 | 237 | | |
271 | | - | |
| 238 | + | |
272 | 239 | | |
273 | 240 | | |
274 | 241 | | |
275 | | - | |
| 242 | + | |
276 | 243 | | |
277 | 244 | | |
278 | 245 | | |
279 | | - | |
| 246 | + | |
280 | 247 | | |
281 | 248 | | |
282 | 249 | | |
| |||
286 | 253 | | |
287 | 254 | | |
288 | 255 | | |
289 | | - | |
| 256 | + | |
290 | 257 | | |
291 | 258 | | |
292 | 259 | | |
| |||
329 | 296 | | |
330 | 297 | | |
331 | 298 | | |
332 | | - | |
| 299 | + | |
333 | 300 | | |
334 | 301 | | |
335 | 302 | | |
| 303 | + | |
336 | 304 | | |
337 | 305 | | |
338 | 306 | | |
| |||
0 commit comments