nanio-orchestrator
Nginx configuration manager and gateway orchestrator for a distributed nanio S3-compatible storage cluster.
It is a control plane tool only — traffic never flows through it. If the orchestrator is stopped or crashes, nginx keeps serving traffic exactly as configured.
What it is for
nanio is a minimal S3 server: one process, one data directory, no clustering. To grow beyond one machine you put nginx in front of several nanio instances. nanio-orchestrator manages that nginx for you:
- Sharding: keep most buckets on a default pool and route individual buckets to other machines, behind a single hostname.
- Replicas: tell it which machines are replicas and it writes them into the upstream as backups. Keeping a replica in sync (rsync, lsyncd, a replicated filesystem) stays where it belongs, in the operating system.
- Live migration: move a bucket from one pool to another with rclone while clients keep reading and writing it.
- Safety net: every change is validated with
nginx -tand rolled back if nginx rejects it; the database can be rebuilt from the files on disk and the files from the database.
CLIENT (S3 SDK / aws-cli / rclone)
│ HTTPS
▼
NGINX (gateway machine) ─────────────── config written by ──┐
│ proxy_pass only │
├─► upstream pool-default → nanio instances │
├─► upstream pool-2026 → nanio instances ORCHESTRATOR (:8080, internal)
└─► upstream pool-cdn → nginx instances Web UI · REST API · CLI
(+ replicas as backup) SQLite + files under /etc/nginx/nanio
Concepts
| Concept | nginx | Meaning |
|---|---|---|
| Pool | upstream |
Machines holding the same data. Type nanio (S3) or http (read-only file serving, with replicas). |
| Member | server |
One machine of a pool |
| Vhost | server {} |
A hostname, with TLS, IP rules and a default pool |
| Route | location /bucket/ |
Sends one bucket to a specific pool |
Quick start
Requirements: Linux with systemd, Python 3.9+, nginx. rclone only if you will migrate buckets.
curl -fsSL https://raw.githubusercontent.com/nunokisc/nanio-orchestrator/main/install.sh | sudo bash
That installs the program, creates the settings (API key and encryption secret), hooks the
managed config into nginx, starts the service and prints the Web UI address and the API key.
Run it again to upgrade. sudo nanio-orchestrator doctor checks an installation and prints the
fix for anything that is wrong.
Then, in the Web UI:
- Pools → create a pool, add your nanio machines as members, store its S3 credentials.
- Vhosts → create a vhost with that pool as default.
- Config → Reload nginx. Changes are validated when you make them and applied only when you reload.
- Buckets → promote a bucket to another pool when you want to move it.
The same steps with curl are in docs/operations.md.
Keep the panel internal: bind it to a management address and firewall port 8080. It holds the credentials of every pool and can change what nginx serves.
Documentation
| Installation | Install, upgrade, check (doctor), uninstall |
| Configuration | Every setting, file layout, securing the panel |
| Operations manual | Pools, vhosts, sharding, replicas, drift, CLI |
| Migrations | How a bucket is moved without losing writes, and how to finish an interrupted move |
| Disaster recovery | What to back up and how to recover each kind of loss |
| Troubleshooting | Symptoms, causes, fixes |
| API reference | Every endpoint |
| Architecture | How it works inside |
| Contributing | Development workflow |
Design rules
- Control plane only. Nothing the orchestrator does sits in the request path.
- nginx decides. A change that
nginx -trejects is rolled back; it never reaches a reload. - Nothing is deleted for you. Moving a bucket leaves the old copy in place and tracks it; removing it is an explicit operator action.
- Two copies of the truth. The SQLite database and the files next to the nginx config describe the same state; either can be rebuilt from the other.
Development
git clone https://github.com/nunokisc/nanio-orchestrator
cd nanio-orchestrator
make install-dev # creates .venv and installs dependencies
make run # dev server at http://localhost:8080, API key "dev"
make test # pytest
make lint # ruff
In dev mode the database and generated config live under ./dev-data/ and nginx commands are
printed instead of executed. See docs/contributing.md.
License
MIT
Metadata
Release files for nanio-orchestrator 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nanio_orchestrator-0.5.0.tar.gz | 170.3 kB | With provenance | Details for nanio_orchestrator-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanio_orchestrator-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for nanio_orchestrator-0.5.0-py3-none-any.whl |
Total release size: 319.9 kB
Release files / nanio_orchestrator-0.5.0.tar.gz
| Download URL | nanio_orchestrator-0.5.0.tar.gz |
|---|---|
| Size | 170.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
355e02ce43ce4e85e32fe8cce1838181fb988d97745e5ef5b54e286a58e10f1e
|
|
BLAKE2b-256 checksum How to use checksums |
ce7709a41ffd88b6d6729adff5429572945c3916c4969effb07e0502b044909f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / nanio_orchestrator-0.5.0-py3-none-any.whl
| Download URL | nanio_orchestrator-0.5.0-py3-none-any.whl |
|---|---|
| Size | 149.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54671c452ac60c7cb229d2764f98f672a61e85f6aac033540fde952dd9abe01f
|
|
BLAKE2b-256 checksum How to use checksums |
749ba99d42128216684a76579c766a9a463c9958a6846a5758811229204e0c7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for nanio-orchestrator 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for nanio_orchestrator-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.