Documentation
¶
Overview ¶
Command spfresh-maintainer is the reference SPFresh maintenance worker (RFC-156 §3.2). SPFresh maintenance is caller-driven; this is the thin, runnable wrapper around recordlayer.RunSPFreshMaintenance that a deployment can run standalone or copy as a starting point.
It opens an FDB database, builds the tenant list (the ONE part every deployment must supply — store layout is application keyspace, see discoverTenants below), wires a StoreTimer for metrics, and runs the sweep+refine loop until SIGINT/SIGTERM.
spfresh-maintainer -cluster-file /etc/foundationdb/fdb.cluster \ -sweep-interval 10s -refine-interval 5m -metrics-interval 30s
Click to show internal directories.
Click to hide internal directories.