Skip to content
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

Update mariadb-galera.yaml #220

Merged
merged 2 commits into from
Apr 11, 2024
Merged

Update mariadb-galera.yaml #220

merged 2 commits into from
Apr 11, 2024

Conversation

aedan
Copy link
Collaborator

@aedan aedan commented Apr 8, 2024

This forces the masters to be in sync for updated, deletes. This helps to prevent deadlocks as well

This forces the masters to be in sync for updated, deletes
@BjoernT
Copy link
Collaborator

BjoernT commented Apr 8, 2024

I don't think it will help with dead locks, in contrary it might introduce them especially on heavy inserts/updates.

During the check, the node blocks new queries while the database server catches up with all updates made in the cluster to the point where the check was begun.

Let's track the metrics such as Innodb_deadlocks and Table_locks_waited and Innodb_row_lock_waits to see how those parameters change the outcome of locking.

@aedan
Copy link
Collaborator Author

aedan commented Apr 8, 2024

Well in testing. It definitely did help. I think the problem is that the errors are not actually dead locks. They are being reported as suck from openstack, but the problem is that a commit to the database is happening and then for whatever reason the connection is dropping. Then when it is reconnected. It tries the transaction again and it is already there. So the DB sync fails and will not complete. Is this the end all fix? No, but it does appear to help it out.

@aedan
Copy link
Collaborator Author

aedan commented Apr 11, 2024

Ok. This final commit contains the changes that cloudnull and I discussed. I have tested it and have not seen any deadlocks or DB issues.

@aedan aedan merged commit 44889f0 into main Apr 11, 2024
5 checks passed
@aedan aedan deleted the aedan-patch-1 branch April 11, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants