– title: Configuring EDB Postgres Tuner navTitle: Configuring —
To run EDB Postgres Tuner, you need to add it to the
shared_preload_libraries and create the extension in the database.
EDB Postgres Tuner can then gather metrics to make tuning
recommendations.
In the
postgresql.conffile, addedb_pg_tunerto theshared_preload_librariesparameter:
shared_preload_libraries = edb_pg_tuner
Note
If shared_preload_libraries has other extensions, then you can add edb_pg_tuner to the list. The order doesn’t matter. !!!
Restart Postgres.
Create the EDB Postgres Tuner extension in your database with the following command:
CREATE EXTENSION edb_pg_tuner;
Parameters¶
The following custom GUCs control the EDB Postgres Tuner extension behavior. If you modify these parameters, then reload Postgres to apply the changes.
edb_pg_tuner.autotune— Applies tuning recommendations automatically. The default isfalse.edb_pg_tuner.naptime— Sets the interval between each check in seconds. The default is 600 seconds (10 minutes).edb_pg_tuner.max_wal_size_limit— Sets the maximum value for themax_wal_sizerecommendation. The default is0, which sets no limit.