You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jon Meredith (Jira)" <ji...@apache.org> on 2019/09/09 16:17:00 UTC

[jira] [Commented] (CASSANDRA-15318) sendMessagesToNonlocalDC() should shuffle targets

    [ https://issues.apache.org/jira/browse/CASSANDRA-15318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16925876#comment-16925876 ] 

Jon Meredith commented on CASSANDRA-15318:
------------------------------------------

Linked is a patch to shuffle the node used for forwarding messages to remote DCs. The MessageForwardingTest
has been updated to verify that the remote node is picked as the forwarder at least once
(it doesn't check fairness, I didn't want to risk any flappy tests due to randomness).

trunk [changes | https://github.com/jonmeredith/cassandra/pull/1 ] [trunk CircleCI | https://circleci.com/workflow-run/c4144448-f747-4665-be7a-7a97ffcc2222]

(The PR is against my local CASSANDRA-15319 branch to make the diff clear, can retarget/reopen as needed)

> sendMessagesToNonlocalDC() should shuffle targets
> -------------------------------------------------
>
>                 Key: CASSANDRA-15318
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15318
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Messaging/Internode
>            Reporter: Jon Meredith
>            Assignee: Jon Meredith
>            Priority: Normal
>
> To better spread load and reduce the impact of a node failure before detection (or other issues like issues host replacement), when forwarding messages to other data centers the forwarding non-local dc nodes should be selected at random rather than always selecting the first node in the list of endpoints for a token.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org