You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by sat <sa...@gmail.com> on 2016/11/12 21:47:58 UTC

Priority for cassandra nodes in cluster

Hi,

We are planning to install 3 node cluster in production environment. Is it
possible to provide weightage or priority to the nodes in cluster.

Eg., We want more more records to be written to first 2 nodes and less to
the 3rd node. We are thinking of this approach because we want to install
other IO intensive messaging server in the 3rd node, in order to reduce the
load we are requesting for this approach.


Thanks and Regards
A.SathishKumar

Re: Priority for cassandra nodes in cluster

Posted by Surbhi Gupta <su...@gmail.com>.
If u ask conceptually, it is possible but not recommended.
If u really want to do it use the initial token setting and provide the
broad range to the nodes where u want more data. But u need to understand
about the replication factor consideration, if u keep rf as 3 on a 3 node
cluster that means all nodes has all the data.

On Saturday, November 12, 2016, sat <sa...@gmail.com> wrote:

> Hi,
>
> Thanks all for your valuable suggestion.
>
> Thanks and Regards
> A.SathishKumar
>
> On Sat, Nov 12, 2016 at 2:59 PM, Ben Bromhead <ben@instaclustr.com
> <javascript:_e(%7B%7D,'cvml','ben@instaclustr.com');>> wrote:
>
>> +1 w/ Benjamin.
>>
>> However if you wish to make use of spare hardware capacity, look to
>> something like mesos DC/OS or kubernetes. You can run multiple services
>> across a fleet of hardware, but provision equal resources to Cassandra and
>> have somewhat reliable hardware sharing mechanisms.
>>
>> On Sat, 12 Nov 2016 at 14:12 Jon Haddad <jonathan.haddad@gmail.com
>> <javascript:_e(%7B%7D,'cvml','jonathan.haddad@gmail.com');>> wrote:
>>
>>> Agreed w/ Benjamin.  Trying to diagnose issues in prod will be a
>>> nightmare.  Keep your DB servers homogeneous.
>>>
>>> On Nov 12, 2016, at 1:52 PM, Benjamin Roth <benjamin.roth@jaumo.com
>>> <javascript:_e(%7B%7D,'cvml','benjamin.roth@jaumo.com');>> wrote:
>>>
>>> 1. From a 15 year experience of running distributed Services: dont Mix
>>> Services on machines if you don't have to. Dedicate each server to a single
>>> task if you can afford it. It is easier to manage and reduces risks in case
>>> of overload or failure
>>> 2. You can assign a different number of tokens for each node by setting
>>> this in Cassandra.yaml before you bootstrap that node
>>>
>>> Am 12.11.2016 22:48 schrieb "sat" <sathish.alwar@gmail.com
>>> <javascript:_e(%7B%7D,'cvml','sathish.alwar@gmail.com');>>:
>>>
>>>> Hi,
>>>>
>>>> We are planning to install 3 node cluster in production environment. Is
>>>> it possible to provide weightage or priority to the nodes in cluster.
>>>>
>>>> Eg., We want more more records to be written to first 2 nodes and less
>>>> to the 3rd node. We are thinking of this approach because we want to
>>>> install other IO intensive messaging server in the 3rd node, in order to
>>>> reduce the load we are requesting for this approach.
>>>>
>>>>
>>>> Thanks and Regards
>>>> A.SathishKumar
>>>>
>>>>
>>> --
>> Ben Bromhead
>> CTO | Instaclustr <https://www.instaclustr.com/>
>> +1 650 284 9692
>> Managed Cassandra / Spark on AWS, Azure and Softlayer
>>
>
>
>
> --
> A.SathishKumar
> 044-24735023
>

Re: Priority for cassandra nodes in cluster

Posted by sat <sa...@gmail.com>.
Hi,

Thanks all for your valuable suggestion.

Thanks and Regards
A.SathishKumar

On Sat, Nov 12, 2016 at 2:59 PM, Ben Bromhead <be...@instaclustr.com> wrote:

> +1 w/ Benjamin.
>
> However if you wish to make use of spare hardware capacity, look to
> something like mesos DC/OS or kubernetes. You can run multiple services
> across a fleet of hardware, but provision equal resources to Cassandra and
> have somewhat reliable hardware sharing mechanisms.
>
> On Sat, 12 Nov 2016 at 14:12 Jon Haddad <jo...@gmail.com> wrote:
>
>> Agreed w/ Benjamin.  Trying to diagnose issues in prod will be a
>> nightmare.  Keep your DB servers homogeneous.
>>
>> On Nov 12, 2016, at 1:52 PM, Benjamin Roth <be...@jaumo.com>
>> wrote:
>>
>> 1. From a 15 year experience of running distributed Services: dont Mix
>> Services on machines if you don't have to. Dedicate each server to a single
>> task if you can afford it. It is easier to manage and reduces risks in case
>> of overload or failure
>> 2. You can assign a different number of tokens for each node by setting
>> this in Cassandra.yaml before you bootstrap that node
>>
>> Am 12.11.2016 22:48 schrieb "sat" <sa...@gmail.com>:
>>
>> Hi,
>>
>> We are planning to install 3 node cluster in production environment. Is
>> it possible to provide weightage or priority to the nodes in cluster.
>>
>> Eg., We want more more records to be written to first 2 nodes and less to
>> the 3rd node. We are thinking of this approach because we want to install
>> other IO intensive messaging server in the 3rd node, in order to reduce the
>> load we are requesting for this approach.
>>
>>
>> Thanks and Regards
>> A.SathishKumar
>>
>>
>> --
> Ben Bromhead
> CTO | Instaclustr <https://www.instaclustr.com/>
> +1 650 284 9692
> Managed Cassandra / Spark on AWS, Azure and Softlayer
>



-- 
A.SathishKumar
044-24735023

Re: Priority for cassandra nodes in cluster

Posted by Ben Bromhead <be...@instaclustr.com>.
+1 w/ Benjamin.

However if you wish to make use of spare hardware capacity, look to
something like mesos DC/OS or kubernetes. You can run multiple services
across a fleet of hardware, but provision equal resources to Cassandra and
have somewhat reliable hardware sharing mechanisms.

On Sat, 12 Nov 2016 at 14:12 Jon Haddad <jo...@gmail.com> wrote:

> Agreed w/ Benjamin.  Trying to diagnose issues in prod will be a
> nightmare.  Keep your DB servers homogeneous.
>
> On Nov 12, 2016, at 1:52 PM, Benjamin Roth <be...@jaumo.com>
> wrote:
>
> 1. From a 15 year experience of running distributed Services: dont Mix
> Services on machines if you don't have to. Dedicate each server to a single
> task if you can afford it. It is easier to manage and reduces risks in case
> of overload or failure
> 2. You can assign a different number of tokens for each node by setting
> this in Cassandra.yaml before you bootstrap that node
>
> Am 12.11.2016 22:48 schrieb "sat" <sa...@gmail.com>:
>
> Hi,
>
> We are planning to install 3 node cluster in production environment. Is it
> possible to provide weightage or priority to the nodes in cluster.
>
> Eg., We want more more records to be written to first 2 nodes and less to
> the 3rd node. We are thinking of this approach because we want to install
> other IO intensive messaging server in the 3rd node, in order to reduce the
> load we are requesting for this approach.
>
>
> Thanks and Regards
> A.SathishKumar
>
>
> --
Ben Bromhead
CTO | Instaclustr <https://www.instaclustr.com/>
+1 650 284 9692
Managed Cassandra / Spark on AWS, Azure and Softlayer

Re: Priority for cassandra nodes in cluster

Posted by Jon Haddad <jo...@gmail.com>.
Agreed w/ Benjamin.  Trying to diagnose issues in prod will be a nightmare.  Keep your DB servers homogeneous.  

> On Nov 12, 2016, at 1:52 PM, Benjamin Roth <be...@jaumo.com> wrote:
> 
> 1. From a 15 year experience of running distributed Services: dont Mix Services on machines if you don't have to. Dedicate each server to a single task if you can afford it. It is easier to manage and reduces risks in case of overload or failure
> 2. You can assign a different number of tokens for each node by setting this in Cassandra.yaml before you bootstrap that node
> 
> Am 12.11.2016 22:48 schrieb "sat" <sathish.alwar@gmail.com <ma...@gmail.com>>:
> Hi,
> 
> We are planning to install 3 node cluster in production environment. Is it possible to provide weightage or priority to the nodes in cluster. 
> 
> Eg., We want more more records to be written to first 2 nodes and less to the 3rd node. We are thinking of this approach because we want to install other IO intensive messaging server in the 3rd node, in order to reduce the load we are requesting for this approach.
> 
> 
> Thanks and Regards
> A.SathishKumar
> 


Re: Priority for cassandra nodes in cluster

Posted by Benjamin Roth <be...@jaumo.com>.
1. From a 15 year experience of running distributed Services: dont Mix
Services on machines if you don't have to. Dedicate each server to a single
task if you can afford it. It is easier to manage and reduces risks in case
of overload or failure
2. You can assign a different number of tokens for each node by setting
this in Cassandra.yaml before you bootstrap that node

Am 12.11.2016 22:48 schrieb "sat" <sa...@gmail.com>:

> Hi,
>
> We are planning to install 3 node cluster in production environment. Is it
> possible to provide weightage or priority to the nodes in cluster.
>
> Eg., We want more more records to be written to first 2 nodes and less to
> the 3rd node. We are thinking of this approach because we want to install
> other IO intensive messaging server in the 3rd node, in order to reduce the
> load we are requesting for this approach.
>
>
> Thanks and Regards
> A.SathishKumar
>
>