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

Add playbook to cleanup pg_repack on pgbouncer_a6 #6278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gherceg
Copy link
Contributor

@gherceg gherceg commented Apr 30, 2024

https://dimagi.atlassian.net/browse/SAAS-15320

I don't have plans to merge this PR, but wanted to get it reviewed before running. As Danny noted here, we don't actually need to have pg_repack running on this database anymore since the entire point of partitioning this db is to make it easy to drop tables. The current working theory is that pg_repack runs are changing the table ownership to root, and making it impossible for our periodic celery task to drop these tables. After running this to disable pg_repack, we should be able to change the table ownership manually and have the celery task successfully drop tables again.

Environments Affected

Production

Comment on lines +22 to +25
- name: Display if pg_repack cron exists
debug:
msg: "pg_repack cron is configured"
when: pg_repack_cron.stat.exists == True
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Is this task necessary? The next Remove pg_repack cron file task should tell you if it existed by its "changed" state.

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