Background
A customer reported longer the expected fetch times and frequent Postgres timeouts. With a server configuration of 256 GB RAM and 32 CPU cores, the daily fetch rate was expected to be well above 100,000, but was less than 70.000. This led to us to change the Postgres memory usage configuration.
Config Changes
Four parameters were changed in the configuration:
...
show all
to display simple view with human readable valueselect * from pg_settings
to display more complex view with additional columns and information
Results
As a result of the changes that were made, we noticed a positive change in server performance. The daily document fetch rate went above 100,000 and there were no more Postgres timeouts being reported. The values set above were based on recommended values while at the same time also taking into consideration that Postgres was not running on a dedicated server.