[
https://issues.apache.org/jira/browse/CASSANDRA-12919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15672635#comment-15672635
]
Stefania commented on CASSANDRA-12919:
--------------------------------------
This patch will wrap all policies with {{TokenAwarePolicy}}, even in the
default case, making it explicit that cassandra-stress is using token aware
routing.
The 3.0 branch is quite different and so I've decided to limit this patch to
3.X+, unless objections.
The 3.X patch merges cleanly into trunk, and since cassandra-stress is quite
similar in both branches, I've decided to only run CI in 3.X.
||3.X||trunk||
|[patch|https://github.com/stef1927/cassandra/tree/12919-3.X]|[patch|https://github.com/stef1927/cassandra/tree/12919]|
|[testall|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12919-3.X-testall/]|[testall|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12919-testall/]|
|[dtest|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12919-3.X-dtest/]|[dtest|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12919-dtest/]|
> Fix inconsistencies in cassandra-stress load balancing policy
> -------------------------------------------------------------
>
> Key: CASSANDRA-12919
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12919
> Project: Cassandra
> Issue Type: Improvement
> Components: Tools
> Reporter: Stefania
> Assignee: Stefania
> Priority: Minor
> Fix For: 3.x
>
>
> The default load balancing policy in cassandra-stress is null, which means
> that the driver will currently wrap {{DCAwareRoundRobinPolicy}} with
> {{TokenAwarePolicy}}.
> However, when a white list of nodes or a data center are specified in the
> command line options, then either {{WhiteListPolicy}} or
> {{DCAwareRoundRobinPolicy}} are used respectively, without wrapping them in a
> {{TokenAwarePolicy}}.
> This means that in the default case token aware routing is applied, but in
> some cases it is not. Token aware routing could give a performance boost of
> up to 2.5 times on bare metal, making comparisons of workloads problematic,
> if it is applied inconsistently.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)