Expand description
A human-readable size type for the pipeline configuration.
Every size-shaped field in the pipeline configuration uses ConfigSize,
so that one format covers bytes, megabytes and mebibytes instead of a
different unit baked into each field name.
The syntax is the one Kubernetes documents for a resource quantity, which
users of the Enterprise edition already write for their pods: a number and
a unit, decimal (500M) or binary (512Mi). Feldera narrows it by taking
one term only, no exponent form, and no negative or fractional-unit (m)
quantities, which no configuration setting accepts.
Structs§
- Config
Size - A size in bytes written as a number and a unit, such as
500M,512Mi,1Gior4096.
Enums§
- Legacy
Size Unit - The unit in which a setting’s superseded numeric spelling was written.
- Parse
Error - Errors returned when parsing a
ConfigSizefrom a string.
Functions§
- required_
size_ or_ legacy_ number - Like
size_or_legacy_number, for a setting that is not optional: anullis refused rather than read as “unset”. - size_
from_ legacy_ number - Warns, once per setting per process, that a value arrived as a bare number, and returns the size that number stands for, or the largest size when it overflows.
- size_
or_ legacy_ number - Deserializes a size setting that also accepts the bare number its earlier spelling took.