Skip to content
Kieron Browne edited this page Jun 24, 2021 · 1 revision

The Thresholder

Source code

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.

Should Garbage Collect on Create

When reserved-space-mb is greater than zero, garbage collection on create is enabled.

GC Threshold

The garbage collection threshold is calculated as the total disk size minus the reserved space. If negative, zero is used.

Store Size

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.

Config File

On completion, the config file at the path specified is updated with the values above.

Clone this wiki locally