Commit b02dbb4
Add block size to head block cut log message (#5771)
* Add block size to head block cut log message
This change adds a size field to the 'head block cut' log message
in the ingester. This improves observability by showing the actual
size of the block when it's cut, making it easier to understand
whether blocks are cut due to size or duration limits.
Before:
level=info msg="head block cut. enqueueing flush op" tenant=CashwalkAPI block=0e5151dd-4a5f-4fbe-b24e-d946f6faf894
After:
level=info msg="head block cut. enqueueing flush op" tenant=CashwalkAPI block=0e5151dd-4a5f-4fbe-b24e-d946f6faf894 size=134217728
This is particularly useful for debugging OOMKilled issues caused by
concurrent flushing of oversized blocks, as it provides immediate
visibility into block sizes that correlate with memory pressure.
Signed-off-by: backend-minho <[email protected]>
* Add block size to head block cut log messages
This change adds a size field to the log messages when cutting head
blocks in both ingester and livestore modules. This improves
observability by showing the actual size of blocks when they are cut,
making it easier to understand whether blocks are cut due to size or
duration limits.
Changes:
- ingester: Add size to 'head block cut. enqueueing flush op' message
- livestore: Add size to 'queueing wal block for completion' message
Example output (ingester):
level=info msg="head block cut. enqueueing flush op" block=0e5151dd-4a5f-4fbe-b24e-d946f6faf894 size=134217728
This is particularly useful for debugging OOMKilled issues caused by
concurrent flushing of oversized blocks, as it provides immediate
visibility into block sizes that correlate with memory pressure.
Signed-off-by: MinhoJJang <[email protected]>
* Enhance logging for flush operations in ingester
This update improves the logging for flush operations by adding a message when enqueueing a flush operation in the `cutOneInstanceToWal` method. Additionally, the log message for cutting head blocks has been simplified by removing the "enqueueing flush op" part, focusing on the block cut event itself.
Changes:
- ingester: Log message enhancement for flush operation enqueueing
- ingester: Simplify log message for head block cut
This enhancement aids in better tracking of flush operations and improves log clarity.
Signed-off-by: [MinhoJJang] <[email protected]>
---------
Signed-off-by: backend-minho <[email protected]>
Signed-off-by: MinhoJJang <[email protected]>
Signed-off-by: [MinhoJJang] <[email protected]>
Co-authored-by: MinhoJJang <[email protected]>1 parent 058140d commit b02dbb4
3 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
290 | 294 | | |
291 | 295 | | |
292 | 296 | | |
| |||
304 | 308 | | |
305 | 309 | | |
306 | 310 | | |
307 | | - | |
| 311 | + | |
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| 399 | + | |
399 | 400 | | |
400 | 401 | | |
401 | | - | |
| 402 | + | |
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
| |||
0 commit comments