Re: hector or pelops

2010-06-23 Thread Maxim Kramarenko
I've switched to Pelops recently, no problems with it for now, code become a little more compact.

OrderPreservingPartitioner and manual token assignment

2010-06-22 Thread Maxim Kramarenko
Hello! I use OrderPreservingPartitioner and assign tokens manually. Questions are: 1) Why range sorted in alphabetical order, not numeric order ? It was ok with RandomPartitioner Address Status Load Range Ring 84 172.19.0.35

Lucandra issues

2010-06-17 Thread Maxim Kramarenko
Hello! I am trying to rework our current lucene-based application to lucandra. Note the following problem: when I try to use NumericRangeQuery like this one: query.add(NumericRangeQuery.newLongRange("deliveryTimestampMinute", 6, fromDate, toDate, true, true), BooleanClause.Occur.MUST); I got

Re: nodetool cleanup isn't cleaning up?

2010-05-31 Thread Maxim Kramarenko
raceSeconds seconds. On 31.05.2010 17:00, Ran Tavory wrote: Do you think it's the tombstones that take up the disk space? Shouldn't the tombstones be moved along with the data? On Mon, May 31, 2010 at 3:29 PM, Maxim Kramarenko mailto:maxi...@trackstudio.com>> wrote: Hello!

Re: nodetool cleanup isn't cleaning up?

2010-05-31 Thread Maxim Kramarenko
Hello! You likely need wait for GCGraceSeconds seconds or modify this param. http://spyced.blogspot.com/2010/02/distributed-deletes-in-cassandra.html === Thus, a delete operation can't just wipe out all traces of the data being removed immediately: if we did, and a replica did not receive the

Re: Cassandra CF sharding

2010-05-28 Thread Maxim Kramarenko
ipate from dealing with multiple entities instead of one. I'm not sure what you're thinking of for 3) but routing is done by key only. 2010/5/27 Maxim Kramarenko: Hello! We have mail archive with one large CF for mail body. In our case, it's easy to shard data to 5-10 CF by custom

Cassandra CF sharding

2010-05-27 Thread Maxim Kramarenko
Hello! We have mail archive with one large CF for mail body. In our case, it's easy to shard data to 5-10 CF by customer id. We like to do this because: 1) We get more manageable instances, because we have many small CF instead of one multi-TB CF on each node. 2) Better disk space usage (ne

Re: Hector vs cassandra-java-client

2010-05-25 Thread Maxim Kramarenko
Hello I've used jassandra, works fine and easy for use. On 25.05.2010 06:21, Peter Hsu wrote: Hi All, This may have been answered already, but I did a [quick] Google search and didn't find much. Which is the better Java client to use? Hector or cassandra-java-client or neither? it seems H

Very slow bootstrap

2010-05-23 Thread Maxim Kramarenko
Hello! I have to 2 node cluster: [r...@cas2 bin]# sh nodetool -h localhost ring Address Status Load Range Ring 47311629213338587668692978196312911227 172.19.0.32 Up 80.06 GB 1517934153089153249729554474051162 |<--| 172.19.0.30 Up 169.42

Re: Strange error with data reading

2010-05-20 Thread Maxim Kramarenko
wrote: What does JMX report as described in http://wiki.apache.org/cassandra/Streaming ? 2010/5/19 Maxim Kramarenko: Hello! I have 3 node cluster: node1, node2, node3. Replication factor = 2. I run decommission on node3 and it's in progress, moving data to node1 Ring on all nodes show all

Strange error with data reading

2010-05-19 Thread Maxim Kramarenko
Hello! I have 3 node cluster: node1, node2, node3. Replication factor = 2. I run decommission on node3 and it's in progress, moving data to node1 Ring on all nodes show all 3 nodes up, no problems (but node 1 response with 3-5 sec delay). I tried to execute a few "get" statements using cli, l

Cassandra compaction disk space logic

2010-05-19 Thread Maxim Kramarenko
Hi! We have mail archive application, so we have a lot of data (30TB on multiple nodes) and should delete data after a few months of storing. Questions are: 1) Compaction require extra space to process. What happend if node have no extra space for compaction ? Will it crash, or just stop com

Disk usage doubled after nodetool decommission and node still in ring

2010-05-18 Thread Maxim Kramarenko
Hi! After nodetool decomission data size on all nodes grow twice, node still up and in ring, and no streaming now / tmp SSTables now. BTW, I have ssh connection to server, so after run nodetool decommission I expect, that server receive the command press Ctrl-C and close shell. It is correct

JMX metrics for monitoring

2010-05-17 Thread Maxim Kramarenko
Hi! Which JMX metrics do you use for Cassandra monitoring ? Which values can be used for alerts ?

cannot loadbalance node

2010-05-14 Thread Maxim Kramarenko
Hello! When I am trying to run loadbalance, I got the following error message: [r...@cas2 bin]# sh nodetool -h localhost loadbalance Exception in thread "main" java.lang.UnsupportedOperationException: data is currently moving to this node; unable to leave the ring I am actually run loadbalanc