Replies: 2 comments 1 reply
-
When using an operator, you should never patch any of the resources managed by the operator. You should also configure the things such as resources in the custom resources provided by the operator. For Strimzi based Kafka and ZooKeeper, you can do it in the |
Beta Was this translation helpful? Give feedback.
-
Morning, if the docs made this clear, I probably wouldn't be asking. https://strimzi.io/docs/operators/in-development/deploying#config-resources-str By default, the Strimzi Cluster Operator does not specify CPU and memory resource requests and limits for its deployed operands. Ensuring an adequate allocation of resources is crucial for maintaining stability and achieving optimal performance in Kafka. The ideal resource allocation depends on your specific requirements and use cases. It is recommended to configure CPU and memory resources for each container by setting appropriate requests and limits. so skip to that section, where we find a reasonable resource example in section 2.5 My question remains, but it should perhaps be, "how do I edit existing resources using kubectl ? " Just edit down my existing config, add a resource section for cpu and memory, and apply ? Thanks |
Beta Was this translation helpful? Give feedback.
-
Morning,
Simple question. After a heavy production run was scheduled, both our clickhouse and kafka ZK clusters became somewhat overwhelmed, and entered a continuous cycle of crashloopbackoff, due to the failure of healthchecks. As the clickhouse cluster has a statefulset definition, I've been able to increase cpu resource by patching the statefulset, and some sort of stability has returned.
Checking the pod logs showed there was an issue talking to kafka, and it appears its ZK component has similar issue. I hoped to be able to just repeat the patch procedure, but unless I'm mistaken, there is no statefuleset to edit.
I believe our kafka cluster was created via applying an appropriate yaml file with the strimzi operater running. It has a small zookeeper section covering the number of replicas, logging, metricsConfig and an edited storage section pointing to a 5GB pvc.
Is this where I need to add a resource section, or can it be applied as a seperate yaml file ? All I need is a quick explanation, a basic example file and the where to apply, if it isn't just kubectl apply -f zk-kafka-resource.yaml, for instance.
kind regards,
Mike
Beta Was this translation helpful? Give feedback.
All reactions