-
Hello, I would like to deploy a Kafka cluster on my Kubernetes (K8s) cluster. This K8s cluster has 3 storage classes for geo-redundancy. I have created 3 KafkaNodePools and specified the storage class names for each. Each node pool has created 3 brokers. To achieve high availability (HA) for the topics, I would like to ask if it is possible to specify replicas to be placed on brokers with different storage classes when creating a topic. Here is my YAML configuration:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
For that, you should use the rack awareness feature. Check the docs for more details. If you have already a running cluster, you should also use Cruise Control to redistribute any existing topics. On a side note, 9 controller nodes are probably not a good idea. You should likely have only 3 controller nodes and 9 brokers, or 3 mixed nodes and 6 broker only nodes or something like that. |
Beta Was this translation helpful? Give feedback.
For that, you should use the rack awareness feature. Check the docs for more details. If you have already a running cluster, you should also use Cruise Control to redistribute any existing topics.
On a side note, 9 controller nodes are probably not a good idea. You should likely have only 3 controller nodes and 9 brokers, or 3 mixed nodes and 6 broker only nodes or something like that.