Re: Nodejs connector high latency

2018-11-10 Thread Tarun Chabarwal
Hi Andy Thanks for the response. I have 2 DC's of 5 nodes each. I'm doing write against DC2 with local quorum consistency. nodetool confirmed that all space is consumed on DC2 and I did not set any replication for DC1. This is the expected behavior. Regarding node.js behavior, I validated that

Re: Nodejs connector high latency

2018-11-04 Thread Andy Tolbert
Hi Tarun, There are a ton of factors that can impact query performance. The cassandra native protocol supports multiple simultaneous requests per connection. Most drivers by default only create one connection to each C* host in the local data center. That being said, that shouldn't be a

Nodejs connector high latency

2018-11-04 Thread Tarun Chabarwal
Hi I used cassandra driver provided by datastax (3.5.0) library in nodejs. I've 5 nodes cluster. I'm writing to a table with quorum. I observed that there is some spike in write. In ~20 writes, 2-5 writes are taking longer(~200ms). I debugged one of the node process with strace and found that