<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Best Practice on HUATUO Documentation</title>
    <link>https://docs.huatuo.tech/en/v2.3.0/best-practice/</link>
    <description>Recent content in Best Practice on HUATUO Documentation</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 13 Aug 2026 21:53:16 +0800</lastBuildDate>
    <atom:link href="https://docs.huatuo.tech/en/v2.3.0/best-practice/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Storage Service</title>
      <link>https://docs.huatuo.tech/en/v2.3.0/best-practice/storage/</link>
      <pubDate>Mon, 27 Jul 2026 00:00:00 +0000</pubDate>
      <guid>https://docs.huatuo.tech/en/v2.3.0/best-practice/storage/</guid>
      <description>&lt;div class=&#34;alert alert-info&#34; role=&#34;alert&#34;&gt;&lt;div class=&#34;h4 alert-heading&#34; role=&#34;heading&#34;&gt;🎯 About HUATUO&lt;/div&gt;&#xA;&lt;div style=&#34;text-align: center;&#34;&gt;&#xA;HUATUO is an open-source OS-level deep observability project initiated by DiDi and incubated by the CCF (China Computer Federation). It provides kernel-level observability for cloud-native computing, AI computing, cloud services, and foundational infrastructure.&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;-overview&#34;&gt;📖 Overview&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#-overview&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;HUATUO supports persisting Linux kernel events collected by the Tracer and AutoTracing data to external storage backends. Both Elasticsearch and OpenSearch are supported.&lt;/p&gt;&#xA;&lt;p&gt;After serialization to JSON, collected events are written concurrently to the local node directory (&lt;code&gt;huatuo-local/&lt;/code&gt;) and the configured remote storage backend. The local directory retains a local copy of events; the remote backend provides durable storage and structured query capabilities.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Data Source</title>
      <link>https://docs.huatuo.tech/en/v2.3.0/best-practice/datasource/</link>
      <pubDate>Tue, 05 May 2026 00:00:00 +0000</pubDate>
      <guid>https://docs.huatuo.tech/en/v2.3.0/best-practice/datasource/</guid>
      <description>&lt;p&gt;HUATUO integrates with Prometheus for metrics collection and Elasticsearch for log storage. This document covers data source configuration and dashboard provisioning in Grafana.&lt;/p&gt;&#xA;&lt;p&gt;Two deployment paths are supported:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Docker Compose&lt;/strong&gt; — recommended for development and testing; all components are pre-configured.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Kubernetes&lt;/strong&gt; — for production clusters; requires manual data source configuration.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;quick-start-docker-compose&#34;&gt;Quick Start (Docker Compose)&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#quick-start-docker-compose&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The &lt;code&gt;build/docker/&lt;/code&gt; directory contains a complete stack. All default credentials and ports listed below match this setup.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Events Watch</title>
      <link>https://docs.huatuo.tech/en/v2.3.0/best-practice/events-watch/</link>
      <pubDate>Mon, 27 Jul 2026 00:00:00 +0000</pubDate>
      <guid>https://docs.huatuo.tech/en/v2.3.0/best-practice/events-watch/</guid>
      <description>&lt;div class=&#34;alert alert-info&#34; role=&#34;alert&#34;&gt;&lt;div class=&#34;h4 alert-heading&#34; role=&#34;heading&#34;&gt;🎯 About HUATUO&lt;/div&gt;&#xA;&lt;div style=&#34;text-align: center;&#34;&gt;&#xA;HUATUO is an operating system observability project open-sourced by DiDi and incubated under CCF (China Computer Federation). It provides kernel-level deep observability for cloud-native general computing, AI computing, cloud services, and foundational services.&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;-overview&#34;&gt;📖 Overview&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#-overview&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;/v1/events/watch&lt;/code&gt; is HUATUO&amp;rsquo;s real-time kernel event subscription endpoint. A single HTTP POST long-lived connection streams kernel anomaly events from the node continuously. Events are wrapped in the &lt;a href=&#34;https://cloudevents.io/&#34;&gt;CloudEvents 1.0&lt;/a&gt; specification and delivered via the &lt;a href=&#34;https://html.spec.whatwg.org/multipage/server-sent-events.html&#34;&gt;Server-Sent Events (SSE)&lt;/a&gt; protocol.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Profiling</title>
      <link>https://docs.huatuo.tech/en/v2.3.0/best-practice/profilter/</link>
      <pubDate>Thu, 18 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://docs.huatuo.tech/en/v2.3.0/best-practice/profilter/</guid>
      <description>&lt;h2 id=&#34;flame-graph-formats&#34;&gt;Flame Graph Formats&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#flame-graph-formats&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;In profiling, &lt;strong&gt;collapsed&lt;/strong&gt; and &lt;strong&gt;flamegraph&lt;/strong&gt; are the two most common formats, corresponding to the &amp;ldquo;raw data&amp;rdquo; and &amp;ldquo;visual view&amp;rdquo; layers respectively.&lt;/p&gt;&#xA;&lt;h3 id=&#34;collapsed-format&#34;&gt;Collapsed Format&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#collapsed-format&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;h4 id=&#34;standard-syntax-and-format&#34;&gt;Standard Syntax and Format&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#standard-syntax-and-format&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h4&gt;&#xA;&lt;p&gt;The collapsed format (also called folded stacks) was defined by Brendan Gregg and serves as the &lt;strong&gt;raw text input format&lt;/strong&gt; for flame graphs. Each line represents a unique call stack and its sample count.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Network Drop Monitoring</title>
      <link>https://docs.huatuo.tech/en/v2.3.0/best-practice/dropwatch/</link>
      <pubDate>Fri, 05 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://docs.huatuo.tech/en/v2.3.0/best-practice/dropwatch/</guid>
      <description>&lt;div class=&#34;alert alert-info&#34; role=&#34;alert&#34;&gt;&lt;div class=&#34;h4 alert-heading&#34; role=&#34;heading&#34;&gt;About HUATUO&lt;/div&gt;&#xA;&lt;div style=&#34;text-align: left;&#34;&gt;&#xA;HUATUO is an OS-level deep observability project open-sourced by DiDi and incubated under CCF (China Computer Federation). It provides kernel-level deep observability for cloud-native general computing, AI computing, cloud services, and infrastructure services.&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#overview&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;dropwatch observes software drops through &lt;code&gt;tracepoint/skb/kfree_skb&lt;/code&gt; and hardware drops reported by capable drivers through &lt;code&gt;raw_tracepoint/devlink_trap_report&lt;/code&gt;. It outputs protocol fields, the IP tuple, network device, drop reason, and kernel stack.&lt;/p&gt;&#xA;&lt;p&gt;dropwatch supports kernel-side filtering based on tcpdump-style filter expressions. The filter logic is compiled into eBPF bytecode at load time by the built-in pure-Go pcap compiler &lt;code&gt;internal/pcapfilter&lt;/code&gt;. Filtering is performed entirely in kernel mode — only matching packets are reported to user space, reducing performance impact on the host.&lt;/p&gt;</description>
    </item>
    <item>
      <title>TCP Retransmission Tracing</title>
      <link>https://docs.huatuo.tech/en/v2.3.0/best-practice/tcpshark/</link>
      <pubDate>Mon, 20 Jul 2026 00:00:00 +0000</pubDate>
      <guid>https://docs.huatuo.tech/en/v2.3.0/best-practice/tcpshark/</guid>
      <description>&lt;div class=&#34;alert alert-info&#34; role=&#34;alert&#34;&gt;&lt;div class=&#34;h4 alert-heading&#34; role=&#34;heading&#34;&gt;About HUATUO&lt;/div&gt;&#xA;&lt;div style=&#34;text-align: left;&#34;&gt;&#xA;HUATUO is an OS-level deep observability project open-sourced by DiDi and incubated under CCF (China Computer Federation). It provides kernel-level deep observability for cloud-native general computing, AI computing, cloud services, and infrastructure services.&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#overview&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;tcpshark --mode retransmit&lt;/code&gt; observes TCP retransmission-related kernel activity through the &lt;code&gt;tcp/tcp_retransmit_skb&lt;/code&gt; and &lt;code&gt;tcp/tcp_retransmit_synack&lt;/code&gt; tracepoints. It can also observe the &lt;code&gt;tcp_send_loss_probe&lt;/code&gt; kprobe when TLP collection is explicitly enabled. Depending on the event type, an event can include the IP 4-tuple, TCP state, congestion-control state, retransmission counters, sequence information, and socket metadata used for container resolution.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
