Apache Cassandra on dedicated servers

Cassandra spreads data over many nodes and many sites with no single primary. With twelve data centres in Europe, North America and Asia-Pacific, a cluster can sit close to users on several continents.

Why Cassandra?

For write-heavy data that must stay available through node and site failures: user activity, messaging, IoT readings, carts, catalogues and time-ordered records. Every node is equal, any node accepts writes for any key, and replication factor and consistency level are chosen per keyspace and per query. Cassandra 5.0 added storage-attached indexes for flexible secondary queries, vector search, trie-based memtables and SSTables that save memory and disk, and the unified compaction strategy.

How do I configure a node?

Most settings live in cassandra.yaml. Set the same cluster name everywhere, two or three seed nodes per data centre, the node's own addresses, and the gossiping snitch, which reads each node's data centre and rack from a small properties file.

# cassandra.yaml (excerpt)
cluster_name: 'orders'
num_tokens: 16
seed_provider:
  - class_name: org.apache.cassandra.locator.SimpleSeedProvider
    parameters:
      - seeds: "10.100.0.1,10.100.0.2,10.101.0.1"
listen_address: 10.100.0.3
rpc_address: 10.100.0.3
endpoint_snitch: GossipingPropertyFileSnitch
# cassandra-rackdc.properties
dc=gra
rack=r1

How does replication across sites work?

With NetworkTopologyStrategy, which sets a replica count per data centre. Clients read and write at LOCAL_QUORUM, so each request waits only for replicas in its own site while changes flow to the other sites in the background.

CREATE KEYSPACE shop WITH replication = {'class': 'NetworkTopologyStrategy', 'gra': 3, 'bhs': 3, 'sgp': 3};

A cluster with three nodes in Gravelines, three in Beauharnois and three in Singapore serves each region from nearby replicas and keeps working if a whole site goes offline.

How is traffic between sites protected?

Our servers have no private network, so enable internode encryption with TLS, which Cassandra supports natively, and client encryption on the CQL port. Restrict ports in the firewall to known node addresses.

PortUseWho may connect
9042CQL clientsApplication servers
7000Internode traffic, TLS enabledOther Cassandra nodes
7199JMX for nodetoolLocalhost only
server_encryption_options:
  internode_encryption: all
  keystore: /etc/cassandra/tls/node.p12
  truststore: /etc/cassandra/tls/trust.p12

What heap size and data volume suit one Cassandra node?

A heap of 8 to 16 GB with G1 is typical; the rest of memory goes to the page cache, which serves hot SSTables. Keep data on NVMe and leave space for compaction: the unified and leveled strategies need modest headroom, size-tiered compaction can temporarily need as much free space as the largest tables. Plan 1 to 2 TB of data per node; larger nodes take long to stream when replaced.

Why are repairs necessary?

Replicas can drift when a node misses writes during an outage longer than the hint window. Repair compares replicas and streams differences. Run it on every table within the gc_grace_seconds period, ten days by default, so deleted data never reappears. Incremental repair keeps each run short; schedule it per node in turn.

nodetool repair --full -pr shop
nodetool status shop

Which machines fit?

Node sizeMachineMemory and drives
Up to 700 GB of dataBUSINESS-2 202464 GB DDR5, 2x 960 GB SSD NVMe, Soft RAID
Up to 1.5 TB of dataESSENTIAL-XL128 GB DDR5, 2x 1.92 TB SSD NVMe, Soft RAID
Up to 1.5 TB, many coresENTERPRISE-a2 2026128 GB DDR5, 2x 1.92 TB SSD NVMe

BUSINESS-2 2024 is sold in Europe, Canada, Singapore, Sydney and Mumbai, so one model can serve every site of a global cluster at $109.80 a month in Europe. Our Apache HBase clusters page covers the HDFS-based wide-column alternative.

Machines for Cassandra nodes

Lowest monthly price of each model across its data centres; the model page shows the price in every location.

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-4AMD EPYC 73131664 GB2x 960 GB SSD NVMe1 Gbps unmetered$106.20
ESSENTIAL-XLAMD EPYC TURIN 945548128 GB2x 1.92 TB SSD NVMe1 Gbps unmetered$212.40
BUSINESS-2 2024AMD EPYC 4344P864 GB2x 960 GB SSD NVMe3 Gbps unmetered$109.80
BUSINESS-3 2024AMD EPYC 4464P1264 GB2x 960 GB SSD NVMe3 Gbps unmetered$141.60
BUSINESS-4 2026AMD EPYC 4585PX1664 GB2x 960 GB SSD NVMe3 Gbps unmetered$212.40
ENTERPRISE-a2 2026AMD EPYC TURIN 925524128 GB2x 1.92 TB SSD NVMe5 Gbps unmetered$446.40

Pick one model sold in every region you need, and run three nodes in each.

See all servers and prices

Related pages

Apache HBase clusters

Run Apache HBase on HDFS with bare metal Storage servers: RegionServers, HMaster, ZooKeeper, heap and BucketCache, row key design and cluster sizing.

Read more

Database servers

NVMe machines with large memory for PostgreSQL, MySQL, MariaDB and MongoDB, from a single primary to replicated pairs.

Read more

Choosing a data centre location

Latency, traffic rules, data residency and price: how to pick one of our twelve data centres for the people you serve.

Read more

Singapore data centre

South-East Asian hub with 43 models, a 25 TB monthly allowance on most machines and options up to unmetered ports.

Read more

Questions and answers

How do I replicate Cassandra across data centres?

Use NetworkTopologyStrategy with a replica count per data centre and query at LOCAL_QUORUM so requests stay in their own site.

How is Cassandra traffic secured without a private network?

Enable internode encryption with TLS and client encryption on port 9042, and allow only known node addresses in the firewall.

How much heap does a Cassandra node need?

Typically 8 to 16 GB with G1; the rest of memory is used as page cache for SSTables.

How often should Cassandra repairs run?

Every table should be repaired within gc_grace_seconds, ten days by default, so deleted data never comes back.

What did Cassandra 5.0 add?

Storage-attached indexes, vector search, trie-based memtables and SSTables, and the unified compaction strategy.