The terminal on diskless clusters
What the playground's terminal shows on the KIP-1163 draft, Inkless, KafScale and AutoMQ clusters, and which commands answer differently on each.
On this page
Each diskless implementation keeps different things on a broker’s disk and serves a different set of Kafka APIs, so the terminal answers the way that product does. The behavior follows each product’s sources at the version the simulator models: the KIP-1163 draft, Inkless 0.51, KafScale 2.1 and AutoMQ 1.7.4. On a diskless cluster, the terminal’s greeting names the implementation, and help ends with a short list of the commands worth running there. Terminal commands covers every tool on a classic cluster.
What each implementation shows
| Command | KIP-1163 draft | Inkless 0.51 | KafScale 2.1 | AutoMQ 1.7.4 |
|---|---|---|---|---|
ls /var/kafka-logs |
A directory per replica. A diskless partition’s segments are a cache filled from object storage. | No directory for a diskless partition: Inkless creates no local log for it. Classic topics keep theirs. | No log directory at all: the broker writes nothing to local disk. Home is ~. |
No partition directories. Only the two 100 MiB index caches, timeindex-cache and txnindex-cache. |
kafka-log-dirs --describe |
Lists the cached partitions. | Leaves diskless partitions out. | UnsupportedVersionException: KafScale has no DescribeLogDirs. |
Lists each partition with the size of its stream in S3, lag 0. |
kafka-topics --describe |
diskless.enable=true in Configs:, and an empty Isr: with a note: in the draft diskless replicas never join the ISR, and an empty ISR is healthy. --under-replicated-partitions and --under-min-isr-partitions leave these partitions out. |
Replication factor 1, diskless.enable=true. |
Replication factor 1. Configs: shows only retention.ms and retention.bytes. |
Replication factor 1, no diskless.enable: every topic lives in S3. |
cat config/server.properties |
The Kafka settings. | Adds diskless.storage.system.enable and the inkless.* PostgreSQL control plane and S3 settings. |
No such file: KafScale reads KAFSCALE_* environment variables, listed with their defaults. |
Adds elasticstream.enable and the s3.* bucket and WAL settings. |
cluster-info |
The Kafka version and the KRaft quorum. | Names Inkless, then the KRaft quorum. | Names KafScale and etcd as the control plane. | Names AutoMQ, then the KRaft quorum. |
kafka-diskless-metadata |
The KIP’s metadata tool: offsets and objects per partition. | Inkless ships no such tool. The terminal says so, then shows the PostgreSQL batch coordinator. | Same note, then the etcd leases and end offsets. | Same note, then the streams and stream set objects in the KRaft controller. |
Bucket names, hosts and regions in server.properties are placeholders, and credentials are left out.
Commands KafScale does not serve
KafScale is a Kafka-protocol broker, not a fork of Apache Kafka, and it implements a subset of the protocol. Kafka’s admin client checks what a broker supports before it sends a request. On a KafScale cluster these commands therefore stop with UnsupportedVersionException: The node does not support <API> and change nothing:
| Command | API it needs |
|---|---|
kafka-log-dirs |
DESCRIBE_LOG_DIRS |
kafka-reassign-partitions --execute or --cancel |
ALTER_PARTITION_REASSIGNMENTS |
kafka-reassign-partitions --verify or --list |
LIST_PARTITION_REASSIGNMENTS |
kafka-leader-election |
ELECT_LEADERS |
kafka-metadata-quorum |
DESCRIBE_QUORUM |
kafka-acls |
DESCRIBE_ACLS, CREATE_ACLS, DELETE_ACLS |
kafka-transactions |
LIST_TRANSACTIONS, DESCRIBE_TRANSACTIONS |
kafka-configs --alter |
INCREMENTAL_ALTER_CONFIGS |
kafka-topics, kafka-configs --describe, kafka-get-offsets, kafka-consumer-groups and the console producer and consumer work as on any cluster.
Where the data is instead
The disk view only shows what a broker keeps locally. To see where a diskless record actually lives, use the canvas: the object storage lane lists the uploaded objects, and the Inspector opens the coordinator, PostgreSQL, etcd or the object store when you select one. kafka-get-offsets and kafka-consumer-groups --describe read the same offsets the canvas shows.