Authentication with Java driver

2017-02-06 Thread Yuji Ito
Hi all, I want to know how to authenticate Cassandra users for multiple instances with Java driver. For instance, each thread creates a instance to access Cassandra with authentication. As the implementation example, only the first constructor builds a cluster and a session. Other constructors us

Cluster scaling

2017-02-06 Thread Branislav Janosik -T (bjanosik - AAP3 INC at Cisco)
Hi all, I have a cluster of three nodes and would like to ask some questions about the performance. I wrote a small benchmarking tool in java that mirrors (read, write) operations that we do in the real project. Problem is that it is not scaling like it should. The program runs two tests: o

Questions about TWCS

2017-02-06 Thread John Sanda
In Jeff Jirsa C* 2016 summit presentation, TimeWindowCompactionStrategy for Time Series Workloads, there is a slide which talks about optimizations. It says to align partition keys to your TWCS windows. Is it generally the case that calendar/date based partitions would align nicely with TWCS window

UnknownColumnFamilyException after removing all Cassandra data

2017-02-06 Thread Simone Franzini
I am trying to restore functionality of a cluster that got into a really bad state of schema disagreements. Right now, I am at a point where I have a single node up and I am trying to replicate data from there. I am then trying to bring up a second node, where I deleted all Cassandra data. The node

spark master election for multiregion

2017-02-06 Thread Ashwini Mhatre (asmhatre)
Hi, I have deployed DSE cassandra with spark cluster in multiple region (east and west) on ec2. Each region has 2 nodes. For my setup I have seed following observation 1.spark master is elected for both the region 2.spark workers from registering with himself with respective master in particular

Re: CS process killed by kernel OOM

2017-02-06 Thread Benjamin Roth
Alright. Thanks a lot for that information! 2017-02-06 14:35 GMT+01:00 Avi Kivity : > It is a bug. In some contexts, the kernel needs to be able to reclaim > memory instantly, but this is not one of them. Here, the java process is > creating a new thread, and the kernel is allocating 16kB for i

Re: CS process killed by kernel OOM

2017-02-06 Thread Avi Kivity
It is a bug. In some contexts, the kernel needs to be able to reclaim memory instantly, but this is not one of them. Here, the java process is creating a new thread, and the kernel is allocating 16kB for its kernel stack; that is a regular allocation, not atomic. If you decide the gfp_mask va

Re: CS process killed by kernel OOM

2017-02-06 Thread BenoƮt Canet
Some people compact memory in cron jobs with: echo 1 > /proc/sys/vm/ compact_memory to defragment the ram. Try this on a sacrified server first :) On Thu, Jan 26, 2017 at 6:36 AM, Benjamin Roth wrote: > Hi there, > > We installed 2 new nodes these days. They run on ubuntu (Ubuntu 16.04.1 > LTS)

Re: CS process killed by kernel OOM

2017-02-06 Thread Benjamin Roth
Thanks for the reply. We got rid of the OOMs by increasing vm.min_free_kbytes, it's default of approx 90mb is maybe a bit low for systems with 128GB. I guess the OOM happens because the kernel could not reclaim enough paged memory instantly. I can't tell if this is really a kernel bug or not. It al

Re: CS process killed by kernel OOM

2017-02-06 Thread Avi Kivity
On 01/26/2017 07:36 AM, Benjamin Roth wrote: Hi there, We installed 2 new nodes these days. They run on ubuntu (Ubuntu 16.04.1 LTS) with kernel 4.4.0-59-generic. On these nodes (and only on these) CS gets killed by the kernel due to OOM. It seems very strange to me because, CS only takes rou

Re: Disk full during new node bootstrap

2017-02-06 Thread Alain RODRIGUEZ
Hi, Well, I guess knowing the disk behaviour would be useful to understand if it is really filling up and why. - What is the disk capacity? - Does it actually fill up? - If it is filling up, it might mean that all your nodes are not running with enough available space and that any node c