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

shared buffers calculation #51

Open
3 tasks
zadykian opened this issue Jun 9, 2021 · 0 comments
Open
3 tasks

shared buffers calculation #51

zadykian opened this issue Jun 9, 2021 · 0 comments
Assignees
Labels
feature New functionality

Comments

@zadykian
Copy link
Owner

zadykian commented Jun 9, 2021

Improve current implementation of shared_buffers value calculation

the concept is:

  • check if pg_stat_statements is installed. if not, use default formula
  • implement job (inherited from JobBase) to log statistic values from pg_stat_statements view
    calculate value {shared_blks_hit / shared_blks_read} for each statement and get average
  • use retrieved average during calculation:
    if cache is relatively (?) low and shared_buffers doesn't occupy more then 30% (?) of total server RAM, suggest higher value
@zadykian zadykian self-assigned this Jun 9, 2021
@zadykian zadykian added the feature New functionality label Jun 9, 2021
@zadykian zadykian changed the title feature/shared-buffers-calculation shared buffers calculation Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality
Projects
None yet
Development

No branches or pull requests

1 participant