New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pool cluster connections do not recover after database comes back online #138
Comments
What is the intended purpose of |
The option Default value of 5 was initially for compatibility with mysql/mysql2 connectors. (see PoolCluster options) I would think that the default value of Infinity would be a lot better (nodes with an error are just blacklisted without being remove at all) |
@mafischer have you tested setting it to Infinity? We're encountering the same issue, but I completely missed the "infinity" option in the documentation. We're going to test this out. |
As sayed in previous messages, the current option When a node doesn't respond, it is already blacklisted for some time, a better solution for new 3.x version is to have Infinity as default, and document that difference with other driver. Driver must have sane default behavior and removing nodes without explicit instruction isn't. |
the mariadb connector is used to connect to a galera cluster via the pool cluster api. the pool cluster is configured as follows:
each node in the pool cluster is configured as follows:
After some brief database disruption event (i.e. galera cluster is offline for 5 minutes), the pool cluster is not able to recover connections until after an application restart, despite the galera cluster coming back online and returning to normal function.
In the pool cluster configuration, I have attempted many different values for
removeNodeErrorCount
includingnull
, I do not see a change in behavior.The text was updated successfully, but these errors were encountered: