From a3a68b9e1ebecd506ac2099de94b9805b23107cb Mon Sep 17 00:00:00 2001 From: Rub21 Date: Tue, 23 Jul 2024 11:31:36 -0500 Subject: [PATCH] Pg logs production and staging --- values.production.template.yaml | 8 +++++--- values.staging.template.yaml | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/values.production.template.yaml b/values.production.template.yaml index b12f0b1e..53e9cf76 100644 --- a/values.production.template.yaml +++ b/values.production.template.yaml @@ -95,12 +95,12 @@ osm-seed: min_wal_size = 512MB random_page_cost = 1.1 effective_cache_size = 20GB - log_min_duration_statement = 10000 + log_min_duration_statement = 3000 log_connections = on log_disconnections = on - log_duration = on + log_duration = off log_lock_waits = on - log_statement = 'all' + log_statement = 'none' log_timezone = 'Etc/UTC' datestyle = 'iso, mdy' timezone = 'Etc/UTC' @@ -117,6 +117,8 @@ osm-seed: parallel_setup_cost = 1000 min_parallel_table_scan_size = 4MB min_parallel_index_scan_size = 512kB + session_preload_libraries = 'auto_explain' + auto_explain.log_min_duration = '3s' # ==================================================================================================== # Variables for osm-seed website # ==================================================================================================== diff --git a/values.staging.template.yaml b/values.staging.template.yaml index 8e9dfe8c..71a4086c 100644 --- a/values.staging.template.yaml +++ b/values.staging.template.yaml @@ -105,12 +105,12 @@ osm-seed: min_wal_size = 80MB random_page_cost = 1.1 effective_cache_size = 6GB - log_min_duration_statement = 10000 + log_min_duration_statement = 3000 log_connections = on log_disconnections = on - log_duration = on + log_duration = off log_lock_waits = on - log_statement = 'all' + log_statement = 'none' log_timezone = 'Etc/UTC' datestyle = 'iso, mdy' timezone = 'Etc/UTC'