[
https://issues.apache.org/jira/browse/FLINK-7486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16173651#comment-16173651
]
ASF GitHub Bot commented on FLINK-7486:
---------------------------------------
Github user EronWright commented on a diff in the pull request:
https://github.com/apache/flink/pull/4628#discussion_r140038861
--- Diff: docs/ops/deployment/mesos.md ---
@@ -226,6 +226,10 @@ When running Flink with Marathon, the whole Flink
cluster including the job mana
Takes a comma-separated list of key:value pairs corresponding to the
attributes exposed by the target
mesos agents. Example: `az:eu-west-1a,series:t2`
+`mesos.constraints.soft.balanced`: Soft Constraints for balancing the
tasks across mesos based on agent attributes (**DEFAULT**: None).
+Takes a comma-separated list of key=value pairs. Key corresponds to host
attribute and value is number of expected unique values for given host
attribute.
+Example: `az=3,rack_id=4`
--- End diff --
This syntax seems confusing since it reads like a constraint that `az` will
be equal to `3`. How about: `az(3),rack_id(4)`.
Feel free to use a regular expression to easily parse it (just a
suggestion): `(?:(\w+)\((\d+)\)(?=,|$))`
> flink-mesos: Support for adding unique attribute / group_by attribute
> constraints
> ---------------------------------------------------------------------------------
>
> Key: FLINK-7486
> URL: https://issues.apache.org/jira/browse/FLINK-7486
> Project: Flink
> Issue Type: Improvement
> Components: Mesos
> Affects Versions: 1.3.2
> Reporter: Bhumika Bayani
> Assignee: Bhumika Bayani
>
> In our setup, we have multiple mesos-workers. Inspite of this, flink
> application master most of the times ends up spawning all task-managers on
> same mesos-worker.
> We intend to ensure HA of task managers. We would like to make sure each
> task-manager is running on different mesos-worker as well as such
> mesos-worker which does not share the AZ attribute with earlier task manager
> instances.
> Netflix-fenzo supports adding UniqueHostAttribute and BalancedHostAttribute
> contraints. Flink-mesos should also enable us to add these kind of
> constraints.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)