You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Safdar Kureishy <sa...@gmail.com> on 2012/09/19 14:55:16 UTC

Setting the default replication factor for Solandra cores

Hi,

This question is related to Solandra, but since it sits on top of
Cassandra, I figured I'd use this mailing list (since there isn't another
one I know of for Solandra). Apologies in advance if this is the wrong
place for this.

I'm trying to setup a Solandra cluster, across 2 centers. I want to set the
replication factor = 2, and the default replications strategy to be
RackAwareStrategy. Is there somewhere in *cassandra.yaml* or *
solandra.properties* that I can provide these parameters so that I won't
need to use cassandra-cli manually? I couldn't find any such property so
far...

Thanks in advance.

Safdar

Re: Setting the default replication factor for Solandra cores

Posted by shubham srivastava <sh...@gmail.com>.
With Solandra as well you can use the Cassandra Cli to do the needful. The
location would be [~/Solandra/bin/] .

Regards,
Shubham

On Fri, Sep 21, 2012 at 6:56 AM, aaron morton <aa...@thelastpickle.com>wrote:

> I want to set the replication factor = 2,
>
> This is part of the CREATE KEYSPACE command, not sure where this is in
> solandra.
>
> I would recommend using RF 3 as a minimum.
>
> , and the default replications strategy to be RackAwareStrategy.
>
> That's a very old strategy.
> The default is NetworkTopologyStrategy which is the new RAS.
> Again , this is set as part of the CREATE KEYSPACE command.
>
> You can update both using UPDATE KEYSPACE in the cli. Check the operations
> page in the wiki for info on changing replication.
>
> Cheers
>
> -----------------
> Aaron Morton
> Freelance Developer
> @aaronmorton
> http://www.thelastpickle.com
>
> On 20/09/2012, at 3:17 AM, Michael Kjellman <mk...@barracuda.com>
> wrote:
>
> If I recall correctly you should make those changes in the schema through
> the CLI.
>
> I never ended up running Solandra in production though so I'm not sure if
> anyone else has better options. Why is the CLI not enough?
>
> On Sep 19, 2012, at 5:56 AM, "Safdar Kureishy" <safdar.kureishy@gmail.com<
> mailto:safdar.kureishy@gmail.com <sa...@gmail.com>>> wrote:
>
> Hi,
>
> This question is related to Solandra, but since it sits on top of
> Cassandra, I figured I'd use this mailing list (since there isn't another
> one I know of for Solandra). Apologies in advance if this is the wrong
> place for this.
>
> I'm trying to setup a Solandra cluster, across 2 centers. I want to set
> the replication factor = 2, and the default replications strategy to be
> RackAwareStrategy. Is there somewhere in cassandra.yaml or
> solandra.properties that I can provide these parameters so that I won't
> need to use cassandra-cli manually? I couldn't find any such property so
> far...
>
> Thanks in advance.
>
> Safdar
>
> 'Like' us on Facebook for exclusive content and other resources on all
> Barracuda Networks solutions.
> Visit http://barracudanetworks.com/facebook
>
>
>
>

Re: Setting the default replication factor for Solandra cores

Posted by aaron morton <aa...@thelastpickle.com>.
> I want to set the replication factor = 2, 
This is part of the CREATE KEYSPACE command, not sure where this is in solandra. 

I would recommend using RF 3 as a minimum. 

> , and the default replications strategy to be RackAwareStrategy.
That's a very old strategy. 
The default is NetworkTopologyStrategy which is the new RAS. 
Again , this is set as part of the CREATE KEYSPACE command. 

You can update both using UPDATE KEYSPACE in the cli. Check the operations page in the wiki for info on changing replication. 

Cheers

-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 20/09/2012, at 3:17 AM, Michael Kjellman <mk...@barracuda.com> wrote:

> If I recall correctly you should make those changes in the schema through the CLI.
> 
> I never ended up running Solandra in production though so I'm not sure if anyone else has better options. Why is the CLI not enough?
> 
> On Sep 19, 2012, at 5:56 AM, "Safdar Kureishy" <sa...@gmail.com>> wrote:
> 
> Hi,
> 
> This question is related to Solandra, but since it sits on top of Cassandra, I figured I'd use this mailing list (since there isn't another one I know of for Solandra). Apologies in advance if this is the wrong place for this.
> 
> I'm trying to setup a Solandra cluster, across 2 centers. I want to set the replication factor = 2, and the default replications strategy to be RackAwareStrategy. Is there somewhere in cassandra.yaml or solandra.properties that I can provide these parameters so that I won't need to use cassandra-cli manually? I couldn't find any such property so far...
> 
> Thanks in advance.
> 
> Safdar
> 
> 'Like' us on Facebook for exclusive content and other resources on all Barracuda Networks solutions.
> Visit http://barracudanetworks.com/facebook
> 
> 


Re: Setting the default replication factor for Solandra cores

Posted by Michael Kjellman <mk...@barracuda.com>.
If I recall correctly you should make those changes in the schema through the CLI.

I never ended up running Solandra in production though so I'm not sure if anyone else has better options. Why is the CLI not enough?

On Sep 19, 2012, at 5:56 AM, "Safdar Kureishy" <sa...@gmail.com>> wrote:

Hi,

This question is related to Solandra, but since it sits on top of Cassandra, I figured I'd use this mailing list (since there isn't another one I know of for Solandra). Apologies in advance if this is the wrong place for this.

I'm trying to setup a Solandra cluster, across 2 centers. I want to set the replication factor = 2, and the default replications strategy to be RackAwareStrategy. Is there somewhere in cassandra.yaml or solandra.properties that I can provide these parameters so that I won't need to use cassandra-cli manually? I couldn't find any such property so far...

Thanks in advance.

Safdar

'Like' us on Facebook for exclusive content and other resources on all Barracuda Networks solutions.
Visit http://barracudanetworks.com/facebook