This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alert when PG shared_buffers is smaller than open chunks
- Loading branch information
1 parent
3b9edc6
commit 19d8e3e
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# PromscalePostgreSQLSharedBuffersLow | ||
|
||
## Meaning | ||
|
||
Open chunks (the chunks where data is current written into) can't fit into | ||
PostgreSQL shared buffers. Total size is calculated by summing up all chunk | ||
relations and indexes sizes. | ||
|
||
## Impact | ||
|
||
Database performance will be affected, especially the ingest speed. The effect | ||
will be less if you are running PostgreSQL on fast local disk. | ||
|
||
## Mitigation | ||
|
||
Increase percentage of PostgreSQL memory allocated to shared buffers. | ||
If you have already allocated huge percentage of memory to shared buffers (eg 75%) | ||
you should consider increasing database memory. | ||
`shared_buffers` can be set through `postgresql.conf`. | ||
To make sure that your new setting is applied you can run: | ||
`SELECT * FROM pg_settings WHERE name = 'shared_buffers';` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters