liveBook · Manning

Replication factor

As explained in ScyllaDB in Action

A replication factor is the configured number of copies maintained for each piece of data.

A replication factor is the configured number of copies ScyllaDB maintains for each piece of data. Replication improves fault tolerance, while consistency levels determine how many replicas must acknowledge a query. section 1.2.1

Replication factor affects both placement and continued operation:

  • ScyllaDB places replicas on different nodes and uses the hash ring to locate and distribute them. section 8.2.1
  • With three nodes and replication factor 3, quorum queries continue operating after one node fails. section 2.4
  • NetworkTopologyStrategy spreads replicas across racks and applies a specified replication factor separately within each datacenter. section 5.2.2

Creating a keyspace with three replicas

This keyspace assigns replication factor 3 to datacenter1: CREATE KEYSPACE reviews WITH replication = { 'class': 'NetworkTopologyStrategy', 'datacenter1': '3' }; section 5.2.2

Table 1.1 Sample of consistency level options, assuming a cluster with three replicas
Consistency level
Description
Number required to succeed
Failures tolerated
ALL
Requires all replicas to succeed
3
0
QUORUM
Requires a majority of replicas to succeed
2
1
ONE
Requires a single replica to succeed
1
2

Compare ALL, QUORUM, and ONE consistency levels for a cluster with three replicas, including required acknowledgments and tolerated failures. section 1.2.1

How ScyllaDB in Action covers it

How deep it goes
Explains replica placement, consistency acknowledgments, rack-aware distribution, and single-node failure, but defers broader operational configuration.
Examples
Uses three-node failure testing, three-replica keyspace creation, rack-aware multi-datacenter placement, and consistency-level comparisons.
What it assumes
Assumes familiarity with nodes, keyspaces, hash rings, datacenters, racks, and consistency queries.
What you can do after
Configure replication for a keyspace and select consistency levels that balance availability, failure tolerance, and consistency.
How it connects
Links replication factor with hash rings, consistency levels, quorum consistency, NetworkTopologyStrategy, datacenters, racks, and eventual consistency.

Also explained in

Compare how 4 books explain replication factor →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ScyllaDB in Action. The section links point to the parts of the book it draws on.