Brokerium for Apache Kafka®

The control plane for Apache Kafka KRaft clusters

See every cluster in one dashboard. Add and remove controllers, rebalance partitions, replace brokers and run rolling upgrades, with every step planned, confirmed and checked against the health of the cluster.

Version 0.3.2 · source-available · runs on virtual machines, Kubernetes and managed services

New brokers 104 and 105 join empty. Brokerium plans the moves, then runs them one throttled step at a time behind health checks until every broker holds the same share.
The Brokerium dashboard with two healthy clusters, their brokers, controllers and partitionsThe Brokerium dashboard with two healthy clusters, their brokers, controllers and partitions

What it does

Operate Kafka, not scripts

Rebalancing

See the plan before a single partition moves

  • Before and after for replicas, leaders and data on every broker.
  • Reassignments run in throttled batches; throttles are always removed.
  • Pause, resume or cancel between steps.
A rebalance plan in the Brokerium dashboard with partition moves and the distribution before and afterA rebalance plan in the Brokerium dashboard with partition moves and the distribution before and after

Controllers

Change the KRaft quorum without holding your breath

  • One quorum change at a time; a new controller joins before an old one leaves.
  • Voters must be caught up before the next step starts.
  • Static quorums migrate to dynamic ones in place.
The controllers tab of a cluster in the Brokerium dashboard with voters, the leader and lagThe controllers tab of a cluster in the Brokerium dashboard with voters, the leader and lag

Distribution

Find the hot spots, then fix them in one click

  • Replicas, leaders and bytes per broker with rack awareness.
  • Agentless rates from log sizes and offsets, no metrics stack needed.
  • Balance evenly, balance leaders only or move partitions by hand.
The distribution tab of a cluster with replicas, leaders and data per broker and two new empty brokersThe distribution tab of a cluster with replicas, leaders and data per broker and two new empty brokers

Safety model

Built for clusters that must not go down

One operation per cluster at a time, one quorum change at a time, and every reassignment throttled. The rules are the same for the dashboard and the API.

  1. Plan

    Every operation starts as a dry run that shows each step and each move. Nothing changes yet.

  2. Confirm

    You start it explicitly. Irreversible actions ask you to type the name of the cluster.

  3. Run step by step

    Before every step the health gate checks for offline and under-replicated partitions, min.insync.replicas and the quorum.

  4. Audit

    Who planned, confirmed, paused or cancelled what, and the result of every step, stays in the audit log.

How it works

One server, an optional agent, no sidecars

You

Dashboard and REST API, with users, roles and sessions.

brokerium-server

API, dashboard, operations engine and the rebalancing planner in one Go binary.

State in PostgreSQL; credentials sealed at rest.

  • Virtual machines

    Kafka protocol for data and rebalancing; brokerium-agent for install, format, start, stop and upgrades.

  • Kubernetes

    Strimzi resources through the Kubernetes API: node pools, rolling restarts and upgrades.

  • Managed services

    Amazon MSK, Confluent Cloud and Aiven, with what each provider allows.

Agents connect out to the server over gRPC with mutual TLS, so no inbound port is opened on Kafka hosts.

Get started

Running in a minute

docker network create brokerium
docker run -d --name brokerium-db --network brokerium -e POSTGRES_USER=brokerium \
  -e POSTGRES_PASSWORD=brokerium -e POSTGRES_DB=brokerium postgres:18-alpine
docker run -d --name brokerium --network brokerium -p 8080:8080 -p 8443:8443 \
  -v brokerium-data:/var/lib/brokerium -e BROKERIUM_ADMIN_PASSWORD=change-me \
  -e BROKERIUM_DATABASE_URL='postgres://brokerium:brokerium@brokerium-db:5432/brokerium?sslmode=disable' \
  bvaliev/brokerium-server:0.3.2

Open http://localhost:8080, sign in as admin and add a cluster by its bootstrap servers. To create lab clusters in Docker from the dashboard, run the server with the Docker socket as the installation guide shows.

Licensing

Free to use, including in production

Brokerium is source-available under the PolyForm Shield License 1.0.0. Run it at no cost to operate your own Apache Kafka clusters, including clusters that serve your customers' applications. What the license does not allow is a competing product or service, such as a hosted Brokerium for third parties. Commercial licenses are available on request.