You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Marco Massenzio (JIRA)" <ji...@apache.org> on 2015/05/15 23:08:59 UTC

[jira] [Updated] (MESOS-1162) Add a 'Percentage' abstraction.

     [ https://issues.apache.org/jira/browse/MESOS-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marco Massenzio updated MESOS-1162:
-----------------------------------
    Priority: Minor  (was: Major)
    Assignee: Marco Massenzio  (was: Isabel Jimenez)

> Add a 'Percentage' abstraction.
> -------------------------------
>
>                 Key: MESOS-1162
>                 URL: https://issues.apache.org/jira/browse/MESOS-1162
>             Project: Mesos
>          Issue Type: Improvement
>          Components: stout
>            Reporter: Benjamin Mahler
>            Assignee: Marco Massenzio
>            Priority: Minor
>
> It is currently difficult to add a percentage-based flag, if one desires it to be specified in the "0%"-"100%" form. This requires creating a {{string}} flag and doing all the parsing  / validation manually.
> An alternative is to use a {{double}} flag with 0.0-1.0 being the valid range, however, this may not read as intuitively to operators.
> Another alternative is to use a {{double}} flag with 0.0-100.0 as the valid range, with the '%' being implicit.
> However, these two alternative techniques can lead to confusion since it's not clear how we're interpreting the value. Requiring the '%' symbol is nice because it leaves no room for ambiguity.
> I would propose adding a 'Percentage' abstraction in stout that provides the parsing logic for use in flags. Percentages can basically be a wrapper around the underlying {{double}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)