Skip to content

DB connection is interrupted with multiple management servers #10471

Answered by Luskan777
Luskan777 asked this question in Q&A
Discussion options

You must be logged in to vote

@weizhouapache and @DaanHoogland , it seems that the problem is in my HAproxy configuration. Since it is a MariaDB Galera, I use HAproxy to do load balancing between the database servers, which is common when using MariaDB Galera. It seems that HAproxy was closing the connections unexpectedly, which is why the MariaDB logs recorded the error (Got an error reading communication packets).
So, to solve the problem, I changed some HAproxy configuration parameters, such as maxconn and timeout.
In case someone else has the same problem one day, I will leave my current HAproxy configuration below.

global
    log /dev/log local0
    daemon

defaults
    log global
    mode tcp
    timeout client …

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@weizhouapache
Comment options

@Luskan777
Comment options

@weizhouapache
Comment options

@Luskan777
Comment options

Answer selected by DaanHoogland
@DaanHoogland
Comment options

@weizhouapache
Comment options

@Luskan777
Comment options

@weizhouapache
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #10469 on February 26, 2025 15:02.