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 Platform 2x.x
You can change the default maximum # of instances as below:
STEP # 1: Increasing the # of partitions
STEP # 2: Increasing the # of AXA Transformer instances
STEP # 3: Scale up other components (User Processor, Indexer, Kibana Indexer and NG-Aggregator) to keep overall health/controlled lag across all queues .
STEP # 4: (Optional) Apply 21.3.1 HF3 that solve defect " Parallelism in DXC and AXA Decryptor' : Upgrade 21.3.1.HF1 to 21.3.1.HF3
STEP # 1: Increase the # of partitions
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
STEP # 2: Increase the # of AXA Transformer instances:
kubectl scale --replicas=<REPLICAS #> deployment axaservices-transformer -n <namespace>
For example:
kubectl scale --replicas=8 deployment axaservices-transformer -ndxi
STEP # 3: Scale up other components (User Processor, Indexer, Kibana Indexer and NG-Aggregator) to keep overall health/controlled lag across all queues
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