Skip to main content

KAHUNA / CLUSTER PLAYGROUND

A distributed key/value store you can break

Start a real 4-server Kahuna cluster in this browser tab. Stop a leader and watch its partitions elect a new one. Add a server and watch the rebalancer move replicas to it. Run Kahuna scripts through any server while you do it.

REAL KAHUNA · WEBASSEMBLYRaft, replica placement and the key/value store run in this tab · in-memory storage · nothing goes to a server
Preparing your cluster

Starting four real Kahuna servers in this tab…

  1. 1Load the engine
  2. 2Start the servers
  3. 3Write sample keys
● Starting servers…RF 3/8 PARTITIONS
RUNNING SERVERS0 / 4
ROSTER VERSION—
PARTITIONS WITH A LEADER0 / 8
SYSTEM LEADER—
5
6
7
8
9
Leader · L Follower · F Not hosted · – Down

A line joins two servers that hold replicas of the same partition. Placement and leadership come from the servers. Drag to orbit.

Kahuna Script console

Scripts run on the selected server. Each script is one transaction.
Parametersone @name = value pair per line
Script reference
Output

The cluster is starting. You can choose an example while you wait.

Cluster journal / LIVE

Roster, leader and replica changes appear here.