What are the recommended limits on partition size in Cassandra, and what happens if you exceed them?
Last updated
Rule of thumb: keep partitions well under 100 MB and about 100,000 cells (rows × columns). These are guidelines, not hard limits.
Exceeding them causes slow reads, heap/GC pressure (long pauses or OOM), hotspots on a few replicas, and expensive compactions.
Fix by adding a bucketing component (e.g. date or hash) to the partition key, and monitor growth with
nodetool tablehistograms.
- https://medium.com/@johnny_width/calculating-cassandra-partition-disk-size-43276d1dcb34
- https://docs.datastax.com/en/luna-cassandra/planning/data-model.html
- https://www.instaclustr.com/blog/cassandra-data-partitioning/
- https://opensource.com/article/20/5/apache-cassandra
- https://docs.datastax.com/en/cassandra-oss/2.2/cassandra/planning/planPlanningPartitionSize.html
- https://reintech.io/blog/handling-large-partitions-blob-storage-cassandra
- https://engineering.monday.com/cassandra-at-scale-partitions-limitations-and-solutions/
- https://cassandra.apache.org/doc/3.11/cassandra/data_modeling/intro.html