-
Notifications
You must be signed in to change notification settings - Fork 242
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
kine always cause 1032 error in mysql slave mode #117
Comments
Kine doesn't support operating against a read-only replica. All servers should connect to a replica that is writable. |
hi @brandond , we use kine to connect the mysql master node, the slave is only used for backup, we only set the master ip to k3s. current architecture: k3s -connect-> mysql-01(master) -replica-> mysql-02(slave). k3s still works well but mysql-02 slave status is stopped. |
Have you raised the auto_increment_increment on the master? See #71 (comment) Other than that I can't think of anything. We just use standard SQL to interact with the database. Do you maybe need to adjust some of the binlog sizes or something? We don't have any specific guides for setting this up; kine is frequently used against AWS RDS and it works fine without any extra tuning. |
no, we only use one master & one slave. we will continue to pay attention to this issue. we also use RDS and other cloud platform Native MySQL, all of them works fine. |
Has anyone given any thought for r/w splitting in kine? For example, to be able to utilize replicas for read ops while committing against the primary for all writes? Wondering if this would be acceptable at all to attempt this or if there's a technical reason to not support it? |
The golang SQL bindings don't support this last time I checked, so we would have to do our own management of separate connection pools. Not worth it as far as I can tell. |
Makes sense. Would you be open to a more higher level solution like ent? As a abstraction across the sql drivers. Or additional code to support multiple DSNs? |
Dear all, Recently, we have been working on some database recovery tasks and we have noticed that the same issue keeps recurring. mysql version: 5.7.36-log
So, I check the binlog position:
|
Dear all,
recently we found when we work k3s with mysql replica mode. the kine always show errors like this:
currently we use
skip-slave-errors
argument to skip this error, but we want know what happend and how to aviod this problem.The text was updated successfully, but these errors were encountered: