Topics mirrored by MirrorMaker2 are replicated with much larger size #7486
Replies: 2 comments 1 reply
-
I have no clue, sorry. I'm not an MM2 expert and I also don't know the settings on the clusters. I think you need to compare the folders and the topic configurations and check what differs. |
Beta Was this translation helpful? Give feedback.
-
@scholzj I have checked the config and they're similar in both clusters I actually did many test cases but most important are these two:
I just need to know if that behaviour is expected when using MirrorMaker2 with different Kafka versions ? Here is the configNew cluster config kafkaCluster:
version: 3.2.0
interBrokerProtocolVersion: "3.2"
kafka:
replicas: 3
template:
pod:
metadata:
annotations:
prometheus.io/scrape: true
prometheus.io/path: /metrics
prometheus.io/port: "9404"
listeners:
- name: plain
port: 9092
type: internal
tls: false
- name: tls
port: 9093
type: internal
tls: true
config:
auto.create.topics.enable: false
delete.topic.enable: true
num.io.threads: 8
num.recovery.threads.per.data.dir: 1
unclean.leader.election.enable: false
offsets.topic.replication.factor: 3
transaction.state.log.replication.factor: 3
transaction.state.log.min.isr: 2
default.replication.factor: 3
# set min.insync.replicas to 1, because MirrorMaker is configured with replicaiton factor of 1 (for testing)
min.insync.replicas: 1
storage:
type: jbod
volumes:
- id: 0
type: persistent-claim
size: 500Gi
class: gp2
deleteClaim: false
resources:
requests:
cpu: 1
memory: 8Gi
limits:
cpu: 2
memory: 20Gi
jvmOptions:
-Xms: 4G
-Xmx: 4G
zookeeper:
replicas: 3
template:
# We need to add Prometheus annotations, so that we can auto discover the Pod metrics by Prometheus (if needed)
pod:
metadata:
annotations:
prometheus.io/scrape: true
prometheus.io/path: /metrics
prometheus.io/port: "9404"
storage:
type: persistent-claim
size: 200Gi
class: gp2
deleteClaim: false
resources:
requests:
cpu: 1
memory: 1Gi
limits:
cpu: 2
memory: 2Gi
entityOperator:
topicOperator:
resources:
requests:
cpu: 200m
memory: 256Mi
limits:
cpu: 1
memory: 256Mi
userOperator:
resources:
requests:
cpu: 200m
memory: 512Mi
limits:
cpu: 1
memory: 512Mi
kafkaExporter:
template:
# We need to add Prometheus annotations, so that we can auto discover the Pod metrics by Prometheus (if needed)
pod:
metadata:
annotations:
prometheus.io/scrape: true
prometheus.io/path: /metrics
prometheus.io/port: tcp-prometheus
resources:
requests:
cpu: 200m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
broker config for both clusters source cluster: 2.8-config.txt |
Beta Was this translation helpful? Give feedback.
-
In my case I'm replicating topics from an old cluster (confluent) to a new cluster (strimzi) with MirrorMaker2
I got "No space left on device" error on the new cluster, and as part of investigation I found that some of the replicated topics are replicated with much larger size
Example:
# du -h /opt/kafka/data-0/logs/ | grep el-server-temp 11G /opt/kafka/data-0/logs/el-server-temp-0
# du -h /var/lib/kafka/data-0/kafka-log1 | grep el-server-temp 89G /var/lib/kafka/data-0/kafka-log1/el-server-temp-0
MirrorMaker2 logs
@scholzj Thanks to let me know if there is something wrong in my configurations
Beta Was this translation helpful? Give feedback.
All reactions