Repository navigation
v1.18.0
Highlights
Garbage collection no longer deletes what a push needs. Several races between niks3 gc and running pushes could leave a store path in the cache whose dependencies were gone. Garbage collection now keeps everything a running push relies on, and deletes an object only after two runs in a row found it unused. Expect space to be freed one run later than before.
Much less database load per push. A push of a path whose dependencies are already cached no longer writes a row per dependency. In our load test this raised throughput from about 30 to about 155 pushes per second at 16 parallel pushes, and cut the write-ahead log per push from megabytes to kilobytes.
Faster garbage collection on large caches. Finding unused objects took 2 min 42 s instead of 11 min 52 s on a cache with 6 million objects.
One build per store path. When two machines build the same derivation and get different results, the cache now serves exactly one of them, the first one that was signed, where it could previously end up with parts of both. niks3 push --stdin reports this with other_build on the result line.
Fixes
niks3 pushno longer hangs forever on a connection that stopped answering; it fails after five minutes without progress.niks3 pushpushes again by itself when garbage collection removed a dependency during the push, instead of failing with a 409.- A token whose identity provider is unreachable is answered with 503 and retried by the client, instead of 401.
- The server refuses to sign a narinfo for a store path other than the one it is uploaded for.
- The object count and size metrics no longer slow down pushes and garbage collection on large caches. They are now updated every five minutes.
/pins/{name}is served through the read proxy (@asymmetric).- Security update of go-jose for GHSA-mgcc-cww5-fp2q (@philiptaron).
Changes for API users
POST /api/closures/existsandPOST /api/objects/existsreplacePOST /api/objects/present, which keeps working.HEAD /api/objects/{key}is removed. No current client uses it.- The v1.17.1 client works against this server.
Thanks to Nick Novitski of exa.ai for the reports and patches behind most of the push and garbage collection work, and to @philiptaron and @asymmetric for their contributions.