Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 19665 invoked from network); 16 Jul 2009 03:52:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jul 2009 03:52:05 -0000 Received: (qmail 7056 invoked by uid 500); 16 Jul 2009 03:53:10 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 7037 invoked by uid 500); 16 Jul 2009 03:53:10 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 7028 invoked by uid 99); 16 Jul 2009 03:53:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2009 03:53:10 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mobiledreamers@gmail.com designates 209.85.132.245 as permitted sender) Received: from [209.85.132.245] (HELO an-out-0708.google.com) (209.85.132.245) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2009 03:52:59 +0000 Received: by an-out-0708.google.com with SMTP id c38so1878031ana.0 for ; Wed, 15 Jul 2009 20:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=BMpZ75mDQRTLtHECKWoTltoAqSmkepcREgRwbnPLaPw=; b=UMNvPx0bWHQboqxU1ruxKMO/jxCaT6wQbWM9dSlWTIyZv8LmjAROGSuR6ypRZY/5rS K1t7CammmSr17dQoDuyrEpmFA4Eo90Uq+yJp9kwEw43kSxMJSK1tuRUTbH+U2yTLoZGa doydJlAaB20EZGBJlKZQx95UbngjgT52qtLW4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=CcU1IyXj08AtM8iM7MtM4x8YTl62iE65mHUzcPuGJ9tUje3Qh7GHuc0EI3e0iqCHq5 krBh6M9dHsoJ9vD7SzNQ+nFp4KSyH0PsG9JN9RvhqYPhFMUTVseHprRlDbKueEHK/Ug/ TmNxJtxLm/wPOQdFW6jc0Mv5gp+3lXLQkf9pQ= MIME-Version: 1.0 Received: by 10.100.231.8 with SMTP id d8mr11126642anh.196.1247716358916; Wed, 15 Jul 2009 20:52:38 -0700 (PDT) In-Reply-To: References: <20090715230302.GA29001@alumni.caltech.edu> Date: Wed, 15 Jul 2009 20:52:38 -0700 Message-ID: Subject: Re: one server or more servers? From: mobiledreamers@gmail.com To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016368e207d5a896d046eca9a7a X-Virus-Checked: Checked by ClamAV on apache.org --0016368e207d5a896d046eca9a7a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit in Seeds can we specify domain name instead of ip address right now seeds is specifying ip address On Wed, Jul 15, 2009 at 4:49 PM, Evan Weaver wrote: > I sometimes have to use 127.0.0.1, at least when ListenAddress is > blank (auto-discover). Dunno if that has changed. > > Looks like this if you're successful: > > $ bin/nodeprobe --host 10.224.17.13 ring > Token(124007023942663924846758258675932114665) 3 10.224.17.13 |<--| > Token(106858063638814585506848525974047690568) 3 10.224.17.19 | ^ > Token(141130545721235451315477340120224986045) 3 10.224.17.14 |-->| > > Evan > > On Wed, Jul 15, 2009 at 4:24 PM, Michael Greene > wrote: > > The port you're looking for is typically 8080, but if you only specify > > the host and not the port it shoudl work just fine. > > > > bin/nodeprobe -host localhost > > > > Michael > > > > On Wed, Jul 15, 2009 at 6:18 PM, wrote: > >> bin]$ ./nodeprobe -host localhost -port 8888 > >> Error connecting to remote JMX agent! > >> java.io.IOException: Failed to retrieve RMIServer stub: > >> javax.naming.CommunicationException [Root exception is > >> java.rmi.ConnectIOException: error during JRMP connection establishment; > >> nested exception is: > >> java.io.EOFException] > >> at > >> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:342) > >> at > >> > javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267) > >> at > org.apache.cassandra.tools.NodeProbe.connect(NodeProbe.java:149) > >> at > org.apache.cassandra.tools.NodeProbe.(NodeProbe.java:111) > >> at org.apache.cassandra.tools.NodeProbe.main(NodeProbe.java:470) > >> Caused by: javax.naming.CommunicationException [Root exception is > >> java.rmi.ConnectIOException: error during JRMP connection establishment; > >> nested exception is: > >> java.io.EOFException] > >> at > >> > com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118) > >> at > >> > com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203) > >> at javax.naming.InitialContext.lookup(InitialContext.java:409) > >> at > >> > javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1902) > >> at > >> > javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1871) > >> at > >> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:276) > >> ... 4 more > >> Caused by: java.rmi.ConnectIOException: error during JRMP connection > >> establishment; nested exception is: > >> java.io.EOFException > >> at > >> sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:304) > >> at > >> sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) > >> at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340) > >> at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) > >> at > >> > com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114) > >> ... 9 more > >> Caused by: java.io.EOFException > >> at java.io.DataInputStream.readByte(DataInputStream.java:267) > >> at > >> sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:246) > >> ... 13 more > >> > >> On Wed, Jul 15, 2009 at 4:17 PM, wrote: > >>> > >>> port 7002 doesnt trying nodeprobe > >>> > >>> On Wed, Jul 15, 2009 at 4:03 PM, Anthony Molinaro > >>> wrote: > >>>> > >>>> Alternatively if you are using the 0.3 release you can point a browser > >>>> at port 7002 of one of the boxes and should see all the nodes in the > >>>> list. > >>>> > >>>> -Anthony > >>>> > >>>> On Wed, Jul 15, 2009 at 05:40:27PM -0500, Michael Greene wrote: > >>>> > You can use the nodeprobe utility in bin/ to contact each node and > >>>> > make sure they see the same information. Run it with no arguments > to > >>>> > see the commands you can pass it. > >>>> > > >>>> > There is also an open issue at > >>>> > https://issues.apache.org/jira/browse/CASSANDRA-252 for making this > a > >>>> > little more automatic (instead of having to run nodeprobe on each > node > >>>> > and check the results by hand, you can just pass in all the servers > >>>> > that you think should be able to see each other) but there's no code > >>>> > for this yet. > >>>> > > >>>> > Michael > >>>> > > >>>> > On Wed, Jul 15, 2009 at 5:33 PM, wrote: > >>>> > > Mark and Jonathan > >>>> > > I have started cassandra on 4 servers with all 4 of them as seeds > >>>> > > how do i know all 4 are now part of the datastore > >>>> > > are there ways to test this > >>>> > > thanks a lot > >>>> > > > >>>> > > On Tue, Jul 14, 2009 at 8:30 AM, Mark Robson > >>>> > > wrote: > >>>> > >> > >>>> > >> 2009/7/14 > >>>> > >>> > >>>> > >>> 1. If you only have 3 production servers, Cassandra may not do > much > >>>> > >>> for > >>>> > >>> you. You will probably only care if you have lots more servers. > 3 > >>>> > >>> servers is > >>>> > >>> a reasonable minimum for a test / dev environment > >>>> > >>> At How many servers does cassandra start really performing? > >>>> > >>> or how many servers is an ideal setup say for a game 10? > >>>> > >> > >>>> > >> It can use any number, three is probably a reasonable minimum, I > >>>> > >> don't > >>>> > >> know what the maximum is. > >>>> > >> > >>>> > >> If you have a small number of servers, there is probably no > reason > >>>> > >> to use > >>>> > >> Cassandra; you can more usefully use a conventional database with > >>>> > >> replication or sharding. > >>>> > >> > >>>> > >> The reason you might want to use Cassandra is to scale writes a > lot, > >>>> > >> to > >>>> > >> levels you couldn't reach with more "conventional" databases. > >>>> > >> > >>>> > >> In all likelihood, an application would use Cassandra to store > >>>> > >> high-volume > >>>> > >> high-write data alongside a more conventional database to store > >>>> > >> smaller, > >>>> > >> less frequently changing stuff. > >>>> > >> > >>>> > >> It appears to me that Cassandra 0.3 is only really useful if > running > >>>> > >> on a > >>>> > >> homogenous cluster of dedicated servers with reasonable amounts > of > >>>> > >> memory / > >>>> > >> storage (But not necessarily high spec servers of CPU, IO speed > or > >>>> > >> internal > >>>> > >> redundancy). > >>>> > >> > >>>> > >> Once the load balancing is implemented in 0.5 (according to > current > >>>> > >> plans) > >>>> > >> it will become more useful for heterogenous environments. > >>>> > >> > >>>> > >> Mark > >>>> > > > >>>> > > > >>>> > > > >>>> > > -- > >>>> > > Bidegg worlds best auction site > >>>> > > http://bidegg.com > >>>> > > > >>>> > >>>> -- > >>>> > ------------------------------------------------------------------------ > >>>> Anthony Molinaro < > anthonym@alumni.caltech.edu> > >>> > >>> > >>> > >>> -- > >>> Bidegg worlds best auction site > >>> http://bidegg.com > >> > >> > >> > >> -- > >> Bidegg worlds best auction site > >> http://bidegg.com > >> > > > > > > -- > Evan Weaver > -- Bidegg worlds best auction site http://bidegg.com --0016368e207d5a896d046eca9a7a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable in Seeds
can we specify domain name instead of ip address
right now = seeds is specifying ip address

On Wed, Ju= l 15, 2009 at 4:49 PM, Evan Weaver <eweaver@gmail.com> wrote:
I sometimes have = to use 127.0.0.1, at least when ListenAddress is
blank (auto-discover). Dunno if that has changed.

Looks like this if you're successful:

$ bin/nodeprobe --host 10.224.17.13 ring
Token(124007023942663924846758258675932114665) =A03 10.224.17.13 =A0|<--= |
Token(106858063638814585506848525974047690568) =A03 10.224.17.19 =A0| =A0 ^=
Token(141130545721235451315477340120224986045) =A03 10.224.17.14 =A0|-->= |

Evan

On Wed, Jul 15, 2009 at 4:24 PM, Michael Greene<michael.greene@gmail.com> wrote:
> The port you're looking for is typically 8080, but if you only spe= cify
> the host and not the port it shoudl work just fine.
>
> bin/nodeprobe -host localhost
>
> Michael
>
> On Wed, Jul 15, 2009 at 6:18 PM, <mobiledreamers@gmail.com> wrote:
>> bin]$ ./nodeprobe -host localhost -port 8888
>> Error connecting to remote JMX agent!
>> java.io.IOException: Failed to retrieve RMIServer stub:
>> javax.naming.CommunicationException [Root exception is
>> java.rmi.ConnectIOException: error during JRMP connection establis= hment;
>> nested exception is:
>> =A0=A0 =A0 =A0 =A0java.io.EOFException]
>> =A0=A0 =A0 =A0 =A0at
>> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java= :342)
>> =A0=A0 =A0 =A0 =A0at
>> javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFa= ctory.java:267)
>> =A0=A0 =A0 =A0 =A0at org.apache.cassandra.tools.NodeProbe.connect(= NodeProbe.java:149)
>> =A0=A0 =A0 =A0 =A0at org.apache.cassandra.tools.NodeProbe.<init= >(NodeProbe.java:111)
>> =A0=A0 =A0 =A0 =A0at org.apache.cassandra.tools.NodeProbe.main(Nod= eProbe.java:470)
>> Caused by: javax.naming.CommunicationException [Root exception is<= br> >> java.rmi.ConnectIOException: error during JRMP connection establis= hment;
>> nested exception is:
>> =A0=A0 =A0 =A0 =A0java.io.EOFException]
>> =A0=A0 =A0 =A0 =A0at
>> com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.j= ava:118)
>> =A0=A0 =A0 =A0 =A0at
>> com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContex= t.java:203)
>> =A0=A0 =A0 =A0 =A0at javax.naming.InitialContext.lookup(InitialCon= text.java:409)
>> =A0=A0 =A0 =A0 =A0at
>> javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConn= ector.java:1902)
>> =A0=A0 =A0 =A0 =A0at
>> javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnecto= r.java:1871)
>> =A0=A0 =A0 =A0 =A0at
>> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java= :276)
>> =A0=A0 =A0 =A0 =A0... 4 more
>> Caused by: java.rmi.ConnectIOException: error during JRMP connecti= on
>> establishment; nested exception is:
>> =A0=A0 =A0 =A0 =A0java.io.EOFException
>> =A0=A0 =A0 =A0 =A0at
>> sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:= 304)
>> =A0=A0 =A0 =A0 =A0at
>> sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202= )
>> =A0=A0 =A0 =A0 =A0at sun.rmi.server.UnicastRef.newCall(UnicastRef.= java:340)
>> =A0=A0 =A0 =A0 =A0at sun.rmi.registry.RegistryImpl_Stub.lookup(Unk= nown Source)
>> =A0=A0 =A0 =A0 =A0at
>> com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.j= ava:114)
>> =A0=A0 =A0 =A0 =A0... 9 more
>> Caused by: java.io.EOFException
>> =A0=A0 =A0 =A0 =A0at java.io.DataInputStream.readByte(DataInputStr= eam.java:267)
>> =A0=A0 =A0 =A0 =A0at
>> sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:= 246)
>> =A0=A0 =A0 =A0 =A0... 13 more
>>
>> On Wed, Jul 15, 2009 at 4:17 PM, <mobiledreamers@gmail.com> wrote:
>>>
>>> port 7002 doesnt trying nodeprobe
>>>
>>> On Wed, Jul 15, 2009 at 4:03 PM, Anthony Molinaro
>>> <anthonym@al= umni.caltech.edu> wrote:
>>>>
>>>> Alternatively if you are using the 0.3 release you can poi= nt a browser
>>>> at port 7002 of one of the boxes and should see all the no= des in the
>>>> list.
>>>>
>>>> -Anthony
>>>>
>>>> On Wed, Jul 15, 2009 at 05:40:27PM -0500, Michael Greene w= rote:
>>>> > You can use the nodeprobe utility in bin/ to contact = each node and
>>>> > make sure they see the same information. =A0Run it wi= th no arguments to
>>>> > see the commands you can pass it.
>>>> >
>>>> > There is also an open issue at
>>>> > https://issues.apache.org/jira/browse/CASSANDR= A-252 for making this a
>>>> > little more automatic (instead of having to run nodep= robe on each node
>>>> > and check the results by hand, you can just pass in a= ll the servers
>>>> > that you think should be able to see each other) but = there's no code
>>>> > for this yet.
>>>> >
>>>> > Michael
>>>> >
>>>> > On Wed, Jul 15, 2009 at 5:33 PM, <mobiledreamers@gmail.com> wrote:
>>>> > > Mark and Jonathan
>>>> > > I have started cassandra on 4 servers with all 4= of them as seeds
>>>> > > how do i know all 4 are now part of the datastor= e
>>>> > > are there ways to test this
>>>> > > thanks a lot
>>>> > >
>>>> > > On Tue, Jul 14, 2009 at 8:30 AM, Mark Robson <= ;markxr@gmail.com>
>>>> > > wrote:
>>>> > >>
>>>> > >> 2009/7/14 <mobiledreamers@gmail.com>
>>>> > >>>
>>>> > >>> 1. If you only have 3 production servers= , Cassandra may not do much
>>>> > >>> for
>>>> > >>> you. You will probably only care if you = have lots more servers. 3
>>>> > >>> servers is
>>>> > >>> a reasonable minimum for a test / dev en= vironment
>>>> > >>> At How many servers does cassandra start= really performing?
>>>> > >>> or how many servers is an ideal setup sa= y for a game 10?
>>>> > >>
>>>> > >> It can use any number, three is probably a r= easonable minimum, I
>>>> > >> don't
>>>> > >> know what the maximum is.
>>>> > >>
>>>> > >> If you have a small number of servers, there= is probably no reason
>>>> > >> to use
>>>> > >> Cassandra; you can more usefully use a conve= ntional database with
>>>> > >> replication or sharding.
>>>> > >>
>>>> > >> The reason you might want to use Cassandra i= s to scale writes a lot,
>>>> > >> to
>>>> > >> levels you couldn't reach with more &quo= t;conventional" databases.
>>>> > >>
>>>> > >> In all likelihood, an application would use = Cassandra to store
>>>> > >> high-volume
>>>> > >> high-write data alongside a more conventiona= l database to store
>>>> > >> smaller,
>>>> > >> less frequently changing stuff.
>>>> > >>
>>>> > >> It appears to me that Cassandra 0.3 is only = really useful if running
>>>> > >> on a
>>>> > >> homogenous cluster of dedicated servers with= reasonable amounts of
>>>> > >> memory /
>>>> > >> storage (But not necessarily high spec serve= rs of CPU, IO speed or
>>>> > >> internal
>>>> > >> redundancy).
>>>> > >>
>>>> > >> Once the load balancing is implemented in 0.= 5 (according to current
>>>> > >> plans)
>>>> > >> it will become more useful for heterogenous = environments.
>>>> > >>
>>>> > >> Mark
>>>> > >
>>>> > >
>>>> > >
>>>> > > --
>>>> > > Bidegg worlds best auction site
>>>> > > = http://bidegg.com
>>>> > >
>>>>
>>>> --
>>>> ----------------------------------------------------------= --------------
>>>> Anthony Molinaro =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 <anthonym@alu= mni.caltech.edu>
>>>
>>>
>>>
>>> --
>>> Bidegg worlds best auction site
>>> http://bidegg.= com
>>
>>
>>
>> --
>> Bidegg worlds best auction site
>> http://bidegg.com<= /a>
>>
>



--
Evan Weaver



--
Bidegg worlds be= st auction site
http://bidegg.com
--0016368e207d5a896d046eca9a7a--