Skip to content

Adapt qlever monitor-queries to the new resource-usage log and show index rebuilds - #330

Draft
tanmay-9 wants to merge 5 commits into
qlever-dev:mainfrom
tanmay-9:support-new-resource-log-cols
Draft

Adapt qlever monitor-queries to the new resource-usage log and show index rebuilds#330
tanmay-9 wants to merge 5 commits into
qlever-dev:mainfrom
tanmay-9:support-new-resource-log-cols

Conversation

@tanmay-9

Copy link
Copy Markdown
Collaborator

Companion to ad-freiburg/qlever#3188 and ad-freiburg/qlever#3256, which extend the resource-usage log from four columns to eight: read_bytes_per_s, write_bytes_per_s, io_stall_percent, and rebuild_id (the id of the index rebuild running at that sample).

So far, monitor-queries accepted resource-usage rows of exactly four columns, which breaks against a new resource-usage log with 8 columns. With this change, both formats are now read, so logs from older servers keep rendering exactly as before.

The plot also marks index rebuilds: a blue line where a rebuild started and a violet one where it ended, next to the orange and green lines that already mark the server going down and coming back. This works on the Live screen and for any window on the Historic screen.

With four kinds of marker, the legend no longer fits inside the plot and has moved into a heading row above it, which also names the plot (Memory and CPU).

The three remaining new columns (disk read and write rates, and I/O stall) are read but not yet drawn; the plots that use them follow separately.

NOTE: The server rotates the log when its format changes, so after upgrading the server binary the history from before the upgrade sits in a sibling file, which we do not read. The Historic timeline comes from the metrics log, which is not rotated, so a window can reach further back than the resource data goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants