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 ed07f08ea62feca91adb5ee3620619936799529f..8a2838280ffff188938ed21d15013258b9d968d3 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 ed07f08ea62feca91adb5ee3620619936799529f..f38819a5784d1049a560be6157d27ba4b0c27585 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 ed07f08ea62feca91adb5ee3620619936799529f..8a2838280ffff188938ed21d15013258b9d968d3 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 8a2838280ffff188938ed21d15013258b9d968d3..636b1b5cbd1b2db117efc3258b05eccaa5e36c12 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 b294c2cca347456a8c956e98af9684a98069492a..76eae70c8b521936c1cab46d9a2ada1d1230942c 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 b294c2cca347456a8c956e98af9684a98069492a..76eae70c8b521936c1cab46d9a2ada1d1230942c 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 b294c2cca347456a8c956e98af9684a98069492a..76eae70c8b521936c1cab46d9a2ada1d1230942c 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 76eae70c8b521936c1cab46d9a2ada1d1230942c..ad904715166cfd949eb08a6b7bc25fb9d99c07f7 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'"