Migrating from v1

Quartz Line accepts artifacts over HTTP and gRPC and writes them to local storage before acknowledging anything. A single binary and a config file are the whole deployment; there is no agent and no sidecar.

Overview

The design goal was a artifact cache that one person can operate and one person can debug. Writes land in an append-only blob; the upstream mirror compacts them in the background on a fixed interval. Ordering is guaranteed within a repository and explicitly not guaranteed across them. Everything the admin API exposes is also reachable through `cachectl`, so the same operation is scriptable either way.

[server]
listen = "0.0.0.0:8080"
admin  = "127.0.0.1:6060"
data_dir = "/var/lib/cachectl"

[limits]
max_batch      = 2048
max_artifact_bytes = 128_000
flush_interval = "250ms"

[retention]
default = "24h"
compact_at = 0.6

Limits

At its core Quartz Line is a single process that owns one directory on disk and one listening socket. The API is versioned in the path. A minor release never removes a field, and a major release is announced two versions ahead. Metrics are exposed in Prometheus text format on the admin port, which is separate from the data port on purpose.

Examples

Quartz Line treats the on-disk blob as the source of truth and everything else as a cache that can be rebuilt. Backpressure is explicit: when the content addresser falls behind, Quartz Line returns 429 rather than buffering without bound. An acknowledged write survives a hard kill of the process; it does not survive loss of the underlying disk. Metrics are exposed in Prometheus text format on the admin port, which is separate from the data port on purpose.

$ cachectl serve --config /etc/cachectl/cachectl.toml
$ cachectl repository create orders --retention 72h
$ cachectl status
  uptime      4d 11h
  repositorys   28
  throughput  60k requests/s