-
Notifications
You must be signed in to change notification settings - Fork 79
Thresholder
This is a simple command line tool used to populate some values of the grootfs config file.
Usage:
thresholder <reserved-space-mb> <path> <config-path> <garden-gc-threshold-mb> <grootfs-gc-threshold-mb>
The last two options are preserved for backwards compatibility. For normal usage, zero should be passed for both of these args. This results in the modern calculator being used.
When reserved-space-mb
is greater than zero, garbage collection on create is enabled.
The garbage collection threshold is calculated as the total disk size minus the reserved space. If negative, zero is used.
The store size is calculated as the total disk size minus the reserved space. If reserved space is negative, it is counted as zero. The minimum store size is 15 GB, so if the calculation shows less, 15 GB is returned.
On completion, the config file at the path specified is updated with the values above.