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.


Brokerium for Apache Kafka®
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


What it does
Health, brokers, controllers, partitions, lag and rates for all your clusters, refreshed every few seconds.
Add and remove KRaft controllers one at a time, migrate a static quorum to a dynamic one, and watch voters, observers and lag.
A deterministic planner spreads replicas, leaders and data across brokers and racks. You see the plan before anything moves.
Add, drain, decommission and replace brokers, with the same node id or a new one, on virtual machines and on Strimzi.
One node at a time behind the health gate, with Java and known-defect checks first and finalization as a separate step.
Topics, configs, ACLs, SCRAM users, quotas, consumer and share groups, offset resets and message browsing.
Rebalancing


Controllers


Distribution


Safety model
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.
Every operation starts as a dry run that shows each step and each move. Nothing changes yet.
You start it explicitly. Irreversible actions ask you to type the name of the cluster.
Before every step the health gate checks for offline and under-replicated partitions, min.insync.replicas and the quorum.
Who planned, confirmed, paused or cancelled what, and the result of every step, stays in the audit log.
How it works
Dashboard and REST API, with users, roles and sessions.
API, dashboard, operations engine and the rebalancing planner in one Go binary.
State in PostgreSQL; credentials sealed at rest.
Kafka protocol for data and rebalancing; brokerium-agent for install, format, start, stop and upgrades.
Strimzi resources through the Kubernetes API: node pools, rolling restarts and upgrades.
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
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.2Open 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.
helm repo add brokerium https://charts.brokerium.kaufen
helm install brokerium brokerium/brokerium -n brokerium --create-namespace
kubectl -n brokerium get secret brokerium -o jsonpath='{.data.admin-password}' | base64 -d
kubectl -n brokerium port-forward svc/brokerium 8080:8080The chart bundles PostgreSQL for evaluations; point it at a managed database for production.
curl -fLO https://github.com/brokerium/brokerium/releases/download/v0.3.2/brokerium-server-linux-amd64
curl -fLO https://github.com/brokerium/brokerium/releases/download/v0.3.2/SHA256SUMS
sha256sum --check --ignore-missing SHA256SUMS
chmod +x brokerium-server-linux-amd64
BROKERIUM_ADMIN_PASSWORD=change-me \
BROKERIUM_DATABASE_URL='postgres://brokerium:brokerium@localhost:5432/brokerium' \
./brokerium-server-linux-amd64Static binaries for Linux and macOS on amd64 and arm64, with checksums and an SBOM.
curl -fsSL https://brokerium.example.com/api/v1/agent/install.sh | \
sudo BROKERIUM_AGENT_SERVER=brokerium.example.com:8443 BROKERIUM_AGENT_TOKEN=brk1.… shOnly for node lifecycle on virtual machines. The agent connects out to the server over mTLS and runs a fixed set of typed commands.
Licensing
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.