fix(daemon): clone free-space floor is 1 GiB, not 5; clones share the mirror's objects
This commit is contained in:
1 file changed
+4
-2
@@ -305,9 +305,11 @@ func (d *Daemon) Startup(ctx context.Context) error {
|
||||
const sweepTimeout = 2 * time.Minute
|
||||
|
||||
// A clone waits, holding its slot, until the work volume has minCloneSpace
|
||||
// free, and parks as transient if it does not within diskWaitLimit.
|
||||
// free, and parks as transient if it does not within diskWaitLimit. Clones
|
||||
// share objects with the repository's mirror, so the floor covers a checkout
|
||||
// and its build output, not a full clone.
|
||||
const (
|
||||
minCloneSpace = 5 << 30
|
||||
minCloneSpace = 1 << 30
|
||||
diskCheckEvery = 15 * time.Second
|
||||
diskWaitLimit = 10 * time.Minute
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user