<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Operations on Mimus</title><link>https://mimus.pgsty.com/docs/etcd/operations/</link><description>Recent content in Operations on Mimus</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 06 Dec 2026 15:37:05 +0800</lastBuildDate><atom:link href="https://mimus.pgsty.com/docs/etcd/operations/index.xml" rel="self" type="application/rss+xml"/><item><title>Build from source</title><link>https://mimus.pgsty.com/docs/etcd/operations/build/</link><guid>https://mimus.pgsty.com/docs/etcd/operations/build/</guid><description>&lt;p&gt;This page describes the &lt;code&gt;pgetcd&lt;/code&gt; repository layout, the current root-module dependencies, release build commands, and verification suites. The current tree is untagged; the &lt;code&gt;v0.1.0-rc2&lt;/code&gt; candidate remains documented in &lt;a href="https://mimus.pgsty.com/docs/etcd/releases/"&gt;Releases&lt;/a&gt;. To start a local development tenant after building, see &lt;a href="https://mimus.pgsty.com/docs/etcd/quickstart/"&gt;Quick start&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="sources"&gt;Repository layout&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table class="wide td-table--wide"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Path&lt;/th&gt;&#10; &lt;th scope="col"&gt;Responsibility&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;cmd/pgetcd&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Gateway binary entry point (&lt;code&gt;--tenant-config&lt;/code&gt;, &lt;code&gt;--version&lt;/code&gt;, and internal test modes)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;internal/gateway&lt;/code&gt;, &lt;code&gt;internal/watch&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;etcd v3 gRPC service handlers, Watch session multiplexing, and bounded event delivery&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;internal/pgstore&lt;/code&gt;, &lt;code&gt;internal/pgprobe&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Certified SQL publication pool, transaction boundaries, and PostgreSQL state probes&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;internal/tenant&lt;/code&gt;, &lt;code&gt;internal/tenantservice&lt;/code&gt;, &lt;code&gt;internal/transport&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Tenant JSON validation, readiness lifecycle, and mTLS listeners&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;extension/pg_etcd.c&lt;/code&gt;, &lt;code&gt;extension/pg_kvcore&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;C/PGXS PostgreSQL extension, revision/Txn engine, &lt;code&gt;_tail_v2&lt;/code&gt;, and Lease background workers&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;versions.lock.json&lt;/code&gt;, &lt;code&gt;go.mod&lt;/code&gt;, &lt;code&gt;go.sum&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Pinned upstream reference versions and Go module checksums&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;tests/&lt;/code&gt;, &lt;code&gt;scripts/&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;SQL suites, official client probes, Watch race tests, and historical gate checkers&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;h2 id="versions"&gt;Toolchain and pinned versions&#10;&lt;/h2&gt;&#10;&lt;p&gt;The current root tree after the 2026-11-11 dependency refresh requires the following versions:&lt;/p&gt;</description></item><item><title>Troubleshooting</title><link>https://mimus.pgsty.com/docs/etcd/operations/troubleshooting/</link><guid>https://mimus.pgsty.com/docs/etcd/operations/troubleshooting/</guid><description>&lt;p&gt;When diagnosing an issue, record the gateway version (&lt;code&gt;pgetcd --version&lt;/code&gt;), source commit, command flags, and exact error text with timestamps. Never include database passwords, private keys, or raw tenant payload values in bug reports.&lt;/p&gt;&#10;&lt;h2 id="startup"&gt;Startup failures&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table class="wide td-table--wide"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Symptom&lt;/th&gt;&#10; &lt;th scope="col"&gt;Cause and fix&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;select exactly one...&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Specify exactly one mode flag (&lt;code&gt;--tenant-config&lt;/code&gt;, &lt;code&gt;--p0-fixture&lt;/code&gt;, or &lt;code&gt;--qualification-config&lt;/code&gt;) and remove positional arguments&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;PGETCD_DSN required&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Export &lt;code&gt;PGETCD_DSN&lt;/code&gt; in the gateway process environment&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;invalid tenant configuration&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Check JSON syntax, unknown or duplicate keys, field types, and the &lt;code&gt;65,536&lt;/code&gt;-byte file size limit&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Listener rejected&lt;/td&gt;&#10; &lt;td&gt;Use explicit &lt;code&gt;IP:port&lt;/code&gt; addresses and distinct non-zero ports for &lt;code&gt;listen&lt;/code&gt; and &lt;code&gt;diagnostics_listen&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;tenant storage configuration rejected&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Ensure &lt;code&gt;PGETCD_DSN&lt;/code&gt; connects to the same &lt;code&gt;database&lt;/code&gt; and &lt;code&gt;role&lt;/code&gt; as the tenant JSON and uses &lt;code&gt;sslmode=verify-full&lt;/code&gt; on every host&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Startup ABI, identity, or readiness check failed&lt;/td&gt;&#10; &lt;td&gt;Verify &lt;code&gt;CREATE EXTENSION pg_etcd&lt;/code&gt;, stored &lt;code&gt;cluster_id&lt;/code&gt; / &lt;code&gt;member_id&lt;/code&gt;, primary status, and &lt;code&gt;pg_etcd.databases&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Startup certification deadline reached&lt;/td&gt;&#10; &lt;td&gt;The 10-second startup check timed out waiting for &lt;code&gt;COMMIT&lt;/code&gt;; inspect PostgreSQL lock or synchronous-replication waits&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;Startup allows 10 seconds to certify the SQL ABI, persistent identity, and Lease readiness. It retries only when a transaction commits normally with &lt;code&gt;ready = false&lt;/code&gt; (for example while the Lease worker finishes rebuilding). It never retries a SQL error or an unknown &lt;code&gt;COMMIT&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Monitoring</title><link>https://mimus.pgsty.com/docs/etcd/operations/monitoring/</link><guid>https://mimus.pgsty.com/docs/etcd/operations/monitoring/</guid><description>&lt;p&gt;This page covers health probes, Prometheus metrics, Watch client supervision, graceful shutdown, and primary switchover boundaries for the single-primary tenant gateway. When &lt;code&gt;pgetcd&lt;/code&gt; backs Kubernetes, PostgreSQL and the gateway must be able to start without depending on that Kubernetes API server.&lt;/p&gt;&#10;&lt;h2 id="health"&gt;Diagnostics endpoints&#10;&lt;/h2&gt;&#10;&lt;p&gt;The diagnostics listener (&lt;code&gt;diagnostics_listen&lt;/code&gt;, port &lt;code&gt;2381&lt;/code&gt; in examples) requires the same mutual TLS client certificate (&lt;code&gt;spiffe://pgetcd/tenant/&amp;lt;tenant&amp;gt;&lt;/code&gt;) as the gRPC listener. All endpoints accept &lt;code&gt;GET&lt;/code&gt; only and disable HTTP response caching.&lt;/p&gt;</description></item></channel></rss>