Actions¶
The following actions can be run on the Charmed Apache Kafka charm using juju run.
get-listeners¶
Get all active listeners and their port allocations
rebalance¶
Trigger a rebalance of cluster partitions based on configured goals
Parameters¶
Name |
Type |
Default |
Required |
Description |
|---|---|---|---|---|
|
|
yes |
The operation to issue to the balancer. This action must be called on the leader unit. ‘full’ - runs a full rebalance of all partitions across the whole cluster ‘add’ - evenly distributes replicas to new and available brokers ‘remove’ - moves under-replicated partition replicas assigned to decommissioned brokers, to available ones |
|
|
|
true |
Only generate the partition rebalance proposals and estimated result, without executing |
|
|
|
Broker ID newly added to the cluster or to be removed. The broker ID is the unit number, e.g. kafka/0 is broker 0. |
modeconstraints:Allowed values:
full,add,remove
brokeridconstraints:Minimum:
0
pre-refresh-check¶
Check if charm is ready to refresh
No additional parameters are accepted.
force-refresh-start¶
Potential of data loss and downtime
Force refresh of first unit
Must run with at least one of the parameters =false
Parameters¶
Name |
Type |
Default |
Required |
Description |
|---|---|---|---|---|
|
|
true |
Potential of data loss and downtime If |
|
|
|
true |
Potential of data loss and downtime If |
|
|
|
true |
Potential of data loss and downtime during and after refresh If |
No additional parameters are accepted.
resume-refresh¶
Refresh next unit(s) (after you have manually verified that refreshed units are healthy)
If the pause-after-unit-refresh config is set to all, this action will refresh the next unit.
If pause-after-unit-refresh is set to first, this action will refresh all remaining units. Exception: if automatic health checks fail after a unit has refreshed, the refresh will pause.
If pause-after-unit-refresh is set to none, this action will have no effect unless it is called with check-health-of-refreshed-units as false.
Parameters¶
Name |
Type |
Default |
Required |
Description |
|---|---|---|---|---|
|
|
true |
Potential of data loss and downtime If |
No additional parameters are accepted.
This page is generated at build time from machine/actions.yaml.