回复:StatusLogger output help

2015-10-25 Thread qihuang.zheng
I just want to know when StatusLogger will happen, find this question: http://qnalist.com/questions/4783598/help-on-statuslogger-output but no one reply it. seems this question ask Mar 2014. no one notice then. I just pull it out, hope someone answer this. TKS. qihuang.zheng 原始邮件

回复:StatusLogger output help

2015-10-25 Thread qihuang.zheng
for ensure after GC , there will print StatusLogger, I found this code in GCInspector.java: if (durationPerCollection MIN_DURATION_TPSTATS) StatusLogger.log(); the defaultMIN_DURATION_TPSTATS=1second. so if GC duration more than 1s, there will be StatusLogger! But I check

Re: Is replication possible with already existing data?

2015-10-25 Thread Ajay Garg
Some more observations :: a) CAS11 and CAS12 are down, CAS21 and CAS22 up. If I connect via the driver to the cluster using only CAS21 and CAS22 as contact-points, even then the exception occurs. b) CAS11 down, CAS12 up, CAS21 and CAS22 up. If I connect via the driver to the cluster using only

StatusLogger output help

2015-10-25 Thread qihuang.zheng
After dig system.log. I notice Every GC for ParNew or GC for CMS will produce StatusLogger. But I’m not really sure is GC cause it. Is anyone summary this appearance? INFO [ScheduledTasks:1] 2015-10-21 20:57:54,568 GCInspector.java (line 116) GC for ParNew: 1165 ms for 1 collections,

Re: Is replication possible with already existing data?

2015-10-25 Thread Ajay Garg
Bingo !!! Using "LoadBalancingPolicy" did the trick. Exactly what was needed !!! Thanks and Regards, Ajay On Sun, Oct 25, 2015 at 5:52 PM, Ryan Svihla wrote: > Ajay, > > So It's the default driver behavior to pin requests to the first data > center it connects to

Re: terrible read/write latency fluctuation

2015-10-25 Thread 曹志富
I will try to trace a read that take > 20msec . just HDD.no delete just 60days ttl.value size is small ,max length is 140. My data like Time Series . date of 90% reads which timestamp < 7days. data almost just insert ,with a lit update.

Re: Is replication possible with already existing data?

2015-10-25 Thread Ryan Svihla
Ajay, So It's the default driver behavior to pin requests to the first data center it connects to (DCAwareRoundRobin strategy). but let me explain why this is. I think you're thinking about data centers in Cassandra as a unit of failure, and while you can have say a rack fail, as you scale up

Re: Cassandra Object Mapper - Dynamically pass keyspace value

2015-10-25 Thread Ryan Svihla
You should probably ask the java driver user list https://groups.google.com/a/lists.datastax.com/forum/#!forum/java-driver-user , However I do have some suggestions (any follow up questions please ask on the java driver list though): 1. It's optional so you don't have to pass it (

Understanding C* -XX:MaxTenuringThreshold=1

2015-10-25 Thread qihuang.zheng
As Cassandra default-XX:MaxTenuringThreshold=1, which means: first time YGC, Eden's live object copy to Survivor(S0), those survivor object's age counter=1. Then next time YGC, Eden live object and S0 will copy to S1. and those still live object from S0 age counter=2 which large than