Devesh Kumar Singh created HDDS-17915:
-----------------------------------------
Summary: Add SCM allocateBlock latency metrics by requested
storage tier
Key: HDDS-17915
URL: https://issues.apache.org/jira/browse/HDDS-17915
Project: Apache Ozone
Issue Type: Task
Reporter: Devesh Kumar Singh
Assignee: Devesh Kumar Singh
Problem
SCM exports allocateBlock latency only as cluster-wide totals:
AllocateBlockSuccessLatencyNs and AllocateBlockFailureLatencyNs, in
SCMPerformanceMetrics. If COLD writes are slower than HOT writes, an operator
cannot tell from these metrics which tier is slow, or whether the problem is
SCM in general.
Raised in review:
https://github.com/apache/ozone/pull/12079#pullrequestreview-6034647212.
*Proposal*
Add success and failure latency for allocateBlock, labelled by requested tier:
scm_performance_metrics_allocate_block_success_latency_ns{requestedtier="ARCHIVE"}
scm_performance_metrics_allocate_block_failure_latency_ns{requestedtier="ARCHIVE"}
- Keep the existing aggregate metrics unchanged. The new series sit alongside
them.
- The label is the requested tier, StoragePolicy#getCreationTier(), which
SCMBlockProtocolServer#allocateBlock receives. A null or EMPTY tier is UNKNOWN.
The set of values is fixed and small.
- Record the latency where the aggregate latency is recorded today, on every
success and failure path (including timeout and other exceptions).
- The existing MutableRate fields cannot carry tags. Use one rate per tier,
created up front, and export it with a tier tag.
Notes
- One allocateBlock call can return several blocks, and some of them can be
fallback blocks. The label is the tier the call asked for, not the tier the
blocks landed on. Document this in the metric description.
- Out of scope: per-tier pipeline creation latency. pipelineCreationLatencyNs
is recorded in PipelineManagerImpl#openPipeline, and its start time is taken
when that method starts. So it covers only the switch to OPEN, not building the
pipeline, and splitting it by tier would not explain slow writes. Per-tier
pipeline creation outcome and timing fits better under HDDS-17823.
- EC: until P22 / HDDS-16678, EC allocation does not place by tier. The label
still shows what was requested, which stays correct.
Related
- HDDS-17820: tier placement failure reasons.
- HDDS-17822: eligible datanodes per storage type.
- HDDS-17823: pipelines by storage tier.
- Together with this JIRA, these show whether a slow tier is short of space,
short of nodes, short of pipelines, or just slow.
Tests
- Success and failure for each tier update only that tier's series.
- The aggregate metrics still change exactly as they do today.
- An EMPTY or null tier maps to UNKNOWN.
- The timeout and exception paths record failure latency for the requested tier.
- All tier series are exported before any traffic.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]