A container that, through the kafka connect API, checks the state of the connectors and tasks, if necessary, restarts it.
It ignore
PAUSEDconnector so it don't restart failed task ofPAUSEDconnectors.
Supports work in two modes:
- cron job
- sidecar
You can pull image from registries:
ghcr.io/sentoz/kafka-connect-restart:0.8.1docker.io/sentoz/kafka-connect-restart:0.8.1
Required dependencies:
- jq - Command-line JSON processor
- curl - Used to check status connectors in kafka connect api
KAFKA_CONNECT_HOST=localhost
KAFKA_CONNECT_PORT=8083
KAFKA_CONNECT_PROTO=http
KAFKA_CONNECT_USER=''
KAFKA_CONNECT_PASS=''
REQUEST_DELAY=30
SIDECAR_MODE=falseSet values for
KAFKA_CONNECT_USERandKAFKA_CONNECT_PASSonly if Kafka Connect cluster need basic authentication otherwise don't set them.
To contribute to kafka-connect-restart, refer to Contributing(Ru).