From 9ffe8a74d34b9e64792a0b36a83288c686e7083b Mon Sep 17 00:00:00 2001 From: jihanyu <1136733867@qq.com> Date: Thu, 2 Feb 2023 16:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DDSS=E6=B2=A1=E6=9C=89debug?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/gs_guc/cluster_guc.conf | 3 +++ .../backend/utils/misc/postgresql_single.conf.sample | 3 +++ src/gausskernel/process/postmaster/postmaster.cpp | 7 ++++--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/bin/gs_guc/cluster_guc.conf b/src/bin/gs_guc/cluster_guc.conf index d00bad61d..e38b76300 100755 --- a/src/bin/gs_guc/cluster_guc.conf +++ b/src/bin/gs_guc/cluster_guc.conf @@ -711,6 +711,9 @@ ss_interconnect_channel_count|int|1,32|NULL|NULL| ss_work_thread_count|int|16,128|NULL|NULL| ss_recv_msg_pool_size|int|1024,1048576|kB|NULL| ss_interconnect_type|string|0,0|NULL|NULL| +ss_log_level|int|0,887|NULL|NULL| +ss_log_backup_file_count|int|0,128|NULL|NULL| +ss_log_max_file_size|int|1024,4194304|kB|NULL| ss_instance_id|int|0,63|NULL|NULL| ss_interconnect_url|string|0,0|NULL|NULL| ss_rdma_work_config|string|0,0|NULL|NULL| diff --git a/src/common/backend/utils/misc/postgresql_single.conf.sample b/src/common/backend/utils/misc/postgresql_single.conf.sample index fba8f3c45..6a93a9e0b 100644 --- a/src/common/backend/utils/misc/postgresql_single.conf.sample +++ b/src/common/backend/utils/misc/postgresql_single.conf.sample @@ -835,3 +835,6 @@ job_queue_processes = 10 # Number of concurrent jobs, optional: [0..1000] #ss_scrlock_worker_count = 2 #ss_scrlock_worker_bind_core = '' #ss_scrlock_server_bind_core = '' +#ss_log_level = 7 +#ss_log_backup_file_count = 10 +#ss_log_max_file_size = 10MB diff --git a/src/gausskernel/process/postmaster/postmaster.cpp b/src/gausskernel/process/postmaster/postmaster.cpp index 60cb40ac5..86fba0b24 100644 --- a/src/gausskernel/process/postmaster/postmaster.cpp +++ b/src/gausskernel/process/postmaster/postmaster.cpp @@ -2454,6 +2454,9 @@ int PostmasterMain(int argc, char* argv[]) * the saved backend variables will be restored in * DCF call back thread share memory init function. */ + if (ENABLE_DSS) { + DSSInitLogger(); + } if (g_instance.attr.attr_storage.dcf_attr.enable_dcf || g_instance.attr.attr_storage.dms_attr.enable_dms) { int ss_rc = memset_s(&port, sizeof(port), 0, sizeof(port)); securec_check(ss_rc, "\0", "\0"); @@ -2467,9 +2470,7 @@ int PostmasterMain(int argc, char* argv[]) } } - if (ENABLE_DSS) { - DSSInitLogger(); - } + /* * We're ready to rock and roll...