Uneven CPU load on Cassandra cluster

538 Views Asked by At

We are getting some weird load distribution on our cassandra (3.7) cluster. The cluster has 13 nodes, with 16 cores & 32G ram, and it is running behind Apache Usergrid (forked). When we put (artificial) stress on the application, same 3 nodes get almost all the CPU load and the rest of the nodes operate normally. We could not create the same scenario using cassandra-stress tool, with that all the load is distributed evenly. There is nothing different on the logs of these nodes either. gc logs also seem to be similar (running G1 gc for high heap memory). The queries originate from Usergrid, which we do not have much control. I need guidance for finding the problem. (So far nothing helpful from the internet.) Where should I look to diagnose the problem?

1

There are 1 best solutions below

15
nevsv On

It looks like uneven distribution of data/keys/requests between nodes. Check that your partition key distributes data evenly, and you are not requesting same key.