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

Increase SQLite busy timeout and reduce the number of SQLite connections #2559

Merged
merged 1 commit into from
Nov 29, 2019

Conversation

kraih
Copy link
Member

@kraih kraih commented Nov 29, 2019

This PR increases the SQLite busy timeout from 30 seconds to 5 minutes. That should give slower operations like Minion queue repairs enough time to finish even on very slow workers. I've also removed the explicit exclusive locks, since we only perform a single query in every case, and those will automatically acquire the lock they need. And finally each process will now only use one SQLite connection.

All of this should be enough to resolve the problems we had with jobs getting stuck and the cache service dying.

Progress: https://progress.opensuse.org/issues/58484

Copy link
Contributor

@Martchus Martchus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The subject line of the commit message is a bit long but it is at least clear what the commit does.

@codecov
Copy link

codecov bot commented Nov 29, 2019

Codecov Report

Merging #2559 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2559      +/-   ##
==========================================
- Coverage   91.48%   91.47%   -0.01%     
==========================================
  Files         181      181              
  Lines       11187    11180       -7     
==========================================
- Hits        10234    10227       -7     
  Misses        953      953
Impacted Files Coverage Δ
lib/OpenQA/CacheService.pm 80% <100%> (+2.85%) ⬆️
lib/OpenQA/CacheService/Model/Cache.pm 93.75% <100%> (-0.41%) ⬇️
lib/OpenQA/CacheService/Task/Asset.pm 90.9% <100%> (-0.4%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c9e9406...61d8d3f. Read the comment docs.

@kraih kraih merged commit ce9ba48 into os-autoinst:master Nov 29, 2019
openqabot pushed a commit to openqabot/openQA that referenced this pull request Nov 30, 2019
commit ce9ba48
Merge: c9e9406 61d8d3f
Author:     Sebastian Riedel <sri@cpan.org>
AuthorDate: Fri Nov 29 17:12:19 2019 +0100
Commit:     GitHub <noreply@github.com>
CommitDate: Fri Nov 29 17:12:19 2019 +0100

    Merge pull request os-autoinst#2559 from kraih/sqlite_locks

    Increase SQLite busy timeout and reduce the number of SQLite connections
@kraih kraih deleted the sqlite_locks branch May 12, 2020 13:19
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.

None yet

2 participants