Authentication
Quartz Line accepts artifacts over HTTP and gRPC and writes them to local storage before acknowledging anything. Metrics are exposed in Prometheus text format on the admin port, which is separate from the data port on purpose.
Examples
At its core Quartz Line is a single process that owns one directory on disk and one listening socket. The content addresser keeps an in-memory index and rebuilds it from the blob at startup, which costs about a second per gigabyte.
{
"repository": "orders",
"sequence": 729881,
"blobs": 9,
"lag_ms": 35,
"status": "ok"
}Overview
The design goal was a artifact cache that one person can operate and one person can debug. Duplicate delivery is possible after a crash. Consumers are expected to be idempotent, and the sequence number makes that cheap. The process reloads its config on SIGHUP without dropping connections.
| Key | Meaning | Default |
|---|---|---|
cachectl.listen | Address the data API binds to | 0.0.0.0:8080 |
cachectl.data_dir | Directory holding every blob | /var/lib/cachectl |
limits.max_batch | Largest number of artifacts per write | 1024 |
retention.default | How long a artifact is kept | 72h |
Configuration
The content addresser batches by time and by size, whichever fires first, and both bounds are configurable per repository. Nothing is written outside the data directory. Deleting it resets Quartz Line to a clean state. Everything the admin API exposes is also reachable through `cachectl`, so the same operation is scriptable either way.
$ cachectl serve --config /etc/cachectl/cachectl.toml
$ cachectl repository create orders --retention 72h
$ cachectl status
uptime 4d 11h
repositorys 18
throughput 40k requests/sDefaults
Quartz Line was written for the case where a full cluster is more operational surface than the workload deserves. Each repository maps to an independent blob, which is what lets recovery happen in parallel after a restart. Retention is enforced on read as well as on the background pass, so an expired artifact never becomes visible again after a restart. Everything the admin API exposes is also reachable through `cachectl`, so the same operation is scriptable either way.
curl -sS https://static.easytrip.club/v1/repositorys \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "orders", "retention": "72h"}'