rpk cluster info
An rpk command that prints the cluster name, the list of brokers with their addresses, and the topics the cluster knows about.
In more detail
The broker marked with an asterisk is the controller. The output is read from the cluster metadata, so it shows advertised addresses exactly as clients will see them.
Related terms
- rpk — The command-line tool that ships with Redpanda for starting brokers and managing topics, consumer groups and schemas.
- metadata — Data that describes other data, such as a file name, a creation time or a package version.
- Kafka controller — The broker currently responsible for cluster-wide decisions such as tracking brokers and choosing partition leaders.
- advertised address — The host name and port a broker tells clients to use when they connect back to it, set in Redpanda with --advertise-kafka-addr.
Taught in
- Starting A Broker And Reading Its Metadata — Apache Kafka & Event Streaming
- Three Brokers: Replication And Leaders — Apache Kafka & Event Streaming
- Losing A Broker — Apache Kafka & Event Streaming