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

Merged
merged 3 commits into from
May 28, 2024

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.

Copy link
Contributor Author

@gherceg gherceg May 27, 2024

Choose a reason for hiding this comment

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

Nope was just useful for debugging. I removed the two tasks that are no longer needed. 9202b99

@gherceg gherceg merged commit 8941421 into master May 28, 2024
2 checks passed
@gherceg gherceg deleted the gh/synclog/remove-pg-repack branch May 28, 2024 15:52
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

3 participants