我想把max.request.size给Kafka在库伯内茨,好像不行。怎么做?
我也试过了 KAFKA_MAX_REQUEST_SIZE
同样没有正面结果:
spec:
containers:
- name: kafka
image: wurstmeister/kafka
...
env:
- name: KAFKA_ZOOKEEPER_CONNECT
value: "zookeeper:2181"
- name: KAFKA_ADVERTISED_PORT
value: "9092"
- name: KAFKA_DELETE_TOPIC_ENABLE
value: "true"
- name: KAFKA_CREATE_TOPICS
value: "tpinput:1:1,tpoutput:1:1,operinput:1:1,operoutput:1:1,authoutput:1:1"
- name: KAFKA_JMX_PORT
value: "7071"
- name: KAFKA_ZOOKEEPER_TIMEOUT_MS
value: "16000"
- name: KAFKA_MESSAGE_MAX_BYTES
value: "209715200"
- name: KAFKA_FETCH_MESSAGE_MAX_BYTES
value: "209715200"
- name: KAFKA_REPLICA_FETCH_MAX_BYTES
value: "209715200"
- name: KAFKA_PRODUCER_MAX_REQUEST_SIZE
value: "9651322321"
- name: KAFKA_ADVERTISED_HOST_NAME
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: KUBE_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
imagePullPolicy: Always
restartPolicy: Always
envFrom:
- configMapRef:
name: env-config-for-pods
1条答案
按热度按时间k10s72fa1#
基于此处的docker入口点脚本和该文件中的此部分:
kubectl exec -it -c sh