scylladb
High-performance Cassandra-compatible NoSQL database
TLDR
Start CQL shell
SYNOPSIS
cqlsh [options] [host] [port]
nodetool [options] command [args]
DESCRIPTION
ScyllaDB uses Cassandra-compatible tools (cqlsh and nodetool) with the same commands and CQL syntax. ScyllaDB is a C++ rewrite of Cassandra designed for lower latency and higher throughput.
cqlsh executes CQL statements. Keyspaces, tables, and query syntax match Cassandra. ScyllaDB adds lightweight transactions (LWT) improvements and materialized views.
nodetool manages cluster operations. ScyllaDB extends it with toppartitions for identifying hot spots that cause load imbalance.
ScyllaDB's shard-per-core architecture eliminates locking between CPU cores. The --smp flag controls core allocation. Configuration differs from Cassandra, using scylla.yaml.
ScyllaDB Alternator provides DynamoDB-compatible API, accessible via AWS SDK tools instead of cqlsh.
CONFIGURATION
/etc/scylla/scylla.yaml
Main ScyllaDB configuration file for cluster settings, networking, storage, and tuning parameters./etc/scylla/cassandra-rackdc.properties
Datacenter and rack configuration for topology-aware replication.~/.cassandra/cqlshrc
CQL shell configuration file for connection defaults, formatting, and authentication.
CQLSH PARAMETERS
-u, --username user
Authentication username.-p, --password pass
Authentication password.-k, --keyspace keyspace
Initial keyspace.-f file
Execute CQL file.-e statement
Execute single CQL statement.--ssl
Use SSL connection.--request-timeout secs
Query timeout.
NODETOOL COMMANDS
status
Show cluster node status.info
Node information and metrics.ring
Token ring information.repair [keyspace]
Run repair operation.compact [keyspace]
Force compaction.flush [keyspace]
Flush memtables to SSTables.snapshot [name]
Take snapshot backup.drain
Drain node for shutdown.version
Show ScyllaDB version.describecluster
Cluster information.toppartitions
Show hot partitions.
SCYLLADB-SPECIFIC
nodetool toppartitions keyspace table duration
Identify hot partitions causing load.nodetool setlogginglevel logger level
Adjust logging dynamically.scylla --developer-mode mode
Development mode flag.scylla --smp cores
Number of CPU cores to use.scylla --memory amount
Memory allocation.
CAVEATS
While CQL-compatible, some Cassandra features differ or are unsupported. Configuration files differ from Cassandra. Repair is faster but still resource-intensive. Check compatibility matrix for drivers.
HISTORY
ScyllaDB was founded in 2015 by Avi Kivity (KVM creator) and Dor Laor. The first release came in 2015 as a drop-in Cassandra replacement written in C++ using the Seastar framework. Version 2.0 (2017) added materialized views. ScyllaDB Open Source is Apache-licensed; Enterprise adds features like encryption and LDAP.
