Observability

Distributed tracing

qianmoQqianmoQ· 更新于 2026-09-24· 阅读 2 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

Distributed tracing can help to understand performance bottleneck with visualizing end-to-end performance. Ozone makes use of OpenTelemetry API for tracing and uses OTLP with gRPC format for sending traces. jaeger tracing library as collector can collect traces from Ozone over default port 4317 (as default).

Tracing is turned off by default, but can be turned on with hdds.tracing.enabled from ozone-site.xml

<property>
   <name>hdds.tracing.enabled</name>
   <value>true</value>
</property>

Below are the configuration steps for setting the collector endpoint and sampling strategy. Set these environment variables to be set for each Ozone component (OM, SCM, Datanode) and for the Ozone client to enable tracing.

OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
OTEL_TRACES_SAMPLER_ARG=0.01

This configuration will record 1% of the requests to limit the performance overhead.

评论

登录后参与评论

正在加载评论…