CCDAK · Question #125
You are running a Kafka Streams application in a Docker container managed by Kubernetes, and upon application restart, it takes a long time for the docker container to replicate the state and get…
The correct answer is A. How can you improve dramatically the application restart? Although any Kafka Streams application is stateless as the state is stored in Kafka, it can take a while and lots of resources to recover the state from Kafka. In order to speed up recovery, it is advised to store the Kafka Streams state on a persistent volume, so that only the…
Question
You are running a Kafka Streams application in a Docker container managed by Kubernetes, and upon application restart, it takes a long time for the docker container to replicate the state and get back to processing the dat
Options
- AHow can you improve dramatically the application restart?
- BMount a persistent volume for your RocksDB
- CIncrease the number of partitions in your inputs topic
- DReduce the Streams caching property
- EIncrease the number of Streams threads
How the community answered
(24 responses)- A75% (18)
- B8% (2)
- C4% (1)
- D13% (3)
Explanation
Although any Kafka Streams application is stateless as the state is stored in Kafka, it can take a while and lots of resources to recover the state from Kafka. In order to speed up recovery, it is advised to store the Kafka Streams state on a persistent volume, so that only the missing part of the state needs to be recovered.
Topics
Community Discussion
No community discussion yet for this question.