Hyperlightweight process hypervisor for single-server deployments
Project description
tenement
Hyperlightweight process hypervisor for single-server deployments.
tenement spawns and supervises processes with Unix socket communication, health checks, and automatic restarts. No Docker, no Kubernetes, no complexity—just fast, simple process management.
Installation
curl -LsSf https://tenement.dev/install.sh | sh
Or with Cargo:
cargo install tenement
Quick Start
1. Create a config file
# tenement.toml
[process.api]
command = "./my-api"
socket = "/tmp/api-{id}.sock"
health = "/health"
[process.api.env]
DATABASE_PATH = "{data_dir}/{id}/app.db"
2. Spawn an instance
$ tenement spawn api --id user123
Spawned api:user123
Socket: /tmp/api-user123.sock
3. Manage instances
$ tenement ps
INSTANCE SOCKET UPTIME HEALTH
api:user123 /tmp/api-user123.sock 2m healthy
$ tenement stop api:user123
Stopped api:user123
Why tenement?
| Alternative | Problem |
|---|---|
| Docker | Heavy, slow cold starts, network overhead |
| systemd | No on-demand spawn, no routing |
| K8s/Nomad | Overkill for single server |
| Bash scripts | No health checks, no supervision |
tenement gives you:
- Sub-second cold starts - Rust binaries + Unix sockets = instant
- On-demand spawn - Processes start when first requested
- Auto-restart - Health checks with automatic recovery
- Zero overhead - Direct Unix socket IPC, no network layer
- Simple config - One TOML file defines everything
Documentation
Full documentation at tenement.dev
License
Apache 2.0 - Use it however you want.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tenement-0.1.0.tar.gz.
File metadata
- Download URL: tenement-0.1.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7133d9c29171a31ae6b46f12defccc5747638899711e94259c5d2bd69856262b
|
|
| MD5 |
6ed79c20b0e3c6de6168fbfcb5f9ff04
|
|
| BLAKE2b-256 |
907d6192fef6499510f18f0f1d87b6902d0fc087ba5e2ce076a5f34157694cf2
|
File details
Details for the file tenement-0.1.0-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: tenement-0.1.0-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d91a9f8a6b911a5aa35ef5fc2a3c6342dcb0cecfd5be8ef841305546e25fef10
|
|
| MD5 |
420e416d6b23f76d0c13990ab37cd7f0
|
|
| BLAKE2b-256 |
c0c3c1e85b548b7aa44c04970782242095350f684daca041b252260ffeaa1679
|