You picked ScyllaDB because the C++ rewrite of Cassandra gives you Cassandra’s data model with throughput numbers that don’t require a thirty-node ring. You tested it with docker run scylladb/scylla and the CQL surface matched your existing Cassandra drivers. Then you went to production deployment and discovered that ScyllaDB is unforgiving about three things in particular: the seed list (get it wrong and the second node won’t join), NTP discipline (Cassandra-family databases use timestamps for last-write-wins, and clock skew silently loses data), and the data filesystem (XFS on a real device, not on a small LVM volume on top of a generic OS disk). This guide does the deployment right the first time.
What’s happening
A ScyllaDB cluster on three Ubuntu 22.04 VMs is a single ring where every node is a peer. Data is partitioned across nodes by token range; replication factor (typically 3 in a 3-node cluster) governs how many copies of each partition exist. Consistency level (LOCAL_QUORUM is the production default) governs how many of those replicas must acknowledge a write or a read. There is no leader for the cluster; coordinators rotate per query.
What’s specific to bring-up: seed nodes are not “the masters.” Seeds are the IPs new nodes contact to learn cluster membership the first time they join. After a node has joined, it discovers peers via gossip and doesn’t need the seed list anymore. The mistake operators make is to list only one seed; if that node is down when you’re adding a fourth, the new node can’t bootstrap. List at least two, typically all three of your nodes, and you’ve eliminated the failure mode.
NTP is a hard requirement. ScyllaDB writes use a client-supplied or coordinator-supplied timestamp, and conflict resolution is last-write-wins by timestamp. Two nodes whose clocks drift by a second and you can lose a write you thought succeeded. The installer pins chrony to a tight pool with makestep 1.0 3 so any cold-start drift gets corrected fast, and chronyc tracking should show drift under a few hundred milliseconds at all times.
scylla_setup is the tuning script ScyllaDB ships — it benchmarks your disk, picks I/O scheduler settings, configures hugepages, and pins each shard to a CPU. Skipping it leaves performance on the table for no reason. This installer runs it non-interactively after the package install.
This script installs ScyllaDB 5.4 LTS, configures the seed list, runs scylla_setup, writes a systemd-friendly config, and starts the node. Repeat on three Ubuntu 22.04 VMs and you have a ring.
How to verify
Cluster status from any node:
nodetool status
# Datacenter: datacenter1
# =======================
# Status=Up/Down
# |/ State=Normal/Leaving/Joining/Moving
# -- Address Load Tokens Owns Host ID Rack
# UN 10.60.0.11 124 KB 256 ? 11111111-1111-1111-1111-111111111111 rack1
# UN 10.60.0.12 118 KB 256 ? 22222222-2222-2222-2222-222222222222 rack1
# UN 10.60.0.13 121 KB 256 ? 33333333-3333-3333-3333-333333333333 rack1
Every node should be UN (Up Normal). Anything else — UJ joining, DN down, UL leaving — and you don’t yet have a healthy ring.
CQL surface from any node:
cqlsh 10.60.0.11 9042 -e "SELECT cluster_name, release_version FROM system.local;"
NTP drift on every node (Cassandra-family databases will silently lose data with clock skew):
chronyc tracking | grep "System time"
# System time : 0.000041823 seconds slow of NTP time
Anything beyond a few hundred milliseconds is a fault. Fix it before traffic.
Listener bind — ScyllaDB should be on the private interface, not 0.0.0.0:
ss -lntp | grep -E ':(7000|7001|9042|9160|10000|19042)'
If you see 0.0.0.0:9042, fix the listen_address in scylla.yaml before traffic.
The fix
Save the script below as /root/setup-scylla-node.sh on each of the three Ubuntu 22.04 VMs. Edit the variables — especially SEEDS (typically all three IPs) — and run.
#!/usr/bin/env bash
set -euo pipefail
### Ubuntu 22.04 ScyllaDB 5.4 LTS 3-node cluster installer
### Run on each of the 3 nodes after editing the variables below
### Seed list = at least 2 of the 3 node IPs (we recommend all 3)
### Snapshots are at the volume level; nodetool snapshot is the logical layer
if [[ "$(id -u)" -ne 0 ]]; then
echo "Run as root."
exit 1
fi
# === EDIT PER NODE ===
NODE_NAME="scylla01"
NODE_IP="10.60.0.11"
PEER_IPS=("10.60.0.11" "10.60.0.12" "10.60.0.13")
CLUSTER_NAME="scylla-prod"
SCYLLA_VERSION="5.4" # 5.4 = LTS at time of writing
DATA_DEVICE="/dev/nvme1n1" # dedicated NVMe or SSD
DATA_MOUNT="/var/lib/scylla"
DC_NAME="dc1"
RACK_NAME="rack1"
# =====================
# Seed list = all three peer IPs (Scylla recommends all nodes as seeds in 3-node clusters)
SEEDS="${PEER_IPS[0]},${PEER_IPS[1]},${PEER_IPS[2]}"
echo
echo "========================================"
echo "ScyllaDB node ${NODE_NAME} (${NODE_IP})"
echo "========================================"
echo
echo "==> Updating base OS"
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y upgrade
apt-get -y install curl wget gnupg ca-certificates chrony fail2ban \
unattended-upgrades net-tools iproute2 jq lsof tcpdump xfsprogs \
lvm2 numactl psmisc tar gzip software-properties-common
systemctl enable --now chrony
echo "==> Tight NTP discipline (Cassandra-family databases are unforgiving)"
cat > /etc/chrony/chrony.conf <<'CHRONY'
pool 2.pool.ntp.org iburst maxsources 4
driftfile /var/lib/chrony/chrony.drift
makestep 1.0 3
rtcsync
logdir /var/log/chrony
maxupdateskew 100.0
CHRONY
systemctl restart chrony
# Don't proceed until chrony has at least synced once
for i in {1..30}; do
if chronyc tracking | grep -q "Reference ID :"; then
if ! chronyc tracking | grep -q "Reference ID : 00000000"; then
break
fi
fi
sleep 2
done
echo "==> Hardening SSH"
sed -i 's|^[#[:space:]]*PermitRootLogin.*|PermitRootLogin prohibit-password|' /etc/ssh/sshd_config
sed -i 's|^[#[:space:]]*PasswordAuthentication.*|PasswordAuthentication no|' /etc/ssh/sshd_config
sshd -t && systemctl restart ssh
echo "==> fail2ban + auto security updates"
cat > /etc/fail2ban/jail.d/sshd.local <<'FAIL2BAN'
[sshd]
enabled = true
port = ssh
backend = systemd
maxretry = 4
findtime = 10m
bantime = 1h
FAIL2BAN
systemctl enable --now fail2ban
dpkg-reconfigure -f noninteractive unattended-upgrades
echo "==> Preparing XFS data mount (Scylla recommends XFS)"
mkdir -p "${DATA_MOUNT}"
if [[ -n "${DATA_DEVICE}" && -b "${DATA_DEVICE}" ]]; then
if ! blkid "${DATA_DEVICE}" >/dev/null 2>&1; then
echo "Formatting ${DATA_DEVICE} as xfs (Scylla-recommended)"
mkfs.xfs -f -L scylla "${DATA_DEVICE}"
fi
if ! grep -q "${DATA_MOUNT}" /etc/fstab; then
echo "LABEL=scylla ${DATA_MOUNT} xfs defaults,noatime,discard,nofail 0 0" >> /etc/fstab
fi
mount -a
fi
chown -R root:root "${DATA_MOUNT}"
echo "==> Adding Scylla apt repository (${SCYLLA_VERSION})"
mkdir -p /etc/apt/keyrings
wget -qO- https://downloads.scylladb.com/deb/scylladb.gpg | gpg --dearmor > /etc/apt/keyrings/scylladb.gpg
cat > /etc/apt/sources.list.d/scylla.list <<EOF
deb [signed-by=/etc/apt/keyrings/scylladb.gpg] https://downloads.scylladb.com/downloads/scylla/deb/debian-ubuntu/scylladb-${SCYLLA_VERSION}/ stable main
EOF
apt-get update
apt-get -y install scylla scylla-jmx scylla-tools
echo "==> Writing scylla.yaml"
cat > /etc/scylla/scylla.yaml <<EOF
cluster_name: '${CLUSTER_NAME}'
num_tokens: 256
commitlog_sync: periodic
commitlog_sync_period_in_ms: 10000
commitlog_segment_size_in_mb: 32
seed_provider:
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
- seeds: "${SEEDS}"
listen_address: ${NODE_IP}
rpc_address: ${NODE_IP}
broadcast_rpc_address: ${NODE_IP}
native_transport_port: 9042
native_shard_aware_transport_port: 19042
rpc_port: 9160
storage_port: 7000
ssl_storage_port: 7001
api_port: 10000
api_address: 127.0.0.1
endpoint_snitch: GossipingPropertyFileSnitch
data_file_directories:
- ${DATA_MOUNT}/data
commitlog_directory: ${DATA_MOUNT}/commitlog
hints_directory: ${DATA_MOUNT}/hints
view_hints_directory: ${DATA_MOUNT}/view_hints
saved_caches_directory: ${DATA_MOUNT}/saved_caches
partitioner: org.apache.cassandra.dht.Murmur3Partitioner
authenticator: PasswordAuthenticator
authorizer: CassandraAuthorizer
internode_compression: dc
tls_priority: SECURE128:-VERS-TLS1.0:-VERS-TLS1.1
batch_size_warn_threshold_in_kb: 64
batch_size_fail_threshold_in_kb: 640
experimental_features: []
prometheus_address: ${NODE_IP}
prometheus_port: 9180
enable_user_defined_functions: false
EOF
echo "==> Writing cassandra-rackdc.properties"
cat > /etc/scylla/cassandra-rackdc.properties <<EOF
dc=${DC_NAME}
rack=${RACK_NAME}
prefer_local=true
EOF
mkdir -p "${DATA_MOUNT}"/{data,commitlog,hints,view_hints,saved_caches}
chown -R scylla:scylla "${DATA_MOUNT}"
echo "==> Running scylla_setup (non-interactive)"
scylla_setup \
--no-coredump-setup \
--no-sysconfig-setup \
--io-setup yes \
--disks "${DATA_DEVICE}" \
--setup-nic-and-disks yes \
--no-ntp-setup \
--no-rsyslog-setup \
--no-fstrim-setup \
--no-memory-setup \
--nic eth0 || true
echo "==> Ensuring scylla-server is enabled"
systemctl daemon-reload
systemctl enable scylla-server
echo "==> Bring-up order matters: first node first, then the rest"
echo " If this is node-1, start it now. If node-2 or node-3, wait until node-1 is UN."
echo
if [[ "${NODE_IP}" == "${PEER_IPS[0]}" ]]; then
echo "==> This is the first node — starting scylla-server"
systemctl start scylla-server
else
echo "==> This is a non-first node. Confirm node-1 is UN before continuing."
echo " On node-1: nodetool status"
echo " Then on this node: systemctl start scylla-server"
fi
echo "==> Waiting for native CQL listener"
for i in {1..120}; do
if ss -lnt | awk '{print $4}' | grep -q "${NODE_IP}:9042"; then break; fi
sleep 2
done
echo
echo "========================================"
echo "DONE on ${NODE_NAME}"
echo "========================================"
echo
echo "Listeners:"
ss -lntp | grep -E ':(7000|7001|9042|9160|10000|19042|9180)\b' || true
echo
echo "Cluster status:"
nodetool status || true
echo
echo "CQL surface (after default user is rotated):"
echo " cqlsh ${NODE_IP} 9042 -u cassandra -p cassandra"
echo
echo "Reminder: rotate the default cassandra/cassandra superuser IMMEDIATELY."
Make it executable and run on node-1 first; wait until nodetool status from node-1 shows it as UN, then run on node-2, wait until both show UN, then run on node-3.
chmod 700 /root/setup-scylla-node.sh
/root/setup-scylla-node.sh
The default superuser cassandra/cassandra is a known credential — rotate it before anything else:
cqlsh 10.60.0.11 9042 -u cassandra -p cassandra <<'SQL'
CREATE ROLE admin WITH SUPERUSER = true
AND LOGIN = true
AND PASSWORD = 'CHANGE_ME_ADMIN';
SQL
# Now log in as admin and drop the default cassandra superuser
cqlsh 10.60.0.11 9042 -u admin -p CHANGE_ME_ADMIN <<'SQL'
ALTER ROLE cassandra WITH PASSWORD = 'CHANGE_ME_LEGACY'
AND SUPERUSER = false
AND LOGIN = false;
SQL
Create a keyspace with RF=3 across the single DC and an app user:
CREATE KEYSPACE app
WITH replication = {
'class': 'NetworkTopologyStrategy',
'dc1': 3
}
AND durable_writes = true;
CREATE ROLE app WITH LOGIN = true AND PASSWORD = 'CHANGE_ME_APP';
GRANT ALL PERMISSIONS ON KEYSPACE app TO app;
For backups, schedule nodetool snapshot app on every node twice a day and copy the resulting snapshot dirs from each node to object storage; pair with volume-level snapshots of /var/lib/scylla every six hours. The nodetool snapshot is consistent per-node (hardlinks, near-instant); the volume snapshot covers commitlog + sstables on disk. Do a restore drill quarterly: copy a snapshot back, run nodetool refresh, verify the table count. An untested restore is a hypothesis.
Run ScyllaDB on Stack Harbor’s managed dedicated cloud with NVMe-backed nodes, NTP discipline, and the snapshot policy run under environment management, or start a scoping call if you’d like us to plan the ring with you.