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 1C64CD6FE for ; Wed, 2 Jan 2013 21:32:49 +0000 (UTC) Received: (qmail 58232 invoked by uid 500); 2 Jan 2013 21:32:46 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 58184 invoked by uid 500); 2 Jan 2013 21:32:46 -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 58174 invoked by uid 99); 2 Jan 2013 21:32:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2013 21:32:46 +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 (nike.apache.org: domain of edlinuxguru@gmail.com designates 209.85.210.170 as permitted sender) Received: from [209.85.210.170] (HELO mail-ia0-f170.google.com) (209.85.210.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2013 21:32:40 +0000 Received: by mail-ia0-f170.google.com with SMTP id i1so12279286iaa.15 for ; Wed, 02 Jan 2013 13:32:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6J49upNJAUBsATD1m0zz+ckSY7MF0JV5uYfZROOMUvM=; b=k/zFg9HfEJO2ZwRt3U5V5tWkGwTgtZ0Is5qmGZEs4mEAaqkvRnbbze7AIY/PuQ5h7D 9VJCsnkeZPOVURVmQsR5s4Zuarzq3nverOQv+co8hQ3Xrbb+X1usMSj1s6/4wuRyEPjh gwsx7pJW3EvIqFs/NEVnT2zaRVZdGKNGTj9iFV50+ZQyuTvE3tWMT6+PYjv0h8+3rKKR jzIeQXKo/+2QsE3zpMCrl3ttq+g32MpbHjocHln/5SVg5Uu/9EBe+IiqZUDHJRwTTTHe 4YmSxwMd7hHGeEsbwrvLkRoua4PT8g0789Knb/qDwK2VgUvxu8if6V164Qk3rzhBAO3R N2lQ== MIME-Version: 1.0 Received: by 10.50.53.196 with SMTP id d4mr36262650igp.88.1357162339624; Wed, 02 Jan 2013 13:32:19 -0800 (PST) Received: by 10.64.97.106 with HTTP; Wed, 2 Jan 2013 13:32:19 -0800 (PST) In-Reply-To: References: Date: Wed, 2 Jan 2013 16:32:19 -0500 Message-ID: Subject: Re: Force data to a specific node From: Edward Capriolo To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=f46d042fdeb227e55804d254fb80 X-Virus-Checked: Checked by ClamAV on apache.org --f46d042fdeb227e55804d254fb80 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable There is a crazy, very bad, don't do it way to do this. You can set RF=3D1 and hack the "LocalPartitioner" (because the local partitioner has been made not to do this) Then the node you connect to and write is the node the data will get stored on. Its like memcache "do it yourself" style sharding. Did I say not suggested. If not "not suggested" On Wed, Jan 2, 2013 at 2:54 PM, Aaron Turner wrote: > You'd have to use the ordered partitioner or something like that and > choose your row key according to the node you want it placed. > > But that's in general a really bad idea because you end up with > unbalanced nodes and hot spots. > > That said, are your nodes on a LAN? I have my 9+3 node cluster (two > datacenters) on 100Mbps ports (which everyone says not to do) and it's > working just fine. Even node rebuilds haven't been that bad so far. > If you're trying to avoid WAN replication, then use a dedicated > cluster. > > On Wed, Jan 2, 2013 at 10:20 AM, Everton Lima > wrote: > > We need to do this to minimize the network I/O. We have our own load da= ta > > balance algorithm. We have some data that is best to process in a local > > machine. > > Is it possible? How? > > > > > > 2013/1/2 Edward Sargisson > >> > >> Why would you want to? > >> > >> ________________________________ > >> From: Everton Lima > >> To: Cassandra-User > >> Sent: Wed Jan 02 18:03:49 2013 > >> Subject: Force data to a specific node > >> > >> It is possible to force a data to stay in a specific node? > >> > >> -- > >> Everton Lima Aleixo > >> Bacharel em Ci=EAncia da Computa=E7=E3o pela UFG > >> Mestrando em Ci=EAncia da Computa=E7=E3o pela UFG > >> Programador no LUPA > >> > > > > > > > > -- > > Everton Lima Aleixo > > Bacharel em Ci=EAncia da Computa=E7=E3o pela UFG > > Mestrando em Ci=EAncia da Computa=E7=E3o pela UFG > > Programador no LUPA > > > > > > -- > Aaron Turner > http://synfin.net/ Twitter: @synfinatic > http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & > Windows > Those who would give up essential Liberty, to purchase a little temporary > Safety, deserve neither Liberty nor Safety. > -- Benjamin Franklin > "carpe diem quam minimum credula postero" > --f46d042fdeb227e55804d254fb80 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
There is a crazy, very bad, don't do it way to do this. You can se= t RF=3D1 and hack the "LocalPartitioner" (because the local parti= tioner has been made not to do this)

Then the = node you connect to and write is the node the data will get stored on.

Its like memcache "do it yourself" style shar= ding.

Did I say not suggested.

If not "not suggested"


On Wed, Jan 2, 2013 at 2:54 PM, Aaron Turner <synfinatic@gmail.com= > wrote:
You'd have to use the ordered partitioner or something like that and choose your row key according to the node you want it placed.

But that's in general a really bad idea because you end up with
unbalanced nodes and hot spots.

That said, are your nodes on a LAN? =A0I have my 9+3 node cluster (two
datacenters) on 100Mbps ports (which everyone says not to do) and it's<= br> working just fine. =A0Even node rebuilds haven't been that bad so far.<= br> If you're trying to avoid WAN replication, then use a dedicated
cluster.

On Wed, Jan 2, 2013 at 10:20 AM, Everton Lima <peitin.inutil@gmail.com> wrote:
> We need to do this to minimize the network I/O. We have our own load d= ata
> balance algorithm. We have some data that is best to process in a loca= l
> machine.
> Is it possible? How?
>
>
> 2013/1/2 Edward Sargisson <Edward.Sargisson@globalrelay.net>
>>
>> Why would you want to?
>>
>> ________________________________
>> From: Everton Lima <= peitin.inutil@gmail.com>
>> To: Cassandra-User <user@cassandra.apache.org>
>> Sent: Wed Jan 02 18:03:49 2013
>> Subject: Force data to a specific node
>>
>> It is possible to force a data to stay in a specific node?
>>
>> --
>> Everton Lima Aleixo
>> Bacharel em Ci=EAncia da Computa=E7=E3o pela UFG
>> Mestrando em Ci=EAncia da Computa=E7=E3o pela UFG
>> Programador no LUPA
>>
>
>
>
> --
> Everton Lima Aleixo
> Bacharel em Ci=EAncia da Computa=E7=E3o pela UFG
> Mestrando em Ci=EAncia da Computa=E7=E3o pela UFG
> Programador no LUPA
>



--
Aaron Turner
http://synfin.net/ =A0= =A0 =A0 =A0 Twitter: @synfinatic
http://tcpreplay= .synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety.
=A0 =A0 -- Benjamin Franklin
"carpe diem quam minimum credula postero"

--f46d042fdeb227e55804d254fb80--