Skip to content

Add decommission metrics - #6646

Merged
guilload merged 2 commits into
mainfrom
guilload/add-failed-decommission-metrics
Aug 4, 2026
Merged

Add decommission metrics#6646
guilload merged 2 commits into
mainfrom
guilload/add-failed-decommission-metrics

Conversation

@guilload

Copy link
Copy Markdown
Member

Description

Add decommission metrics and log clearly what is the outcome of a decommissioning attempt.

How was this PR tested?

  • Added unit test
  • Tested locally

@guilload
guilload requested a review from a team as a code owner July 31, 2026 13:58
@guilload
guilload requested a review from loutPhilipps July 31, 2026 13:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 07d719c0d4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread quickwit/quickwit-transport/src/tls.rs
Comment thread quickwit/quickwit-ingest/src/ingest_v2/ingester.rs
Comment thread quickwit/quickwit-compaction/src/metrics.rs

@loutPhilipps loutPhilipps left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, not sure logging for compactor decommisionning errors is critical but won't hurt to have it!

Comment thread quickwit/quickwit-transport/src/tls.rs
@guilload
guilload force-pushed the guilload/add-failed-decommission-metrics branch from ec8a228 to fe2cba8 Compare August 4, 2026 16:25

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe2cba8a4d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

.map(|queue_summary| {
queue_summary
.end
.map(|end| end.saturating_sub(queue_summary.start) + 1)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid counting fully truncated WAL queues as records

When a queue has been fully truncated, mrecordlog keeps the last position while the queue is empty (the existing state test documents this as “queue is now empty but remembers position 1”), so end < start is a valid empty range. With saturating_sub(...)+1, that case is reported as one remaining record, causing decommission timeout diagnostics and the new wal_num_records observation field to overstate WAL contents whenever an ingester is waiting on shard deletion after all records were truncated; handle end < start as zero instead.

Useful? React with 👍 / 👎.

let self_node_id = self_node_id.clone();
let mrecordlog = mrecordlog.clone();
async move {
let mrecordlog_guard = mrecordlog.read().await;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep status observations from blocking on WAL locks

The readiness loop in quickwit-serve/src/lib.rs calls try_get_ingester_status without a timeout, but the first observation now awaits the WAL read lock before yielding the status. If WAL initialization/opening or a long append/truncate holds the write lock, readiness reporting stalls at this await and keeps the previous chitchat/health state instead of sampling the ingester status; consider emitting the status immediately or making WAL stats optional/non-blocking for status-only callers.

Useful? React with 👍 / 👎.

@guilload
guilload merged commit c05e56d into main Aug 4, 2026
9 checks passed
@guilload
guilload deleted the guilload/add-failed-decommission-metrics branch August 4, 2026 17:26
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