Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY

2012-01-26 Thread ruslan usifov
27 января 2012 г. 2:44 пользователь sridhar basam написал: > Which socket API? > > http://www.php.net/manual/en/function.socket-set-option.php > > Is possible to do the appropriate setsockopt call to disable NAGLE. > > No you are wrong php thrift implementation doesn't use sock extension it uses

Re: how stable is 1.0 these days?

2012-01-26 Thread Nate McCall
I'd also be quite interested in some qualifications on that Hector stability comment. Please open an issue or report it on the mail list if you have anything specific. https://github.com/rantav/hector/ hector-us...@googlegroups.com On Thu, Jan 26, 2012 at 8:44 PM, Janne Jalkanen wrote: > > 1.0.5

Re: [RELEASE] Apache Cassandra 0.8.9 released

2012-01-26 Thread Rustam Aliyev
Hi, I was just about to upgrade to the latest 0.8.x, but noticed that there's no RPM package for 0.8.9 on DataStax repo. Latest is 0.8.8. Any plans to publish 0.8.9 rpm? -- Rustam On 14/12/2011 19:59, Sylvain Lebresne wrote: The Cassandra team is pleased to announce the release of Apache Ca

Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY

2012-01-26 Thread sridhar basam
Which socket API? http://www.php.net/manual/en/function.socket-set-option.php Is possible to do the appropriate setsockopt call to disable NAGLE. Sridhar 2012/1/26 ruslan usifov : > > > 27 января 2012 г. 1:19 пользователь aaron morton > написал: >> >> Outgoing TCP connections between nodes ha

Re: Cassandra & usage

2012-01-26 Thread francesco . tangari . inf
ok this makes sense thank u. -- francesco.tangari@gmail.com Inviato con Sparrow (http://www.sparrowmailapp.com/?sig) Il giorno giovedì 26 gennaio 2012, alle ore 21.36, aaron morton ha scritto: > Yes it is. > > But it depends on what you want to select. > > Cassandra does not hav

Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY

2012-01-26 Thread ruslan usifov
27 января 2012 г. 1:19 пользователь aaron morton написал: > Outgoing TCP connections between nodes have TCP_NODELAY on, so do server > side THRIFT sockets. > > Thanks, for exhaustive answer > I would assume your client will be setting it as well. > > No php client doesn have TCP_NODELAY, becaus

Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY

2012-01-26 Thread Jeremiah Jordan
Should already be on for all of the server side stuff. All of the clients that I have used set it as well. -Jeremiah On 01/26/2012 07:17 AM, ruslan usifov wrote: Hello Is it possible set TCP_NODELAY on thrift socket in cassandra?

Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY

2012-01-26 Thread aaron morton
Outgoing TCP connections between nodes have TCP_NODELAY on, so do server side THRIFT sockets. I would assume your client will be setting it as well. Cheers - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 27/01/2012, at 6:54 AM, sridhar basam w

Re: Cannot start cassandra node anymore

2012-01-26 Thread aaron morton
> The schema change was that we created a new key space with composite type > CFs, but later we had to change some definition/CF names, so we dropped the > key space and recreated with new definition. sounds like a bug, as Sylvain suggest can you report it here https://issues.apache.org/jira/br

Re: Mixed random & ordered partitioning?

2012-01-26 Thread aaron morton
> What is be the effective difference between hashing the keys myself and > letting the random partitioner do it? This is what the RandomPartitioner calls https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/utils/FBUtilities.java#L209 > Is this advisable? I would try to a

Re: how stable is 1.0 these days?

2012-01-26 Thread Janne Jalkanen
1.0.5 and 1.0.6 we had some longer-term stability problems with (fd leaks, etc), but so far 1.0.7 is running like a train for us. /Janne On Jan 26, 2012, at 08:43 , Radim Kolar wrote: > Dne 26.1.2012 2:32, David Carlton napsal(a): >> How stable is 1.0 these days? > good. but hector 1.0 is unst

Re: Cassandra & usage

2012-01-26 Thread aaron morton
Yes it is. But it depends on what you want to select. Cassandra does not have a complete query language like SQL in an RDBMS. You need to design your data model to support the queries you wish to make. Normally this means denormlising data so that queries are essentially reading from a materi

Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY

2012-01-26 Thread sridhar basam
There is no global setting in linux to turn off nagle. Sridhar 2012/1/26 Jeffrey Kesselman : > You know... here aught to be a command line command to set it.  There is in > Solaris and Windows.  But Im having trouble finding it for Linux. > > > 2012/1/26 ruslan usifov >> >> Sorry but you misun

Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY

2012-01-26 Thread Jeffrey Kesselman
You know... here aught to be a command line command to set it. There is in Solaris and Windows. But Im having trouble finding it for Linux. 2012/1/26 ruslan usifov > Sorry but you misunderstand me, is ask is cassandra have any option to > control TCP_NODELAY behaviour, so we doesn't need patc

Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY

2012-01-26 Thread ruslan usifov
Sorry but you misunderstand me, is ask is cassandra have any option to control TCP_NODELAY behaviour, so we doesn't need patch cassandra or thrift code. I found this article https://wiki.cs.columbia.edu:8443/pages/viewpage.action?pageId=12585536, where упоминается mentioned coreTransport.TcpClien

Re: how stable is 1.0 these days?

2012-01-26 Thread Pierre-Yves Ritschard
Can you elaborate on the composite types instabilities ? is this specific to hector as the radim's posts suggests ? These one liner answers are quite stressful :) On Thu, Jan 26, 2012 at 1:28 PM, Carlo Pires wrote: > If you need to use composite types and create/drop column families on the > fly

Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY

2012-01-26 Thread ruslan usifov
2012/1/26 Jeffrey Kesselman > Most operating systems have a way to do this at the OS level. > > Could you please provide this way for linux?, for particular application? Maybe some sysctl? > > On Thu, Jan 26, 2012 at 8:17 AM, ruslan usifov wrote: > >> Hello >> >> Is it possible set TCP_NODELAY

Re: two dimensional slicing

2012-01-26 Thread Bryce Allen
Thanks, comments inline: On Mon, 23 Jan 2012 20:59:34 +1300 aaron morton wrote: > It depends a bit on the data and the query patterns. > > * How many versions do you have ? We may have 10k versions in some cases, with up to a million names total in any given version but more often <10K. To man

Re: Disable Nagle algoritm in thrift i.e. TCP_NODELAY

2012-01-26 Thread Jeffrey Kesselman
Most operating systems have a way to do this at the OS level. On Thu, Jan 26, 2012 at 8:17 AM, ruslan usifov wrote: > Hello > > Is it possible set TCP_NODELAY on thrift socket in cassandra? > -- It's always darkest just before you are eaten by a grue.

Re: Cannot start cassandra node anymore

2012-01-26 Thread huyle
This is on single node environment, and there is a lot of data in commit logs needs to be flushed to sstables. So remove commit logs will cause data lost. Fortunately, this issue happens on a new key space that have CFs that use composite type, and we can sacrifice loosing data on this new key spa

Re: 1.0.6 - High CPU troubleshooting

2012-01-26 Thread Matthew Trinneer
Caches might be it. Will try reducing and see how it goes. Didn't mention this because I wasn't seeing the same errors yesterday, but last night thought it might be worth mentioning. Had changed the location of some data last week, a few days subsequent to that I received some IOException er

Re: Cannot start cassandra node anymore

2012-01-26 Thread Sylvain Lebresne
On Thu, Jan 26, 2012 at 1:24 PM, Carlo Pires wrote: > I found out this is related to schema change. Happens *every time* I create > drop and new CF with composite types. As workaround I: Would you mind opening a ticket on JIRA (https://issues.apache.org/jira/browse/CASSANDRA) with the stack trace

Re: 1.0.6 - High CPU troubleshooting

2012-01-26 Thread Vitalii Tymchyshyn
That's once in few days, so I don't think it's too important. Especially since 0.77 is much better than 0.99 I've seen sometimes :) 26.01.12 02:49, aaron morton написав(ла): You are running into GC issues. WARN [ScheduledTasks:1] 2012-01-22 12:53:42,804 GCInspector.java (line 146) Heap is 0.7

Re: Cannot start cassandra node anymore

2012-01-26 Thread Carlo Pires
I'm not in production yet. As exercise, stopped all nodes when this error occurred and I could not start any node again.

Re: how stable is 1.0 these days?

2012-01-26 Thread Carlo Pires
If you need to use composite types and create/drop column families on the fly you must be prepared to instabilities.

Re: Cannot start cassandra node anymore

2012-01-26 Thread Sasha Dolgy
why would you ever want to stop all nodes together? On Thu, Jan 26, 2012 at 1:24 PM, Carlo Pires wrote: > I found out this is related to schema change. Happens *every time* I create > drop and new CF with composite types. As workaround I: > > * never stop all nodes together > > To stop a node: >

Re: Cannot start cassandra node anymore

2012-01-26 Thread Carlo Pires
I found out this is related to schema change. Happens *every time* I create drop and new CF with composite types. As workaround I: * never stop all nodes together To stop a node: * repair and compact a node before stopping it * stop and start it again * if it started fine good if not, remove all

rpc_address: 0.0.0.0

2012-01-26 Thread Patrik Modesto
Hi, #using cassandra 0.8.9 I used to have rpc_address set to 0.0.0.0 to bind cassandra to all interfaces. After upgrading out Hadoop jobs to cassandra 0.8.9 (from 0.8.7) there are lots of these messages, and the jobs fails. 12/01/26 11:15:21 DEBUG hadoop.ColumnFamilyInputFormat: failed connect