Skip to content

Commit

Permalink
Update the state diagram
Browse files Browse the repository at this point in the history
Signed-off-by: Gantigmaa Selenge <[email protected]>
  • Loading branch information
tinaselenge committed Jul 19, 2024
1 parent 7cccffb commit 4c035fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 06x-new-kafka-roller.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ When a new reconciliation starts up, a context object is created for each node t
Context about broker states and restart reasons:
- To determine if the node is ready or performing a log recovery, we use the [Broker States](https://github.com/apache/kafka/blob/3.7/metadata/src/main/java/org/apache/kafka/metadata/BrokerState.java) metric emitted by Kafka. KafkaAgent collects and exposes this metric via REST Endpoint. This is what the current KafkaRoller does already, and the new roller will use it the same way.

- If Kafka pod is ready, the restart reasons is checked to determine whether it needs to be restarted The definitions of the possible restart reasons can be found via the following link: [Restart Reasons](https://github.com/strimzi/strimzi-kafka-operator/blob/0.40.0/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/RestartReason.java). This is also what the current KafkaRoller roller does and the new roller will use it the same way.
- If Kafka pod is ready, the restart reasons is checked to determine whether it needs to be restarted. The definitions of the possible restart reasons can be found via the following link: [Restart Reasons](https://github.com/strimzi/strimzi-kafka-operator/blob/0.40.0/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/RestartReason.java). This is also what the current KafkaRoller roller does and the new roller will use it the same way.

#### NOT_RUNNING state

Expand Down Expand Up @@ -231,7 +231,7 @@ The `mixed-3` node has the following context because the operator could not esta
```
nodeRef: mixed-3/3
nodeRoles: controller,broker
state: NOT_RUNNING
state: NOT_READY
lastTransition: 0123456
restartReason: POD_UNRESPONSIVE
numRestartAttempts: 0
Expand All @@ -242,7 +242,7 @@ The `mixed-3` node has the following context because the operator could not esta
```
nodeRef: mixed-3/3
nodeRoles: controller,broker
state: RESTARTED
state: UNKNOWN
lastTransition: 654987
restartReason: POD_UNRESPONSIVE
numRestartAttempts: 1
Expand Down
Binary file modified images/06x-new-roller-flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4c035fa

Please sign in to comment.