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

Maintenance must run VACUUM to avoid long held locks #17713

Merged

Conversation

jrafanie
Copy link
Member

https://bugzilla.redhat.com/show_bug.cgi?id=1601264

It's hard to say which tables may or may not grow too large that we
cannot easily run VACUUM FULL on them as part of maintenance. Therefore
we should do the safest thing possible and run VACUUM for routine
maintenance and leave VACUUM FULL when table bloat becomes a problem.

Some tables, such as vim_performance_states can grow so large that a
VACUUM FULL could lock up the table for many minutes and could fail
to complete during the normal 10 minute queue timeout.

https://bugzilla.redhat.com/show_bug.cgi?id=1601264

It's hard to say which tables may or may not grow too large that we
cannot easily run VACUUM FULL on them as part of maintenance. Therefore
we should do the safest thing possible and run VACUUM for routine
maintenance and leave VACUUM FULL when table bloat becomes a problem.

Some tables, such as vim_performance_states can grow so large that a
VACUUM FULL could lock up the table for many minutes and could fail
to complete during the normal 10 minute queue timeout.
@jrafanie
Copy link
Member Author

@carbonin please review

@miq-bot
Copy link
Member

miq-bot commented Jul 16, 2018

Checked commit jrafanie@8da858f with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 2 offenses detected

spec/lib/extensions/ar_base_spec.rb

@carbonin carbonin merged commit b11ffa9 into ManageIQ:master Jul 16, 2018
@carbonin carbonin self-assigned this Jul 16, 2018
@carbonin carbonin added this to the Sprint 90 Ending Jul 16, 2018 milestone Jul 16, 2018
@jrafanie jrafanie deleted the normal_maintenance_should_do_regular_vacuum branch July 16, 2018 19:49
simaishi pushed a commit that referenced this pull request Sep 11, 2018
…regular_vacuum

Maintenance must run VACUUM to avoid long held locks
(cherry picked from commit b11ffa9)

https://bugzilla.redhat.com/show_bug.cgi?id=1603026
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 6090dbc09e2c75c3ae8a8366ae9098eed8ca8e2b
Author: Nick Carboni <ncarboni@redhat.com>
Date:   Mon Jul 16 15:35:00 2018 -0400

    Merge pull request #17713 from jrafanie/normal_maintenance_should_do_regular_vacuum
    
    Maintenance must run VACUUM to avoid long held locks
    (cherry picked from commit b11ffa9f662d86eee891a1e0b104e103101df98d)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1603026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants