<?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/s3/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/s3/operations/index.xml" rel="self" type="application/rss+xml"/><item><title>Deploy with Pigsty</title><link>https://mimus.pgsty.com/docs/s3/operations/pigsty/</link><guid>https://mimus.pgsty.com/docs/s3/operations/pigsty/</guid><description>&lt;div class="td-callout td-callout--important" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-exclamation" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Important&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;The &lt;code&gt;minio_backend: postgres&lt;/code&gt; branch in the Pigsty &lt;code&gt;minio&lt;/code&gt; Ansible role is pinned to an &lt;strong&gt;unpublished&lt;/strong&gt; coordination commit (&lt;code&gt;5633285b2b8d40321e458026abe2656944674ed3&lt;/code&gt;) and depends on the unpublished &lt;code&gt;silo&lt;/code&gt; DEB/RPM packages (&lt;code&gt;MVP in progress&lt;/code&gt;). Released versions of Pigsty do not yet include this backend branch.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;The coordinated Pigsty &lt;code&gt;minio&lt;/code&gt; role adds a &lt;code&gt;minio_backend: postgres&lt;/code&gt; execution path to &lt;code&gt;minio.yml&lt;/code&gt;. It deploys &lt;code&gt;silo&lt;/code&gt; systemd services connected to an existing PostgreSQL database without inheriting erasure-coded disk arguments or local volume mounts.&lt;/p&gt;</description></item><item><title>Troubleshooting</title><link>https://mimus.pgsty.com/docs/s3/operations/troubleshooting/</link><guid>https://mimus.pgsty.com/docs/s3/operations/troubleshooting/</guid><description>&lt;p&gt;When diagnosing failed S3 or SQL requests, record the timestamp, gateway host, binary commit, HTTP status and S3 error code (or &lt;code&gt;SQLSTATE&lt;/code&gt;), request ID, bucket, key, and &lt;code&gt;versionId&lt;/code&gt;. Strip &lt;code&gt;Authorization&lt;/code&gt; headers, presigned URL query strings, passwords, DSNs, and KMS/SSE-C keys before sharing logs.&lt;/p&gt;&#10;&lt;h2 id="first-checks"&gt;First checks&#10;&lt;/h2&gt;&#10;&lt;p&gt;Inspect the gateway service status and recent journal logs on Linux:&lt;/p&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-0ed92b97-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="2"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-0ed92b97-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl status silo --no-pager&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo journalctl -u silo --since &lt;span class="s1"&gt;&amp;#39;15 minutes ago&amp;#39;&lt;/span&gt; --no-pager&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;Then check the &lt;a href="https://mimus.pgsty.com/docs/s3/operations/monitoring/#health-endpoints"&gt;database-aware health endpoints&lt;/a&gt; (&lt;code&gt;/minio/health/cluster/read&lt;/code&gt; and &lt;code&gt;/minio/health/cluster&lt;/code&gt;) and verify PostgreSQL recovery and read-only state directly using a protected &lt;code&gt;libpq&lt;/code&gt; service entry (&lt;code&gt;~/.pg_service.conf&lt;/code&gt; with &lt;code&gt;sslmode=verify-full&lt;/code&gt;):&lt;/p&gt;</description></item><item><title>Monitoring</title><link>https://mimus.pgsty.com/docs/s3/operations/monitoring/</link><guid>https://mimus.pgsty.com/docs/s3/operations/monitoring/</guid><description>&lt;p&gt;Monitor &lt;code&gt;pgsilo&lt;/code&gt; gateways, PostgreSQL, and your backup repository as distinct layers. Health check endpoints control load-balancer routing, &lt;code&gt;/minio/metrics/v3/pg&lt;/code&gt; exposes gateway-to-PostgreSQL Prometheus metrics, and PostgreSQL system views track physical storage and transaction age.&lt;/p&gt;&#10;&lt;h2 id="health-endpoints"&gt;Health check endpoints&#10;&lt;/h2&gt;&#10;&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;The &lt;code&gt;/minio/health/*&lt;/code&gt; and &lt;code&gt;/minio/metrics/*&lt;/code&gt; HTTP paths are retained for compatibility with standard S3 load-balancer and Prometheus configurations.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&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;Endpoint&lt;/th&gt;&#10; &lt;th scope="col"&gt;What it checks&lt;/th&gt;&#10; &lt;th scope="col"&gt;Load-balancer use&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;/minio/health/live&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Gateway process liveness and local request queue&lt;/td&gt;&#10; &lt;td&gt;Process liveness check&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;/minio/health/ready&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Gateway startup initialization and local request queue&lt;/td&gt;&#10; &lt;td&gt;General readiness (does not verify PostgreSQL writability)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;/minio/health/cluster/read&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;PostgreSQL database readability&lt;/td&gt;&#10; &lt;td&gt;Read-only gateway pool routing&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;/minio/health/cluster&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;PostgreSQL database writability (&lt;code&gt;pg_is_in_recovery() = false&lt;/code&gt; and &lt;code&gt;SILO_PG_READ_ONLY=off&lt;/code&gt;)&lt;/td&gt;&#10; &lt;td&gt;Read-write gateway pool routing&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;div class="td-code td-code--untitled" id="td-code-d984763a-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="6"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-d984763a-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl --fail --silent --show-error &lt;span class="se"&gt;\&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; --cacert /path/to/s3-ca.crt &lt;span class="se"&gt;\&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; https://s3.example.net:9000/minio/health/cluster/read&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl --fail --silent --show-error &lt;span class="se"&gt;\&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; --cacert /path/to/s3-ca.crt &lt;span class="se"&gt;\&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; https://s3.example.net:9000/minio/health/cluster&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;A healthy writable gateway returns HTTP &lt;code&gt;200&lt;/code&gt; on both endpoints. A healthy read-only standby gateway (&lt;code&gt;SILO_PG_READ_ONLY=on&lt;/code&gt;) returns &lt;code&gt;200&lt;/code&gt; on &lt;code&gt;/minio/health/cluster/read&lt;/code&gt; and &lt;code&gt;503&lt;/code&gt; on &lt;code&gt;/minio/health/cluster&lt;/code&gt;. Note that &lt;code&gt;/minio/health/live&lt;/code&gt; can still return &lt;code&gt;200&lt;/code&gt; when PostgreSQL is unreachable.&lt;/p&gt;</description></item><item><title>Upgrade</title><link>https://mimus.pgsty.com/docs/s3/operations/upgrade/</link><guid>https://mimus.pgsty.com/docs/s3/operations/upgrade/</guid><description>&lt;p&gt;Upgrading &lt;code&gt;pgsilo&lt;/code&gt; across schema versions requires a planned maintenance window. Because a database schema migration does not automatically stop running gateway binaries, &lt;strong&gt;never run mixed gateway schema versions concurrently&lt;/strong&gt; against the same PostgreSQL database.&lt;/p&gt;&#10;&lt;h2 id="upgrade-sequence"&gt;Coordinated upgrade sequence&#10;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Record current versions and take a physical backup&lt;/strong&gt;: record the running &lt;code&gt;silo&lt;/code&gt; binary checksums and &lt;code&gt;schema_version&lt;/code&gt;, take a verified physical backup (&lt;a href="https://mimus.pgsty.com/docs/s3/operations/backup/"&gt;Backup and restore&lt;/a&gt;), and confirm external SSE-S3 KMS keys are backed up.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Stop all gateways and SQL writers&lt;/strong&gt;: drain client traffic, stop every writable and read-only &lt;code&gt;silo&lt;/code&gt; gateway, disable automatic systemd/supervisor restarts, and pause direct &lt;code&gt;silo_api&lt;/code&gt; SQL writer jobs. Verify in &lt;code&gt;pg_stat_activity&lt;/code&gt; that all gateway sessions have exited.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Install the new binary on all gateway hosts&lt;/strong&gt; and verify SHA-256 checksums.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Migrate the database from a single writable gateway&lt;/strong&gt;: start &lt;strong&gt;one&lt;/strong&gt; writable gateway connected to the PostgreSQL primary. On startup, it applies pending migrations inside a transaction as &lt;code&gt;silo_owner&lt;/code&gt;. Never attempt schema migration from a read-only gateway.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Verify schema 14 and health endpoints&lt;/strong&gt;: confirm the first gateway passes &lt;code&gt;/minio/health/cluster/read&lt;/code&gt; and &lt;code&gt;/minio/health/cluster&lt;/code&gt;, and verify the migration ledger in &lt;code&gt;silo.meta&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Start remaining gateways&lt;/strong&gt;: start the other writable gateways, wait for physical standbys to replay the schema migration WAL, and then start read-only standby gateways.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Run post-upgrade verification&lt;/strong&gt; before reopening client traffic: test plaintext and encrypted reads, versions, multipart completion, annotations, ZIP extraction, IAM allow/deny rules, and maintenance lease acquisition (&lt;code&gt;minio_pg_lifecycle_leader&lt;/code&gt;).&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;As &lt;code&gt;silo_owner&lt;/code&gt; or a database administrator, inspect the migration ledger with:&lt;/p&gt;</description></item><item><title>Backup and restore</title><link>https://mimus.pgsty.com/docs/s3/operations/backup/</link><guid>https://mimus.pgsty.com/docs/s3/operations/backup/</guid><description>&lt;p&gt;Because &lt;code&gt;pgsilo&lt;/code&gt; gateways are stateless, backing up the PostgreSQL cluster backs up all objects, versions, multipart parts, annotations, bucket policies, and IAM accounts together. Complete disaster recovery requires a &lt;strong&gt;physical PostgreSQL cluster backup&lt;/strong&gt;, a continuous &lt;strong&gt;archived WAL stream&lt;/strong&gt;, and separately preserved &lt;strong&gt;external secrets&lt;/strong&gt; (especially static SSE-S3 KMS keys).&lt;/p&gt;&#10;&lt;h2 id="recovery-set"&gt;Preserve the complete recovery set&#10;&lt;/h2&gt;&#10;&lt;p&gt;The PostgreSQL database stores all of the following in transactional consistency:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Object byte segments, version metadata, and delete markers&lt;/li&gt;&#10;&lt;li&gt;Active multipart upload state and uploaded parts&lt;/li&gt;&#10;&lt;li&gt;Object annotations, annotation payloads, and the orphan cleanup queue&lt;/li&gt;&#10;&lt;li&gt;Bucket configurations, quotas, Object Lock policies, S3 IAM users/policies/service accounts, and native PostgreSQL role bindings (&lt;code&gt;silo.native_auth_principals&lt;/code&gt;)&lt;/li&gt;&#10;&lt;li&gt;Schema migration ledger (&lt;code&gt;silo.meta&lt;/code&gt;) and control-plane revision tokens&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Physical backups preserve database tables, role OIDs, and relation OIDs, but you must back up these external items independently:&lt;/p&gt;</description></item><item><title>High availability</title><link>https://mimus.pgsty.com/docs/s3/operations/ha/</link><guid>https://mimus.pgsty.com/docs/s3/operations/ha/</guid><description>&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;Running multiple stateless read-write gateways against a single PostgreSQL primary is part of the core &lt;code&gt;pgsilo&lt;/code&gt; MVP. Read-only hot standby gateways (&lt;code&gt;SILO_PG_READ_ONLY=on&lt;/code&gt;) connected to physical PostgreSQL standbys are a &lt;strong&gt;Preview&lt;/strong&gt; feature. &lt;code&gt;pgsilo&lt;/code&gt; does not provide automatic database failover, old-primary fencing, or zero-RPO guarantees; persistence, replication, and failover are governed by your PostgreSQL HA cluster.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;Because &lt;code&gt;pgsilo&lt;/code&gt; gateways hold no local object files on disk, multiple gateways can share one PostgreSQL primary while PostgreSQL physical replication protects the underlying data.&lt;/p&gt;</description></item><item><title>Install</title><link>https://mimus.pgsty.com/docs/s3/operations/install/</link><guid>https://mimus.pgsty.com/docs/s3/operations/install/</guid><description>&lt;div class="td-callout td-callout--important" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-exclamation" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Important&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;Installation packages for the &lt;code&gt;pgsilo&lt;/code&gt; PostgreSQL backend have &lt;strong&gt;not yet been publicly released&lt;/strong&gt; (&lt;code&gt;MVP in progress&lt;/code&gt;). No public download URLs exist yet. When released with Silo, the MVP targets &lt;code&gt;linux/amd64&lt;/code&gt; and &lt;code&gt;linux/arm64&lt;/code&gt; DEB and RPM packages (&lt;code&gt;darwin/arm64&lt;/code&gt; is used for local verification). The frozen October 8, 2026 local checkpoint (&lt;code&gt;3c7fdc03&lt;/code&gt;) built only &lt;code&gt;linux/arm64&lt;/code&gt; DEB and &lt;code&gt;darwin/arm64&lt;/code&gt; artifacts.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;This guide covers preparing the PostgreSQL database and configuring &lt;code&gt;silo server&lt;/code&gt; on Linux (systemd) or macOS. For an existing database undergoing a schema change, follow &lt;a href="https://mimus.pgsty.com/docs/s3/operations/upgrade/"&gt;Upgrade&lt;/a&gt; instead.&lt;/p&gt;</description></item></channel></rss>