Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 94014103E3 for ; Thu, 11 Apr 2013 19:37:58 +0000 (UTC) Received: (qmail 15274 invoked by uid 500); 11 Apr 2013 19:35:52 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 12385 invoked by uid 500); 11 Apr 2013 19:35:36 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 7272 invoked by uid 99); 11 Apr 2013 18:45:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 18:45:56 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ajazam@gmail.com designates 209.85.217.172 as permitted sender) Received: from [209.85.217.172] (HELO mail-lb0-f172.google.com) (209.85.217.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 18:45:51 +0000 Received: by mail-lb0-f172.google.com with SMTP id u10so1909954lbi.3 for ; Thu, 11 Apr 2013 11:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=G2aHhDGN7X4Ye2zQZ29Ve0WJ6fNwoDaGZcLUhkdHvfk=; b=i5DQIhN5oGBYmSsJe3sn2y0zMqxULQBU1uuf2J/JkzXU1+dtBrmhQWCVLbLoO1fWQj AMzPGP5VhIJ/NY0z1G+MGVZGcourlRPVvyWCQJpWKrbpJ4Bn3Onb4YYxe0i3PPFNHdad sAmxaHGP+8WCY08xMHbqUpXhQLHNlBKGGh0XY5Tg7ucyDAJxV+0rwolmBdLQNjZ0RSfg Or80DssL/UsCl0gKu5XwU+yC4x1UJ0f3+tvgIPTbwbe9lbXLaByMY00YjK0Xh0Rz61hI hLh4t7cB+HTXkXTyJVDGcrqCg+QYThmMlvCYo8ch6IN3V25GO3C+KaDkePvtuTeY2ngP xRNA== MIME-Version: 1.0 X-Received: by 10.112.154.233 with SMTP id vr9mr2708341lbb.23.1365705929631; Thu, 11 Apr 2013 11:45:29 -0700 (PDT) Received: by 10.112.19.10 with HTTP; Thu, 11 Apr 2013 11:45:29 -0700 (PDT) Received: by 10.112.19.10 with HTTP; Thu, 11 Apr 2013 11:45:29 -0700 (PDT) In-Reply-To: References: Date: Thu, 11 Apr 2013 19:45:29 +0100 Message-ID: Subject: Re: Two Cluster each with 12 nodes- Cassandra database From: Jabbar Azam To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=e89a8f643564cdaedc04da1a30a4 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f643564cdaedc04da1a30a4 Content-Type: text/plain; charset=ISO-8859-1 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" 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 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. >> >> >> ** >> > > --e89a8f643564cdaedc04da1a30a4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hello,

I don't know what pelops is. I'm not sure why you wa= nt 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 yo= u 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 c= an create two virtual datacentres.=A0 One for realtime inserts and reads an= d the second for analytics.=A0 You could have have and 16 /8 server split.= =A0 Obviously you'll have to work out what the optimum split is for you= r workload.

Not sure if I've answered your question...

On 11 Apr 2013 18:51, "Raihan Jamal" &= lt;jamalraihan@gmail.com> w= rote:
Folks, Any thoughts on this? I am still in the learning pr= ocess. So any guidance will be of great help.





Raihan Jamal<= /span>


On Wed, Apr 10, 2013 at 10:39 PM, Raihan= Jamal <jamalraihan@gmail.com> wrote:
I have started working on a project in which I am using `C= assandra database`.

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

I will be using `Pelops cl= ient` 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 node= s 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?


=A0=A0=A0 String[] nodes =3D cfg.getStringArray("cassandra= .servers");
=A0=A0=A0
=A0=A0=A0 int port =3D cfg.getInt("= cassandra.port");
=A0=A0=A0
=A0=A0=A0 boolean dynamicND =3D tr= ue; // dynamic node discovery
=A0=A0=A0
=A0=A0=A0 Config casconf =3D new Config(port, true, 0);
= =A0=A0=A0
=A0=A0=A0 Cluster cluster =3D new Cluster(nodes, casconf, dyn= amicND);
=A0=A0=A0
=A0=A0=A0 Pelops.addPool(Const.CASSANDRA_POOL, c= luster, Const.CASSANDRA_KS);


Can anyone help me out with this?

Any help will be appreciated.



--e89a8f643564cdaedc04da1a30a4--