You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Elliot Finley <ef...@gmail.com> on 2014/03/05 04:47:29 UTC

mixed nodes, some SSD some HD

Using Cassandra 2.0.x

If I have a 3 node cluster and 2 of the nodes use spinning drives and 1 of
them uses SSD,  will the majority of the reads be routed to the SSD node
automatically because it has faster responses?

TIA,
Elliot

Re: mixed nodes, some SSD some HD

Posted by Robert Coli <rc...@eventbrite.com>.
On Wed, Mar 5, 2014 at 7:28 PM, Elliot Finley <ef...@gmail.com>wrote:

> What are the penalties for having them?
>

Vnodes are basically nodes, so the same penalties you would get from a huge
number of nodes... folks have worked on optimizing the worst aspects of
this, but the reality is still that a node with 256 token ranges is doing
something more complicated than a node with 1.

https://issues.apache.org/jira/browse/CASSANDRA-6127
https://issues.apache.org/jira/browse/CASSANDRA-5220

=Rob

Re: mixed nodes, some SSD some HD

Posted by Elliot Finley <ef...@gmail.com>.
What are the penalties for having them?



On Wed, Mar 5, 2014 at 5:59 PM, Robert Coli <rc...@eventbrite.com> wrote:

> On Wed, Mar 5, 2014 at 2:53 PM, Tyler Hobbs <ty...@datastax.com> wrote:
>
>>
>> Ah, I missed that part.  If the replication factor matches the number of
>> nodes in the cluster, then you're correct, it doesn't matter what tokens
>> you assign.
>>
>
> And you get no benefit from 3x256 vnodes, but you do pay all the penalties
> for having them... in order to get benefit from vnodes you have to add a
> node such that RF != N....
>
> =Rob
>
>
>

Re: mixed nodes, some SSD some HD

Posted by Robert Coli <rc...@eventbrite.com>.
On Wed, Mar 5, 2014 at 2:53 PM, Tyler Hobbs <ty...@datastax.com> wrote:

>
> Ah, I missed that part.  If the replication factor matches the number of
> nodes in the cluster, then you're correct, it doesn't matter what tokens
> you assign.
>

And you get no benefit from 3x256 vnodes, but you do pay all the penalties
for having them... in order to get benefit from vnodes you have to add a
node such that RF != N....

=Rob

Re: mixed nodes, some SSD some HD

Posted by Tyler Hobbs <ty...@datastax.com>.
On Wed, Mar 5, 2014 at 4:48 PM, Elliot Finley <ef...@gmail.com>wrote:

> How does giving the SSD node a higher number of tokens help anything if
> it's a 3 node cluster with 3 replicas?


Ah, I missed that part.  If the replication factor matches the number of
nodes in the cluster, then you're correct, it doesn't matter what tokens
you assign.


-- 
Tyler Hobbs
DataStax <http://datastax.com/>

Re: mixed nodes, some SSD some HD

Posted by Elliot Finley <ef...@gmail.com>.
How does giving the SSD node a higher number of tokens help anything if
it's a 3 node cluster with 3 replicas?



On Wed, Mar 5, 2014 at 3:41 PM, Tyler Hobbs <ty...@datastax.com> wrote:

> The dynamic snitch wraps whatever snitch you configure (SimpleSnitch,
> PropertyFileSnitch, etc).
>
> The dynamic snitch *will* favor faster replicas, but it might still
> under-utilize the SSD nodes.  Chris's suggestion to give the SSD nodes a
> higher number of tokens will result in them being replicas for a larger
> portion of the data, so you may still want to do that.
>
>
> On Wed, Mar 5, 2014 at 4:29 PM, Russell Bradberry <rb...@gmail.com>wrote:
>
>> Are you using the dynamic snitch? Because the SimpleSnitch is the default.
>>
>>
>>
>> On March 5, 2014 at 5:27:03 PM, Elliot Finley (efinley.lists@gmail.com)
>> wrote:
>>
>> Keep in mind, for this 3 node cluster, N = 3.
>>
>> I did a bit more digging and I found this (for future searches on this
>> topic):
>>
>> http://www.datastax.com/documentation/cassandra/2.0/cassandra/architecture/architectureSnitchDynamic_c.html
>>
>> http://www.datastax.com/dev/blog/dynamic-snitching-in-cassandra-past-present-and-future
>>
>> So, according to this, if I'm reading it right, the SSD node WILL take
>> the majority of reads.
>>
>> Any comments welcome.
>>
>>
>>
>> On Wed, Mar 5, 2014 at 10:04 AM, Chris Burroughs <
>> chris.burroughs@gmail.com> wrote:
>>
>>> No.  If you have a heterogeneous clusters you should consider adjusting
>>> the number of vnodes per physical node.
>>>
>>>
>>> On 03/04/2014 10:47 PM, Elliot Finley wrote:
>>>
>>>> Using Cassandra 2.0.x
>>>>
>>>> If I have a 3 node cluster and 2 of the nodes use spinning drives and 1
>>>> of
>>>> them uses SSD,  will the majority of the reads be routed to the SSD node
>>>> automatically because it has faster responses?
>>>>
>>>> TIA,
>>>> Elliot
>>>>
>>>>
>>>
>>
>
>
> --
> Tyler Hobbs
> DataStax <http://datastax.com/>
>

Re: mixed nodes, some SSD some HD

Posted by Tyler Hobbs <ty...@datastax.com>.
The dynamic snitch wraps whatever snitch you configure (SimpleSnitch,
PropertyFileSnitch, etc).

The dynamic snitch *will* favor faster replicas, but it might still
under-utilize the SSD nodes.  Chris's suggestion to give the SSD nodes a
higher number of tokens will result in them being replicas for a larger
portion of the data, so you may still want to do that.


On Wed, Mar 5, 2014 at 4:29 PM, Russell Bradberry <rb...@gmail.com>wrote:

> Are you using the dynamic snitch? Because the SimpleSnitch is the default.
>
>
>
> On March 5, 2014 at 5:27:03 PM, Elliot Finley (efinley.lists@gmail.com)
> wrote:
>
> Keep in mind, for this 3 node cluster, N = 3.
>
> I did a bit more digging and I found this (for future searches on this
> topic):
>
> http://www.datastax.com/documentation/cassandra/2.0/cassandra/architecture/architectureSnitchDynamic_c.html
>
> http://www.datastax.com/dev/blog/dynamic-snitching-in-cassandra-past-present-and-future
>
> So, according to this, if I'm reading it right, the SSD node WILL take the
> majority of reads.
>
> Any comments welcome.
>
>
>
> On Wed, Mar 5, 2014 at 10:04 AM, Chris Burroughs <
> chris.burroughs@gmail.com> wrote:
>
>> No.  If you have a heterogeneous clusters you should consider adjusting
>> the number of vnodes per physical node.
>>
>>
>> On 03/04/2014 10:47 PM, Elliot Finley wrote:
>>
>>> Using Cassandra 2.0.x
>>>
>>> If I have a 3 node cluster and 2 of the nodes use spinning drives and 1
>>> of
>>> them uses SSD,  will the majority of the reads be routed to the SSD node
>>> automatically because it has faster responses?
>>>
>>> TIA,
>>> Elliot
>>>
>>>
>>
>


-- 
Tyler Hobbs
DataStax <http://datastax.com/>

Re: mixed nodes, some SSD some HD

Posted by Russell Bradberry <rb...@gmail.com>.
Are you using the dynamic snitch? Because the SimpleSnitch is the default.



On March 5, 2014 at 5:27:03 PM, Elliot Finley (efinley.lists@gmail.com) wrote:

Keep in mind, for this 3 node cluster, N = 3.

I did a bit more digging and I found this (for future searches on this topic):

http://www.datastax.com/documentation/cassandra/2.0/cassandra/architecture/architectureSnitchDynamic_c.html

http://www.datastax.com/dev/blog/dynamic-snitching-in-cassandra-past-present-and-future

So, according to this, if I'm reading it right, the SSD node WILL take the majority of reads.

Any comments welcome.



On Wed, Mar 5, 2014 at 10:04 AM, Chris Burroughs <ch...@gmail.com> wrote:
No.  If you have a heterogeneous clusters you should consider adjusting the number of vnodes per physical node.


On 03/04/2014 10:47 PM, Elliot Finley wrote:
Using Cassandra 2.0.x

If I have a 3 node cluster and 2 of the nodes use spinning drives and 1 of
them uses SSD,  will the majority of the reads be routed to the SSD node
automatically because it has faster responses?

TIA,
Elliot




Re: mixed nodes, some SSD some HD

Posted by Elliot Finley <ef...@gmail.com>.
Keep in mind, for this 3 node cluster, N = 3.

I did a bit more digging and I found this (for future searches on this
topic):

http://www.datastax.com/documentation/cassandra/2.0/cassandra/architecture/architectureSnitchDynamic_c.html

http://www.datastax.com/dev/blog/dynamic-snitching-in-cassandra-past-present-and-future

So, according to this, if I'm reading it right, the SSD node WILL take the
majority of reads.

Any comments welcome.



On Wed, Mar 5, 2014 at 10:04 AM, Chris Burroughs
<ch...@gmail.com>wrote:

> No.  If you have a heterogeneous clusters you should consider adjusting
> the number of vnodes per physical node.
>
>
> On 03/04/2014 10:47 PM, Elliot Finley wrote:
>
>> Using Cassandra 2.0.x
>>
>> If I have a 3 node cluster and 2 of the nodes use spinning drives and 1 of
>> them uses SSD,  will the majority of the reads be routed to the SSD node
>> automatically because it has faster responses?
>>
>> TIA,
>> Elliot
>>
>>
>

Re: mixed nodes, some SSD some HD

Posted by Chris Burroughs <ch...@gmail.com>.
No.  If you have a heterogeneous clusters you should consider adjusting 
the number of vnodes per physical node.

On 03/04/2014 10:47 PM, Elliot Finley wrote:
> Using Cassandra 2.0.x
>
> If I have a 3 node cluster and 2 of the nodes use spinning drives and 1 of
> them uses SSD,  will the majority of the reads be routed to the SSD node
> automatically because it has faster responses?
>
> TIA,
> Elliot
>