Skip to content

Commit

Permalink
[CE-477] Kafka pods cannot be started successfully
Browse files Browse the repository at this point in the history
Kafka pods cannot be started successfully(sometimes).
The kafka pods cannot connect to zookeepers  with timeout of
 6000 ms, therefore, set zookeeper.connection.timeout.ms = 36000.

Change-Id: I9c236b82d4dc98435918e8b16afec7f0b20fd870
Signed-off-by: luckydogchina <wangzhipengxlj@163.com>
  • Loading branch information
luckydogchina committed Sep 11, 2018
1 parent d956c29 commit 339cf7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/agent/k8s/templates/orderer0.ordererorg-kafka.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ spec:
value: "3"
- name: KAFKA_ZOOKEEPER_CONNECT
value: "zookeeper0:2181,zookeeper1:2181,zookeeper2:2181"
- name: KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS
value: "36000"
- name: KAFKA_ADVERTISED_HOST_NAME
value: "kafka0"
ports:
Expand Down Expand Up @@ -146,6 +148,8 @@ spec:
value: "3"
- name: KAFKA_ZOOKEEPER_CONNECT
value: "zookeeper0:2181,zookeeper1:2181,zookeeper2:2181"
- name: KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS
value: "36000"
- name: KAFKA_ADVERTISED_HOST_NAME
value: "kafka1"
ports:
Expand Down Expand Up @@ -186,6 +190,8 @@ spec:
value: "3"
- name: KAFKA_ZOOKEEPER_CONNECT
value: "zookeeper0:2181,zookeeper1:2181,zookeeper2:2181"
- name: KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS
value: "36000"
- name: KAFKA_ADVERTISED_HOST_NAME
value: "kafka2"
ports:
Expand Down

0 comments on commit 339cf7f

Please sign in to comment.