From 53a289e88eb32b089947266f63a40e2051203ac1 Mon Sep 17 00:00:00 2001 From: yunlongg <504072751@qq.com> Date: Wed, 8 Jun 2022 14:11:49 +0800 Subject: [PATCH] update guc --- .../7-recommended-parameter-settings.md | 8 ++++---- .../7-recommended-parameter-settings.md | 6 +++--- .../7-recommended-parameter-settings.md | 8 ++++---- .../7-recommended-parameter-settings.md | 1 - .../7-recommended-parameter-settings.md | 8 ++++---- .../7-recommended-parameter-settings.md | 8 ++++---- .../7-recommended-parameter-settings.md | 8 ++++---- .../7-recommended-parameter-settings.md | 1 - 8 files changed, 23 insertions(+), 25 deletions(-) diff --git a/product/en/docs-mogdb/v2.0.0/installation-guide/standard-installation/7-recommended-parameter-settings.md b/product/en/docs-mogdb/v2.0.0/installation-guide/standard-installation/7-recommended-parameter-settings.md index ed07f08e..8a283828 100644 --- a/product/en/docs-mogdb/v2.0.0/installation-guide/standard-installation/7-recommended-parameter-settings.md +++ b/product/en/docs-mogdb/v2.0.0/installation-guide/standard-installation/7-recommended-parameter-settings.md @@ -21,7 +21,7 @@ After installing the database, it is recommended to execute the following shell source ~/.bashrc memory=`free|awk '{print $2}' |sed -n 2p` -if [[ $memory -lt 4*1024*1024 ]] +if [[ $memory -le 4*1024*1024 ]] then max_process_memory=2GB shared_buffers=128MB @@ -29,7 +29,7 @@ then work_mem=4MB maintenance_work_mem=256MB echo "If the database fails to start, lower the parameters max_process_memory and shared_buffers" -elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -lt 8*1024*1024 ]] +elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -le 8*1024*1024 ]] then max_process_memory=5GB shared_buffers=1GB @@ -102,7 +102,7 @@ gs_guc set -I all -N all -c "autovacuum_analyze_scale_factor=0.02" gs_guc set -I all -N all -c "autovacuum_vacuum_threshold=200" gs_guc set -I all -N all -c "autovacuum_analyze_threshold=200" gs_guc set -I all -N all -c "autovacuum_io_limits=104857600" -gs_guc set -I all -N all -c "instr_unique_sql_count=20000" +gs_guc set -I all -N all -c "instr_unique_sql_count=200000" gs_guc set -I all -N all -c "enable_save_datachanged_timestamp=off" gs_guc set -I all -N all -c "track_sql_count=off" gs_guc set -I all -N all -c "enable_instr_rt_percentile=off" @@ -114,7 +114,7 @@ gs_guc set -I all -N all -c "enable_nestloop=on" gs_guc set -I all -N all -c "enable_pbe_optimization=off" gs_guc set -I all -N all -c "enable_resource_track=on" gs_guc set -I all -N all -c "enable_wdr_snapshot=on" -gs_guc set -I all -N all -c "instr_unique_sql_count=5000" +gs_guc set -I all -N all -c "log_min_duration_statement=200" ##Client whitelist gs_guc set -I all -N all -h "host all all 0.0.0.0/0 md5" diff --git a/product/en/docs-mogdb/v2.0.1/installation-guide/standard-installation/7-recommended-parameter-settings.md b/product/en/docs-mogdb/v2.0.1/installation-guide/standard-installation/7-recommended-parameter-settings.md index ed07f08e..f38819a5 100644 --- a/product/en/docs-mogdb/v2.0.1/installation-guide/standard-installation/7-recommended-parameter-settings.md +++ b/product/en/docs-mogdb/v2.0.1/installation-guide/standard-installation/7-recommended-parameter-settings.md @@ -21,7 +21,7 @@ After installing the database, it is recommended to execute the following shell source ~/.bashrc memory=`free|awk '{print $2}' |sed -n 2p` -if [[ $memory -lt 4*1024*1024 ]] +if [[ $memory -le 4*1024*1024 ]] then max_process_memory=2GB shared_buffers=128MB @@ -29,7 +29,7 @@ then work_mem=4MB maintenance_work_mem=256MB echo "If the database fails to start, lower the parameters max_process_memory and shared_buffers" -elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -lt 8*1024*1024 ]] +elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -le 8*1024*1024 ]] then max_process_memory=5GB shared_buffers=1GB @@ -102,7 +102,7 @@ gs_guc set -I all -N all -c "autovacuum_analyze_scale_factor=0.02" gs_guc set -I all -N all -c "autovacuum_vacuum_threshold=200" gs_guc set -I all -N all -c "autovacuum_analyze_threshold=200" gs_guc set -I all -N all -c "autovacuum_io_limits=104857600" -gs_guc set -I all -N all -c "instr_unique_sql_count=20000" +gs_guc set -I all -N all -c "instr_unique_sql_count=200000" gs_guc set -I all -N all -c "enable_save_datachanged_timestamp=off" gs_guc set -I all -N all -c "track_sql_count=off" gs_guc set -I all -N all -c "enable_instr_rt_percentile=off" diff --git a/product/en/docs-mogdb/v2.1/installation-guide/standard-installation/7-recommended-parameter-settings.md b/product/en/docs-mogdb/v2.1/installation-guide/standard-installation/7-recommended-parameter-settings.md index ed07f08e..8a283828 100644 --- a/product/en/docs-mogdb/v2.1/installation-guide/standard-installation/7-recommended-parameter-settings.md +++ b/product/en/docs-mogdb/v2.1/installation-guide/standard-installation/7-recommended-parameter-settings.md @@ -21,7 +21,7 @@ After installing the database, it is recommended to execute the following shell source ~/.bashrc memory=`free|awk '{print $2}' |sed -n 2p` -if [[ $memory -lt 4*1024*1024 ]] +if [[ $memory -le 4*1024*1024 ]] then max_process_memory=2GB shared_buffers=128MB @@ -29,7 +29,7 @@ then work_mem=4MB maintenance_work_mem=256MB echo "If the database fails to start, lower the parameters max_process_memory and shared_buffers" -elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -lt 8*1024*1024 ]] +elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -le 8*1024*1024 ]] then max_process_memory=5GB shared_buffers=1GB @@ -102,7 +102,7 @@ gs_guc set -I all -N all -c "autovacuum_analyze_scale_factor=0.02" gs_guc set -I all -N all -c "autovacuum_vacuum_threshold=200" gs_guc set -I all -N all -c "autovacuum_analyze_threshold=200" gs_guc set -I all -N all -c "autovacuum_io_limits=104857600" -gs_guc set -I all -N all -c "instr_unique_sql_count=20000" +gs_guc set -I all -N all -c "instr_unique_sql_count=200000" gs_guc set -I all -N all -c "enable_save_datachanged_timestamp=off" gs_guc set -I all -N all -c "track_sql_count=off" gs_guc set -I all -N all -c "enable_instr_rt_percentile=off" @@ -114,7 +114,7 @@ gs_guc set -I all -N all -c "enable_nestloop=on" gs_guc set -I all -N all -c "enable_pbe_optimization=off" gs_guc set -I all -N all -c "enable_resource_track=on" gs_guc set -I all -N all -c "enable_wdr_snapshot=on" -gs_guc set -I all -N all -c "instr_unique_sql_count=5000" +gs_guc set -I all -N all -c "log_min_duration_statement=200" ##Client whitelist gs_guc set -I all -N all -h "host all all 0.0.0.0/0 md5" diff --git a/product/en/docs-mogdb/v3.0/installation-guide/standard-installation/7-recommended-parameter-settings.md b/product/en/docs-mogdb/v3.0/installation-guide/standard-installation/7-recommended-parameter-settings.md index 8a283828..636b1b5c 100644 --- a/product/en/docs-mogdb/v3.0/installation-guide/standard-installation/7-recommended-parameter-settings.md +++ b/product/en/docs-mogdb/v3.0/installation-guide/standard-installation/7-recommended-parameter-settings.md @@ -127,7 +127,6 @@ gs_guc set -I all -N all -c "pagewriter_sleep=200" gs_guc set -I all -N all -c "enable_alarm=off" gs_guc set -I all -N all -c "enable_codegen=off" gs_guc set -I all -N all -c "audit_enabled=off" -gs_guc set -I all -N all -c "enable_asp=off" gs_guc set -I all -N all -c "lc_messages='en_US.UTF-8'" gs_guc set -I all -N all -c "lc_monetary='en_US.UTF-8'" diff --git a/product/zh/docs-mogdb/v2.0.0/installation-guide/standard-installation/7-recommended-parameter-settings.md b/product/zh/docs-mogdb/v2.0.0/installation-guide/standard-installation/7-recommended-parameter-settings.md index b294c2cc..76eae70c 100644 --- a/product/zh/docs-mogdb/v2.0.0/installation-guide/standard-installation/7-recommended-parameter-settings.md +++ b/product/zh/docs-mogdb/v2.0.0/installation-guide/standard-installation/7-recommended-parameter-settings.md @@ -21,7 +21,7 @@ date: 2021-06-24 source ~/.bashrc memory=`free|awk '{print $2}' |sed -n 2p` -if [[ $memory -lt 4*1024*1024 ]] +if [[ $memory -le 4*1024*1024 ]] then max_process_memory=2GB shared_buffers=128MB @@ -29,7 +29,7 @@ then work_mem=4MB maintenance_work_mem=256MB echo "If the database fails to start, lower the parameters max_process_memory and shared_buffers" -elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -lt 8*1024*1024 ]] +elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -le 8*1024*1024 ]] then max_process_memory=5GB shared_buffers=1GB @@ -102,7 +102,7 @@ gs_guc set -I all -N all -c "autovacuum_analyze_scale_factor=0.02" gs_guc set -I all -N all -c "autovacuum_vacuum_threshold=200" gs_guc set -I all -N all -c "autovacuum_analyze_threshold=200" gs_guc set -I all -N all -c "autovacuum_io_limits=104857600" -gs_guc set -I all -N all -c "instr_unique_sql_count=20000" +gs_guc set -I all -N all -c "instr_unique_sql_count=200000" gs_guc set -I all -N all -c "enable_save_datachanged_timestamp=off" gs_guc set -I all -N all -c "track_sql_count=off" gs_guc set -I all -N all -c "enable_instr_rt_percentile=off" @@ -114,7 +114,7 @@ gs_guc set -I all -N all -c "enable_nestloop=on" gs_guc set -I all -N all -c "enable_pbe_optimization=off" gs_guc set -I all -N all -c "enable_resource_track=on" gs_guc set -I all -N all -c "enable_wdr_snapshot=on" -gs_guc set -I all -N all -c "instr_unique_sql_count=5000" +gs_guc set -I all -N all -c "log_min_duration_statement=200" ##客户端白名单 gs_guc set -I all -N all -h "host all all 0.0.0.0/0 md5" diff --git a/product/zh/docs-mogdb/v2.0.1/installation-guide/standard-installation/7-recommended-parameter-settings.md b/product/zh/docs-mogdb/v2.0.1/installation-guide/standard-installation/7-recommended-parameter-settings.md index b294c2cc..76eae70c 100644 --- a/product/zh/docs-mogdb/v2.0.1/installation-guide/standard-installation/7-recommended-parameter-settings.md +++ b/product/zh/docs-mogdb/v2.0.1/installation-guide/standard-installation/7-recommended-parameter-settings.md @@ -21,7 +21,7 @@ date: 2021-06-24 source ~/.bashrc memory=`free|awk '{print $2}' |sed -n 2p` -if [[ $memory -lt 4*1024*1024 ]] +if [[ $memory -le 4*1024*1024 ]] then max_process_memory=2GB shared_buffers=128MB @@ -29,7 +29,7 @@ then work_mem=4MB maintenance_work_mem=256MB echo "If the database fails to start, lower the parameters max_process_memory and shared_buffers" -elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -lt 8*1024*1024 ]] +elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -le 8*1024*1024 ]] then max_process_memory=5GB shared_buffers=1GB @@ -102,7 +102,7 @@ gs_guc set -I all -N all -c "autovacuum_analyze_scale_factor=0.02" gs_guc set -I all -N all -c "autovacuum_vacuum_threshold=200" gs_guc set -I all -N all -c "autovacuum_analyze_threshold=200" gs_guc set -I all -N all -c "autovacuum_io_limits=104857600" -gs_guc set -I all -N all -c "instr_unique_sql_count=20000" +gs_guc set -I all -N all -c "instr_unique_sql_count=200000" gs_guc set -I all -N all -c "enable_save_datachanged_timestamp=off" gs_guc set -I all -N all -c "track_sql_count=off" gs_guc set -I all -N all -c "enable_instr_rt_percentile=off" @@ -114,7 +114,7 @@ gs_guc set -I all -N all -c "enable_nestloop=on" gs_guc set -I all -N all -c "enable_pbe_optimization=off" gs_guc set -I all -N all -c "enable_resource_track=on" gs_guc set -I all -N all -c "enable_wdr_snapshot=on" -gs_guc set -I all -N all -c "instr_unique_sql_count=5000" +gs_guc set -I all -N all -c "log_min_duration_statement=200" ##客户端白名单 gs_guc set -I all -N all -h "host all all 0.0.0.0/0 md5" diff --git a/product/zh/docs-mogdb/v2.1/installation-guide/standard-installation/7-recommended-parameter-settings.md b/product/zh/docs-mogdb/v2.1/installation-guide/standard-installation/7-recommended-parameter-settings.md index b294c2cc..76eae70c 100644 --- a/product/zh/docs-mogdb/v2.1/installation-guide/standard-installation/7-recommended-parameter-settings.md +++ b/product/zh/docs-mogdb/v2.1/installation-guide/standard-installation/7-recommended-parameter-settings.md @@ -21,7 +21,7 @@ date: 2021-06-24 source ~/.bashrc memory=`free|awk '{print $2}' |sed -n 2p` -if [[ $memory -lt 4*1024*1024 ]] +if [[ $memory -le 4*1024*1024 ]] then max_process_memory=2GB shared_buffers=128MB @@ -29,7 +29,7 @@ then work_mem=4MB maintenance_work_mem=256MB echo "If the database fails to start, lower the parameters max_process_memory and shared_buffers" -elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -lt 8*1024*1024 ]] +elif [[ $memory -gt 4*1024*1024 ]] && [[ $memory -le 8*1024*1024 ]] then max_process_memory=5GB shared_buffers=1GB @@ -102,7 +102,7 @@ gs_guc set -I all -N all -c "autovacuum_analyze_scale_factor=0.02" gs_guc set -I all -N all -c "autovacuum_vacuum_threshold=200" gs_guc set -I all -N all -c "autovacuum_analyze_threshold=200" gs_guc set -I all -N all -c "autovacuum_io_limits=104857600" -gs_guc set -I all -N all -c "instr_unique_sql_count=20000" +gs_guc set -I all -N all -c "instr_unique_sql_count=200000" gs_guc set -I all -N all -c "enable_save_datachanged_timestamp=off" gs_guc set -I all -N all -c "track_sql_count=off" gs_guc set -I all -N all -c "enable_instr_rt_percentile=off" @@ -114,7 +114,7 @@ gs_guc set -I all -N all -c "enable_nestloop=on" gs_guc set -I all -N all -c "enable_pbe_optimization=off" gs_guc set -I all -N all -c "enable_resource_track=on" gs_guc set -I all -N all -c "enable_wdr_snapshot=on" -gs_guc set -I all -N all -c "instr_unique_sql_count=5000" +gs_guc set -I all -N all -c "log_min_duration_statement=200" ##客户端白名单 gs_guc set -I all -N all -h "host all all 0.0.0.0/0 md5" diff --git a/product/zh/docs-mogdb/v3.0/installation-guide/standard-installation/7-recommended-parameter-settings.md b/product/zh/docs-mogdb/v3.0/installation-guide/standard-installation/7-recommended-parameter-settings.md index 76eae70c..ad904715 100644 --- a/product/zh/docs-mogdb/v3.0/installation-guide/standard-installation/7-recommended-parameter-settings.md +++ b/product/zh/docs-mogdb/v3.0/installation-guide/standard-installation/7-recommended-parameter-settings.md @@ -127,7 +127,6 @@ gs_guc set -I all -N all -c "pagewriter_sleep=200" gs_guc set -I all -N all -c "enable_alarm=off" gs_guc set -I all -N all -c "enable_codegen=off" gs_guc set -I all -N all -c "audit_enabled=off" -gs_guc set -I all -N all -c "enable_asp=off" gs_guc set -I all -N all -c "lc_messages='en_US.UTF-8'" gs_guc set -I all -N all -c "lc_monetary='en_US.UTF-8'" -- Gitee