question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance of Cassandra

See original GitHub issue

Hi, we made several tests with YCSB comparing mongodb and cassandra in our current setup. At first we wanted to compare just mongodb on red hat enterprise linux 6/7. But also added testing wired tiger and cassandra.

Cassandra is a pretty new technology for us that we are currently testing. In general we had the following settings:

recordcount=6000000
operationcount=100000000
threads=100
fieldlength=250
measurementtype=timeseries
core_workload_insertion_retry_limit=10000

We also tested with a record count of 2.000.000 and 3.000.000. We used workload a, b and f.

All machines there run on identical nodes. We tested virtual servers (like our current infrastructure) and local hard drives on a dedicated machine.

For cassandra we sometimes had timneout during the load phase. That is why we added the “core_workload_insertion_retry_limit=10000” option.

We also used different amount of nodes in our tests. We tested:

  • a single mongodb node
  • three mongodb nodes
  • 1 cassandra node
  • 3 cassandra nodes
  • 4 cassandra nodes
  • 5 cassandra nodes

On cassandra nodes we tested replication factor 1 and 2.

In all our tests cassandra was much slower than mongodb. In general we did not expect this, especially if we increase the nodes in cassandra. But in our case it does not seem to be the case. We already added a few general performance tips. But due to our infrastructure had not splitted the commit and data directory to separate disks.

We repeated most of the tests but in the end concentrated on workload a. Cause the performance difference was on every workload.

In the web we found tests with YCSB there cassandra is performing quite good. So in general our question would be: Are we doing something wrong?

Thanks

Regards Mike

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:23 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cmatsercommented, Feb 5, 2016

Cassandra’s DB connection object supports pooled connections and that size can be controlled with the “cassandra.coreconnections” and “cassandra.maxconnections” properties. You might want to check your values and correlate them to your thread size.

0reactions
busbeycommented, Jul 7, 2018

closing as stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cassandra 4.0 vs. Cassandra 3.11: Comparing Performance
Cassandra 4.0 has better P99 latency than Cassandra 3.11 by up to 100x! · Cassandra 4.0 throughputs can be up to 33% greater...
Read more >
How Much Faster Is Apache Cassandra 4.0? - The New Stack
The maximum throughput (measured in operations per second) achieved on 3 x i3. · The 90- and 99-percentile latencies of UPDATE queries, as...
Read more >
Cassandra Performance: The Most Comprehensive Overview ...
Summarizing Cassandra performance, let's look at its main upside and downside points. Upside: Cassandra distributes data efficiently, allows ...
Read more >
Performance test on Cassandra NoSQL | Isaac
Performance tests on Cassandra NoSQL ... In this first performance test of different NoSQL DB, a combination of 50% of read operations and...
Read more >
Performance-Analyse: Apache Cassandra 4.0.0 Release
Throughput · Cassandra 4.0.0 achieves by far the highest throughput with an average of 7205 ops/s. · The other Cassandra versions are very...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found