Skip to content

Commit 4a49ff3

Browse files
committed
Seeing occasinal connection on zookeeper on GKE e2-small instances.
and I'm guessing it could be due to throttling Kafka for example reports: kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING And zookeeper logs include things like: java.io.EOFException at java.base/java.io.DataInputStream.readInt(DataInputStream.java:397) at org.apache.zookeeper.server.quorum.QuorumCnxManager$RecvWorker.run(QuorumCnxManager.java:1206) [2020-03-06 12:35:45,056] WARN Connection broken for id 1, my id = 4, error = (org.apache.zookeeper.server.quorum.QuorumCnxManager) java.net.SocketException: Socket closed at java.base/java.net.SocketInputStream.socketRead0(Native Method) at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115) at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168) at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140) at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252) at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:271) at java.base/java.io.DataInputStream.readInt(DataInputStream.java:392) at org.apache.zookeeper.server.quorum.QuorumCnxManager$RecvWorker.run(QuorumCnxManager.java:1206) I've been able to resolve it twice with this memory limit increase, but of course it could also be that the restart resolves the issue.
1 parent 066477a commit 4a49ff3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zookeeper/50pzoo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ spec:
6363
name: leader-election
6464
resources:
6565
requests:
66-
cpu: 10m
66+
cpu: 30m
6767
memory: 100Mi
6868
limits:
6969
memory: 120Mi

zookeeper/51zoo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ spec:
6565
name: leader-election
6666
resources:
6767
requests:
68-
cpu: 10m
68+
cpu: 30m
6969
memory: 100Mi
7070
limits:
7171
memory: 120Mi

0 commit comments

Comments
 (0)