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

Bill Farner resolved AURORA-199.
--------------------------------
    Resolution: Later

> 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
>            Priority: Minor
>
> 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.3.4#6332)

Reply via email to