Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

Chapter 2. Recommended etcd practices


Follow storage, latency, and hardware validation guidance for etcd to reduce leader elections, API timeouts, and control plane instability on OpenShift Container Platform.

2.3. Validating the hardware for etcd

Validate control plane disk performance with fio before or after you create the OpenShift Container Platform cluster so that you can confirm that storage meets etcd latency requirements.

The output of the following procedure reports whether the disk is fast enough to host etcd by comparing the 99th percentile of the fsync metric captured from the run to see if it is less than 10 ms.

A few of the most important etcd metrics that might affected by I/O performance are as follows:

  • etcd_disk_wal_fsync_duration_seconds_bucket reports the etcd WAL fsync duration.
  • etcd_disk_backend_commit_duration_seconds_bucket reports the etcd backend commit latency duration.
  • etcd_server_leader_changes_seen_total reports the leader changes.

Because etcd replicates the requests among all the members, its performance strongly depends on network input/output (I/O) latency. High network latencies result in etcd heartbeats taking longer than the election timeout, which results in leader elections that are disruptive to the cluster. A key metric to monitor on a deployed OpenShift Container Platform cluster is the 99th percentile of etcd network peer latency on each etcd cluster member. Use Prometheus to track the metric.

The histogram_quantile(0.99, rate(etcd_network_peer_round_trip_time_seconds_bucket[2m])) metric reports the round trip time for etcd to finish replicating the client requests between the members. Ensure that it is less than 50 ms.

Prerequisites

  • A container runtime, such as Podman or Docker, is installed on the machine that you are testing.
  • The /var/lib/etcd path is available for writing test data.

Procedure

  • Run fio and analyze the results:

    • If you use Podman, run the following command:

      $ sudo podman run --volume /var/lib/etcd:/var/lib/etcd:Z quay.io/cloud-bulldozer/etcd-perf
    • If you use Docker, run the following command:

      $ sudo docker run --volume /var/lib/etcd:/var/lib/etcd:Z quay.io/cloud-bulldozer/etcd-perf

Verification

  • Confirm that the 99th percentile of the fsync metric from the run is less than 10 ms.
  • Confirm that the report indicates that the disk is fast enough to host etcd.
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat Dokumentation

Legal Notice

Theme

© 2026 Red Hat
Nach oben