Start your first database node

Learn how to quickly launch your first node using ScyllaDB

Start Node View Node Logs Check Node Status Stop Node

Running ScyllaDB in Docker is the simplest way to experiment with ScyllaDB. Make sure Docker is installed, then copy and run this command to start a single node of ScyllaDB:

Copy
docker run -d --rm --name node1 scylladb/scylla

This will run a single ScyllaDB node in a container in the background and print the container ID. It will automatically remove the container when it exits. Choose from the tabs above to learn more about operating your database, or see what’s next for exploring your database.

View your node logs

Learn how to inspect your database node logs

Start Node View Node Logs Check Node Status Stop Node

To view the running logs of your node, copy and run this command:

Copy
docker logs -f node1

The response you get back should look a bit like this:

INFO 2023-07-22 03:24:57,299 [shard 0] init - starting native transport
INFO 2023-07-22 03:24:57,305 [shard 0] cql_server_controller - Starting listening for CQL clients
INFO 2023-07-22 03:24:57,306 [shard 0] init - servingINFO
2023-07-22 03:24:57,306 [shard 0] init - Scylla version 5.1.8-0 initialization completed.

Node logs can be used for troubleshooting and support.

Check your node status

Learn how to view the status of your database node

Start Node View Node Logs Check Node Status Stop Node

To check the status of your node, copy and run this command:

Copy
docker exec node1 nodetool status

The response you get back should look a bit like this:


Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address     Load       Tokens       Owns    Host ID                               Rack
UN  172.17.0.2  544 KB     256          ?       37544a61-16d4-4daa-a9c8-ecfd5668945e  rack1

The status “UN” stands for “Up and Normal.” It indicates the node is in a healthy state and actively participating in the data distribution and replication processes.

Stop your database node

Learn how to stop your ScyllaDB node

Start Node View Node Logs Check Node Status Stop Node

Copy and run this command to stop your ScyllaDB node:

Copy
docker stop node1

This requests the ScyllaDB node to gracefully shut down and should automatically clean up the container’s resources.