kubectl get pods -n<dxi-namespace> | grep kafka
kubectl exec -ti <kafka-pod> sh -n<dxi-namespace>
/opt/ca/kafka/bin/kafka-consumer-groups.sh --bootstrap-server jarvis-kafka:9092,jarvis-kafka-2:9092,jarvis-kafka-3:9092 --describe --group axa.transformer
DX O2 2*
kafka-topics.sh --alter --zookeeper jarvis-zookeeper:2181 --topic <TOPIC NAME> --partitions <PartitionsCount>
Example:
To increase the # partition from max of 5 to 8:
kafka-topics.sh --alter --zookeeper jarvis-zookeeper:2181 --topic maaBAAggregator --partitions 8
IMPORTANT:
1) These commands are not scoped in Product documentation as it is related to open technology Kafka.
2) Recommendation is to have the same number of partition and Replica Sets for the deployment
3) Kafka Partitions are supported to increase each time but not decrease.
Verification:
To verify the change you can describe the topic as below:
kafka-topics.sh --describe --zookeeper jarvis-zookeeper:2181 --topic maaBAAggregator
kubectl scale --replicas=<REPLICAS #> deployment axaservices-transformer -n <namespace>
For example:
kubectl scale --replicas=8 deployment axaservices-transformer -ndxi
kubectl scale --replicas=8 deployment axaservices-transformer -n<namespace>
kubectl scale --replicas=8 deployment axaservices-indexer -n<namespace>
kubectl scale --replicas=8 deployment axaservices-kibana-indexer -n<namespace>
kubectl scale --replicas=8 deployment axaservices-axa-user-processor -n<namespace>
kubectl scale --replicas=4 deployment axaservices-axa-ng-aggregator -n<namespace>
See also: "AXA Transformer" at 400% cpu and App sessions appears but after several hours