Ethan Li created STORM-3518:
-------------------------------

             Summary: configs for favored nodes and unfavored nodes should 
support range of numbers
                 Key: STORM-3518
                 URL: https://issues.apache.org/jira/browse/STORM-3518
             Project: Apache Storm
          Issue Type: Improvement
            Reporter: Ethan Li


Apache Storm has two configs for topologies to choose favored nodes and 
unfavored nodes. 

https://github.com/apache/storm/blob/master/storm-client/src/jvm/org/apache/storm/Config.java#L351
{code:java}
    /**
     * A list of host names that this topology would prefer to be scheduled on 
(no guarantee is given though). This is intended for
     * debugging only.
     */
    @IsStringList
    public static final String TOPOLOGY_SCHEDULER_FAVORED_NODES = 
"topology.scheduler.favored.nodes";
    /**
     * A list of host names that this topology would prefer to NOT be scheduled 
on (no guarantee is given though). This is intended for
     * debugging only.
     */
    @IsStringList
    public static final String TOPOLOGY_SCHEDULER_UNFAVORED_NODES = 
"topology.scheduler.unfavored.nodes";
{code}

It only support plain text currently, for example


{code:java}
host1.yahoo.com
host2.yahoo.com
hostA3.yahoo.com
hostA4.yahoo.com
{code}

 It would be nice to be able to support ranges like

{code:java}
host[1-2].yahoo.com
hostA[3-4].yahoo.com
{code}






--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to