Re: Two Cluster each with 12 nodes- Cassandra database

2013-04-11 Thread Raihan Jamal
Folks, Any thoughts on this? I am still in the learning process. So any
guidance will be of great help.





*Raihan Jamal*


On Wed, Apr 10, 2013 at 10:39 PM, Raihan Jamal jamalrai...@gmail.comwrote:

 I have started working on a project in which I am using `Cassandra
 database`.

 Our production DBA's have setup `two cluster` and each cluster will have
 `12 nodes`.

 I will be using `Pelops client` to read the data from Cassandra database.
 Now I am thinking what's the best way to create `Cluster` using `Pelops
 client` like how many nodes I should add while creating cluster?

 My understanding was to create the cluster with all the `24 nodes` as I
 will be having two cluster each with 12 nodes? This is the right approach?


 *If not, then how we decide what nodes (from each cluster) I should add
 while creating the cluster using Pelops client?
 *

 String[] nodes = cfg.getStringArray(cassandra.servers);

 int port = cfg.getInt(cassandra.port);

 boolean dynamicND = true; // dynamic node discovery

 Config casconf = new Config(port, true, 0);

 Cluster cluster = new Cluster(nodes, casconf, dynamicND);

 Pelops.addPool(Const.CASSANDRA_POOL, cluster, Const.CASSANDRA_KS);


 Can anyone help me out with this?

 Any help will be appreciated.


 **



Re: Two Cluster each with 12 nodes- Cassandra database

2013-04-11 Thread Jabbar Azam
Hello,

I don't know what pelops is. I'm not sure why you want two clusters. I
would have two clusters if I want to have data stored on totally separate
servers for perhaps security reasons.

If you are going to have the servers in one location then you might as well
have one cluster. You'll have the maximum aggregate io of all the servers.

If you're thinking of doing analytics as well then you can create two
virtual datacentres.  One for realtime inserts and reads and the second for
analytics.  You could have have and 16 /8 server split.  Obviously you'll
have to work out what the optimum split is for your workload.

Not sure if I've answered your question...
On 11 Apr 2013 18:51, Raihan Jamal jamalrai...@gmail.com wrote:

 Folks, Any thoughts on this? I am still in the learning process. So any
 guidance will be of great help.





 *Raihan Jamal*


 On Wed, Apr 10, 2013 at 10:39 PM, Raihan Jamal jamalrai...@gmail.comwrote:

 I have started working on a project in which I am using `Cassandra
 database`.

 Our production DBA's have setup `two cluster` and each cluster will have
 `12 nodes`.

 I will be using `Pelops client` to read the data from Cassandra database.
 Now I am thinking what's the best way to create `Cluster` using `Pelops
 client` like how many nodes I should add while creating cluster?

 My understanding was to create the cluster with all the `24 nodes` as I
 will be having two cluster each with 12 nodes? This is the right approach?


 *If not, then how we decide what nodes (from each cluster) I should add
 while creating the cluster using Pelops client?
 *

 String[] nodes = cfg.getStringArray(cassandra.servers);

 int port = cfg.getInt(cassandra.port);

 boolean dynamicND = true; // dynamic node discovery

 Config casconf = new Config(port, true, 0);

 Cluster cluster = new Cluster(nodes, casconf, dynamicND);

 Pelops.addPool(Const.CASSANDRA_POOL, cluster, Const.CASSANDRA_KS);


 Can anyone help me out with this?

 Any help will be appreciated.


 **





Re: Two Cluster each with 12 nodes- Cassandra database

2013-04-11 Thread aaron morton
 I will be using `Pelops client`
If you are starting out using Java I *strongly* suggest using this client 
https://github.com/Netflix/astyanax/ see the documentation here 
https://github.com/Netflix/astyanax/wiki


 My understanding was to create the cluster with all the `24 nodes` as I will 
 be having two cluster each with 12 nodes? This is the right approach?
As discussed, you can have two separate clusters but you probably want to have 
one cluster with two data centres, each with 12 nodes. See 
http://www.datastax.com/docs/1.2/initialize/cluster_init

Cheers

-
Aaron Morton
Freelance Cassandra Consultant
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 12/04/2013, at 6:45 AM, Jabbar Azam aja...@gmail.com wrote:

 Hello,
 
 I don't know what pelops is. I'm not sure why you want two clusters. I would 
 have two clusters if I want to have data stored on totally separate servers 
 for perhaps security reasons.
 
 If you are going to have the servers in one location then you might as well 
 have one cluster. You'll have the maximum aggregate io of all the servers.
 
 If you're thinking of doing analytics as well then you can create two virtual 
 datacentres.  One for realtime inserts and reads and the second for 
 analytics.  You could have have and 16 /8 server split.  Obviously you'll 
 have to work out what the optimum split is for your workload.
 
 Not sure if I've answered your question...
 
 On 11 Apr 2013 18:51, Raihan Jamal jamalrai...@gmail.com wrote:
 Folks, Any thoughts on this? I am still in the learning process. So any 
 guidance will be of great help.
 
 
 
 
 
 Raihan Jamal
 
 
 On Wed, Apr 10, 2013 at 10:39 PM, Raihan Jamal jamalrai...@gmail.com wrote:
 I have started working on a project in which I am using `Cassandra database`. 
 
 Our production DBA's have setup `two cluster` and each cluster will have `12 
 nodes`.
 
 I will be using `Pelops client` to read the data from Cassandra database. Now 
 I am thinking what's the best way to create `Cluster` using `Pelops client` 
 like how many nodes I should add while creating cluster?
 
 My understanding was to create the cluster with all the `24 nodes` as I will 
 be having two cluster each with 12 nodes? This is the right approach?
 
 
 If not, then how we decide what nodes (from each cluster) I should add while 
 creating the cluster using Pelops client?
 
 
 String[] nodes = cfg.getStringArray(cassandra.servers); 
 
 int port = cfg.getInt(cassandra.port); 
 
 boolean dynamicND = true; // dynamic node discovery 
 
 Config casconf = new Config(port, true, 0); 
 
 Cluster cluster = new Cluster(nodes, casconf, dynamicND); 
 
 Pelops.addPool(Const.CASSANDRA_POOL, cluster, Const.CASSANDRA_KS);
 
 
 Can anyone help me out with this? 
 
 Any help will be appreciated.
 
 
 



Two Cluster each with 12 nodes- Cassandra database

2013-04-10 Thread Raihan Jamal
I have started working on a project in which I am using `Cassandra
database`.

Our production DBA's have setup `two cluster` and each cluster will have
`12 nodes`.

I will be using `Pelops client` to read the data from Cassandra database.
Now I am thinking what's the best way to create `Cluster` using `Pelops
client` like how many nodes I should add while creating cluster?

My understanding was to create the cluster with all the `24 nodes` as I
will be having two cluster each with 12 nodes? This is the right approach?


*If not, then how we decide what nodes (from each cluster) I should add
while creating the cluster using Pelops client?
*

String[] nodes = cfg.getStringArray(cassandra.servers);

int port = cfg.getInt(cassandra.port);

boolean dynamicND = true; // dynamic node discovery

Config casconf = new Config(port, true, 0);

Cluster cluster = new Cluster(nodes, casconf, dynamicND);

Pelops.addPool(Const.CASSANDRA_POOL, cluster, Const.CASSANDRA_KS);


Can anyone help me out with this?

Any help will be appreciated.


**