cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-2890) Randomize (to some extend) the choice of the first replica for counter increment
Date Tue, 13 Sep 2011 13:53:08 GMT

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

Sylvain Lebresne commented on CASSANDRA-2890:
---------------------------------------------

bq. Should we move threadlocal<random> to FBUtilities since we have one in CounterMutation
as well?

We have one in ReadCallback too, and one or two places where we create one shot random object.
We could move all that to FBUtilities?
Note though that is won't save us much allocation since all those uses of Random are done
in different thread pools (and the one in CounterMutation may go away with CASSANDRA-3178
anyway).

> Randomize (to some extend) the choice of the first replica for counter increment
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2890
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2890
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.8.0
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>              Labels: counters
>             Fix For: 0.8.6
>
>         Attachments: 2890.patch
>
>
> Right now, we choose the first replica for a counter increments based solely on what
the snitch returns. If the clients requests are well balanced over the cluster and the snitch
not ill configured, this should not be a problem, but this is probably too strong an assumption
to make.
> The goal of this ticket is to change this to choose a random replica in the current data
center instead.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message