# Operations

> Install, run highly available, back up, upgrade, monitor and troubleshoot.

---

LLMS index: [llms.txt](/llms.txt)

---

`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 {#guides}

| Task | Guide |
| --- | --- |
| Prepare PostgreSQL and install gateways on Linux or macOS | [Install](/docs/s3/operations/install/) |
| Scale out stateless gateways, attach read-only standbys, and handle failover | [High availability](/docs/s3/operations/ha/) |
| Back up and restore the database, WAL stream, and external encryption keys | [Backup and restore](/docs/s3/operations/backup/) |
| Perform coordinated schema migrations and binary upgrades | [Upgrade](/docs/s3/operations/upgrade/) |
| Configure health probes, scrape `/minio/metrics/v3/pg`, and track capacity | [Monitoring](/docs/s3/operations/monitoring/) |
| Diagnose TLS, pool exhaustion (HTTP 503 / 429), IAM leases, and space growth | [Troubleshooting](/docs/s3/operations/troubleshooting/) |
| Automate multi-gateway deployment with the unpublished Pigsty role branch | [Deploy with Pigsty](/docs/s3/operations/pigsty/) |
{.wide}

## Operating rules {#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`, and `SILO_PG_MAX_OBJECT_SIZE`.
- Gateways connect as the trusted ordinary database owner (`silo_owner`). Applications use separate SQL logins (`app_sql`) with access only to `silo_api` and `silo_bucket`, never the private `silo` schema.
- Even if applications access objects exclusively through `silo_api` over SQL, keep at least one writable `silo server` gateway 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_api` calls inside one SQL transaction recover atomically, whereas separate S3 HTTP requests commit as independent transactions.

---

Section pages:

- [Install](/docs/s3/operations/install/): Database preparation and installation on Linux and macOS.
- [High availability](/docs/s3/operations/ha/): Several stateless gateways, standby gateways and PostgreSQL failover.
- [Backup and restore](/docs/s3/operations/backup/): Back up objects and IAM with PostgreSQL tools, and restore them.
- [Upgrade](/docs/s3/operations/upgrade/): Schema migrations and gateway upgrades.
- [Monitoring](/docs/s3/operations/monitoring/): Health endpoints and the PostgreSQL metrics endpoint.
- [Troubleshooting](/docs/s3/operations/troubleshooting/): Common failures, HTTP 429 and 503, and how to resolve them.
- [Deploy with Pigsty](/docs/s3/operations/pigsty/): The Pigsty role for Silo with a PostgreSQL backend, and its status.
