Operations
Install, run highly available, back up, upgrade, monitor and troubleshoot.
pgsilo gateways serve the S3 API, web Console, and IAM evaluation while PostgreSQL stores all objects, segments, and control state. Operate and monitor both layers together: a live gateway process does not prove that PostgreSQL is writable, and logical bucket usage does not measure physical database disk consumption.
Operations guides
| Task | Guide |
|---|---|
| Prepare PostgreSQL and install gateways on Linux or macOS | Install |
| Scale out stateless gateways, attach read-only standbys, and handle failover | High availability |
| Back up and restore the database, WAL stream, and external encryption keys | Backup and restore |
| Perform coordinated schema migrations and binary upgrades | Upgrade |
Configure health probes, scrape /minio/metrics/v3/pg, and track capacity | Monitoring |
| Diagnose TLS, pool exhaustion (HTTP 503 / 429), IAM leases, and space growth | Troubleshooting |
| Automate multi-gateway deployment with the unpublished Pigsty role branch | Deploy with Pigsty |
Operating rules
- All gateways in a deployment must connect to the same logical PostgreSQL database (or its physical standbys) and share identical root credentials, effective region, static SSE-S3 keys,
SILO_PG_SEGMENT_SIZE, andSILO_PG_MAX_OBJECT_SIZE. - Gateways connect as the trusted ordinary database owner (
silo_owner). Applications use separate SQL logins (app_sql) with access only tosilo_apiandsilo_bucket, never the privatesiloschema. - Even if applications access objects exclusively through
silo_apiover SQL, keep at least one writablesilo servergateway connected to the PostgreSQL primary. That gateway runs lifecycle expiration, reaps unlinked annotation payloads, and writes the control-plane heartbeats required by standby gateways. - During recovery or failover, evaluate consistency at the transaction boundary: application rows and
silo_apicalls inside one SQL transaction recover atomically, whereas separate S3 HTTP requests commit as independent transactions.
Database preparation and installation on Linux and macOS.
Several stateless gateways, standby gateways and PostgreSQL failover.
Back up objects and IAM with PostgreSQL tools, and restore them.
Schema migrations and gateway upgrades.
Health endpoints and the PostgreSQL metrics endpoint.
Common failures, HTTP 429 and 503, and how to resolve them.
The Pigsty role for Silo with a PostgreSQL backend, and its status.