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

set max_locks_per_transaction to 2160 #34

Merged
merged 1 commit into from
Jun 28, 2024

Commits on Jun 26, 2024

  1. set max_locks_per_transaction to 2160

    We are using partitions in our postgres DBs. And we have one
    partition per hour (24 partitions per day.)
    
    The default max_locks_per_transaction value (64) can cause
    "our of memory" and block issues in the DB because we use to
    have more than 64 partitions.
    
    With 2160 we aim to avoid that issue for 90 days (2160 == 90*24.)
    if we consider a time retention policy of 90 days. Nevertheless,
    we usually have time retention policy of 30 days in our Status fleets,
    but we are just adding some extra margin.
    Ivansete-status committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    062cb6d View commit details
    Browse the repository at this point in the history