Idea #13569
closedAdd units tera / giga / mega / kilo for configurations
Description
It will be great to have suffixes in configurations to express [TGMK][i]B note the "i" to take in account both options for MiB Mebibytes and MB Megabytes to make configuration simpler in systems that express Disk size (usually in Megabytes ) and Memory (usually in Mebibytes:
/etc/arvados/config.yml Clusters: zzzzz: InstanceTypes: - Name: Standard_D1_v2 VCPUs: 1 RAM: 3.584GiB Scratch: 50GB Price: 0.073
this should be consistent across the different configurations as in :
/etc/arvados-node-manager/config.ini [Size Standard_E64_v3] cores = 64 price = 4.412 scratch = 864000
Related issues
Updated by Nico César over 6 years ago
- Project changed from 35 to Arvados
- Target version set to To Be Groomed
Updated by Lucas Di Pentima over 6 years ago
- Related to Feature #13611: Nodemanager reads instance sizes from the system config file to avoid duplication added
Updated by Tom Morris over 6 years ago
- Target version changed from To Be Groomed to 2018-07-03 Sprint
Updated by Tom Clegg over 6 years ago
- incorporates outstanding branch from #13674 (rather than create+resolve merge conflicts)
- applies only to Go programs (because so far only Go programs read the cluster config file)
- nodemanager's own "ini" config file still reads "30" to mean "30 GB", and can't handle "30000 MB" -- it's pointless to add this feature when we're already planning to ditch the whole thing in #13611, right?
Updated by Lucas Di Pentima over 6 years ago
Updates at 11ab2e23511c7e8962e0110c3aad44b74fea2dbd LGTM, except for one thing that may be an issue to be solved: This doesn't work with decimal values, for example: 3.584GiB, as in the example conf on the description.
Updated by Tom Clegg over 6 years ago
13569-size-prefixes @ d128fe6bc8da01fe8e7829db988819dd1c159298
Now accepts any valid JSON number as the numeric part: "1.234K", "1234E-3 EiB", etc.
Updated by Tom Clegg over 6 years ago
- Status changed from In Progress to Resolved
Applied in changeset arvados|9a9930cebb7f36131490d0f144e23f5066e7f01d.
Updated by Tom Morris over 6 years ago
- Tracker changed from Bug to Idea
- Subject changed from add units tera / giga / mega / kilo for configurations. to Add units tera / giga / mega / kilo for configurations
- Release set to 13