dbbench icon indicating copy to clipboard operation
dbbench copied to clipboard

Connection issues with DBs inside Docker on Linux

Open sj14 opened this issue 5 years ago • 1 comments

After enough iteration, the connection gets unintentionally closed. Might be a Docker bug on Linux.

MySQL and MariaDB

[mysql] 2018/12/16 14:33:08 packets.go:36: unexpected EOF
2018/12/16 14:33:08 INSERT INTO dbbench.simple (id, balance) VALUES( 9458, 3611810842); failed: driver: bad connection

PostgreSQL

2018/12/16 13:53:19 DELETE FROM dbbench.simple WHERE id = 56669; failed: read tcp 127.0.0.1:42836->127.0.0.1:5432: read: connection reset by peer

sj14 avatar Dec 22 '18 15:12 sj14

I'm facing similar issues when increasing the iteration number. Encountering issues on both on our k3s cluster and when running inside docker.

2023/12/10 12:53:13 INSERT INTO dbbench.simple (id, balance) VALUES( 290832, 4782569013); failed: dial tcp <IP>:3306: connect: cannot assign requested address

boedy avatar Dec 10 '23 12:12 boedy