You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Bill Farner (JIRA)" <ji...@apache.org> on 2014/05/24 06:50:01 UTC
[jira] [Updated] (AURORA-199) It's not possible to mix limit and
attribute constraints
[ https://issues.apache.org/jira/browse/AURORA-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bill Farner updated AURORA-199:
-------------------------------
Issue Type: Story (was: Bug)
> It's not possible to mix limit and attribute constraints
> --------------------------------------------------------
>
> Key: AURORA-199
> URL: https://issues.apache.org/jira/browse/AURORA-199
> Project: Aurora
> Issue Type: Story
> Components: Client
> Reporter: brian wickman
>
> A user had a valid need for the following use-case:
> {noformat}
> constraints = {
> 'host': 'hostname1',
> 'host': 'limit:2'
> }
> {noformat}
> in order to pin 2 instances of a job to the same host. Pystachio Map is a multimap but it gets coerced to a Python dictionary when converting to a set of Thrift Constraint objects, and the 'multi-' part of the mapping is lost.
> We should probably add a new delimiter, e.g. ';' in order to allow for mixes of limit and attribute constraints, e.g. 'host': 'hostname1;limit:2'
--
This message was sent by Atlassian JIRA
(v6.2#6252)