暂无图片
暂无图片
2
暂无图片
暂无图片
暂无图片

磐维数据库信息收集工具(gs_collector)的使用

原创 飞天 2024-03-23
659

磐维数据库,简称"PanWeiDB"。是中国移动信息技术中心首个基于中国本土开源数据库打造的面向ICT基础设施的自研数据库产品。其产品内核能力基于华为openGauss开源软件,并进一步提升了系统稳定性。

一、背景信息

磐维数据库提供了gs_collector工具帮助用户收集信息。当数据库发生故障时,使用此工具收集 OS 信息、日志信息以及配置文件等信息,来定位问题。

二、前提条件

gs_collector工具依赖操作系统工具,例如 gstack 为其中一种,如果未安装该工具,则提示错误后,跳过该收集项。

三、工具语法

gs_collector工具在操作系统的omm用户(数据库安装用户)下使用。

日志收集

gs_collector --begin-time="BEGINTIME" --end-time="ENDTIME" [-h HOSTNAME |
-f HOSTFILE] [--keyword=KEYWORD] [--speed-limit=SPEED] [-o OUTPUT] [-l LO
GFILE] [-C CONFIGFILE]
参数名称 参数含义
–begin-time 日志的开始时间,格式:yyyymmdd hh:mm
–end-time 日志的结束时间,格式:yyyymmdd hh:mm
-h 收集信息的主机名称。
取值范围:主机名称,如果不指定则默认收集所有主机的信息。
-f 主机名称列表文件。该文件为纯文本格式。
【说明】
-f 和-h 参数不能同时使用。
取值范围:主机名称列表。
–keyword 包含关键字 KEYWORD 的日志文件。若关键字 KEYWORD 中含有空格,需要使用双引号包围。
【说明】
性能日志为二进制日志,关键字搜集功能不支持该日志的搜集。
–speed-limit 日志收集时的收集速率,输入格式为非负整数,单位为 MB/s。
该参数主要是为了防止日志收集过程中产生过高的磁盘或网络 IO,导致数据库节点故障(如果它们与$GAUSSLOG/$PGHOST 部署在同一个磁盘上)。该值应当不超过 PanWeiDB 内上述磁盘 IO 与网络 IO 速率的最小值的 1/3。
-o 将收集日志以压缩包形式输出到指定的文件夹。不指定则将检查结果以压缩包形式输出到配置文件中 tmpMppdbPath 选项所指定的目录中。
若配置文件中未配置 tmpMppdbPath 选项,则默认将检查结果以压缩包形式输出到“/tmp/用户名_mppdb/”目录中。
-l 指定的日志文件以及存放路径。
-c 指定待收集内容的配置文件。如果不指定则使用默认的配置文件。

显示帮助信息

gs_collector -? | --help

显示版本号信息

gs_collector -V | --version

四、使用举例

查看版本信息

$ gs_collector -V
gs_collector (openGauss OM 2.0.0 build ) compiled at 2023-11-29 20:33:26 commit 0 last mr

收集某一时间段所有节点信息

$gs_collector --begin-time="20240323 21:00" --end-time="20240323 21:20"
说明:不加-h参数时,收集的是集群中所有节点的信息

收集某一时间段指定节点的信息

$gs_collector --begin-time="20240323 21:00" --end-time="20240323 21:20" -h node2

收集某一时间段信息并输出到指定文件夹

$gs_collector --begin-time="20240323 21:00" --end-time="20240323 21:20" -o /tmp

收集某一时间段信息并输出日志到指定文件

$gs_collector --begin-time="20240323 21:00" --end-time="20240323 21:20" -l /tmp/collect_2024.log

五、示例剖析

[omm@node1 tmp]$ gs_collector --begin-time="20240323 21:00" --end-time="20240323 21:20"
Successfully parsed the configuration file.
create Dir.
Successfully create dir.
do system check interval 0 : count 1
Collecting OS information.
Successfully collected OS information.
do database check interval 0 : count 1
Collecting catalog statistics.
Successfully collected catalog statistics.
do log check interval 0 : count 1
Collecting Log files.
Successfully collected Log files.
do Config check 0:1
Collecting Config files.
Successfully collected Config files.
Collecting files.
Successfully collected files.
All results are stored in /data/panweidb/log/omm/collector_20240323_220957.tar.gz.

解压/data/panweidb/log/omm/collector_20240323_220957.tar.gz文件:

[omm@node1 tmp]$ cd /data/panweidb/log/omm/
[omm@node1 omm]$ ll collector_20240323_220957.tar.gz 
-rw------- 1 omm dbgrp 521309 Mar 23 22:10 collector_20240323_220957.tar.gz
[omm@node1 omm]$ tar -zxvf collector_20240323_220957.tar.gz
collector_20240323_220957/
collector_20240323_220957/node1.tar.gz
collector_20240323_220957/node2.tar.gz
collector_20240323_220957/Summary.log
collector_20240323_220957/Detail.log
  • 查看Summary.log文件:
    Summary.log文件里面显示了本次收集的信息汇总清单。包括操作系统信息、catalog信息、pg_log信息、数据库config文件信息。
[omm@node1 collector_20240323_220957]$ cat Summary.log 
--------------------------------------------------------------------------------
|                                    |                    |                    |
|             TASK NAME              |  SUCCESS HOSTNAME  |  FAILED HOSTNAME   |
|                                    |                    |                    |
--------------------------------------------------------------------------------
|Collecting OS information-1         |       node1        |                    |
|                                    |       node2        |                    |
--------------------------------------------------------------------------------
|Collecting catalog information-1    |       node1        |                    |
|                                    |       node2        |                    |
--------------------------------------------------------------------------------
|Collecting pg_log information-1     |       node1        |                    |
|                                    |       node2        |                    |
--------------------------------------------------------------------------------
|Collecting Config information-1     |       node1        |                    |
|                                    |       node2        |                    |
--------------------------------------------------------------------------------

  • 查看Detail.log文件:
    Detail.log文件里面显示了本次收集的信息明细清单,针对汇总清单中的每一项任务都有明细说明。
[omm@node1 collector_20240323_220957]$ cat Detail.log 
-----------------------------------------------------------------------
|                                                                     |
|             node1 - Collecting OS information - Success             |
|                                                                     |
-----------------------------------------------------------------------
|  SuccessfulTask  |   hostname ; ps ux ; iostat -xm 2 3 ; free -m    |
-----------------------------------------------------------------------



----------------------------------------------------------------------------------------
|                                                                                      |
|                   node1 - Collecting catalog information - Success                   |
|                                                                                      |
----------------------------------------------------------------------------------------
|  SuccessfulTask  |   find views; pg_locks; pg_stat_activity; pg_thread_wait_status   |
----------------------------------------------------------------------------------------



--------------------------------------------------------------------
|                                                                  |
|         node1 - Collecting pg_log information - Success          |
|                                                                  |
--------------------------------------------------------------------
|  SuccessfulTask  |         find log files; copy log files        |
--------------------------------------------------------------------



--------------------------------------------------------------------
|                                                                  |
|         node1 - Collecting Config information - Success          |
|                                                                  |
--------------------------------------------------------------------
|  SuccessfulTask  |           collect Config information          |
--------------------------------------------------------------------



-----------------------------------------------------------------------
|                                                                     |
|             node2 - Collecting OS information - Success             |
|                                                                     |
-----------------------------------------------------------------------
|  SuccessfulTask  |   hostname ; ps ux ; iostat -xm 2 3 ; free -m    |
-----------------------------------------------------------------------



---------------------------------------------------------------------
|                                                                   |
|          node2 - Collecting catalog information - Success         |
|                                                                   |
---------------------------------------------------------------------



--------------------------------------------------------------------
|                                                                  |
|         node2 - Collecting pg_log information - Success          |
|                                                                  |
--------------------------------------------------------------------
|  SuccessfulTask  |         find log files; copy log files        |
--------------------------------------------------------------------



--------------------------------------------------------------------
|                                                                  |
|         node2 - Collecting Config information - Success          |
|                                                                  |
--------------------------------------------------------------------
|  SuccessfulTask  |           collect Config information          |
--------------------------------------------------------------------

继续解压node1.tar.gz文件:

  • node1.tar.gz文件包含了收集到的集群node1节点的所有信息。包括操作系统信息、数据库信息、锁信息、会话信息、xlog、config文件、复制槽等信息。
[omm@node1 collector_20240323_220957]$ tar -zxvf node1.tar.gz 
node1/
node1/systemfiles/
node1/systemfiles/OS_information_20240323_220958234772.txt
node1/systemfiles/database_system_info_20240323_221002267046.txt
node1/catalogfiles/
node1/catalogfiles/dn_6001_pg_locks_20240323_221004717936.csv
node1/catalogfiles/dn_6001_pg_stat_activity_20240323_221004793727.csv
node1/catalogfiles/dn_6001_pg_thread_wait_status_20240323_221004873413.csv
node1/catalogfiles/gs_clean_20240323_221004968332.txt
node1/xlogfiles/
node1/gstackfiles/
node1/coreDumpfiles/
node1/planSimulatorfiles/
node1/logfiles/
node1/logfiles/log_20240323_221005797265.tar.gz
node1/configfiles/
node1/configfiles/config_20240323_221006791549/
node1/configfiles/config_20240323_221006791549/dn_6001/
node1/configfiles/config_20240323_221006791549/dn_6001/postgresql.conf
node1/configfiles/config_20240323_221006791549/dn_6001/pg_hba.conf
node1/configfiles/config_20240323_221006791549/dn_6001/gaussdb.state
node1/configfiles/config_20240323_221006791549/dn_6001/pg_replslot/
node1/configfiles/config_20240323_221006791549/dn_6001/pg_replslot/dn_6002/
node1/configfiles/config_20240323_221006791549/dn_6001/pg_replslot/dn_6002/state.backup
node1/configfiles/config_20240323_221006791549/dn_6001/pg_replslot/dn_6002/state
node1/configfiles/config_20240323_221006791549/dn_6001/pg_ident.conf

继续解压log_20240323_221005797265.tar.gz文件:

  • log_20240323_221005797265.tar.gz文件包含了节点上的cm组件的日志信息、数据库的运行日志等信息。
[omm@node1 logfiles]$ cd node1/logfiles
[omm@node1 logfiles]$ tar -zxvf log_20240323_221005797265.tar.gz
./
./bin/
./bin/gs_ctl/
./bin/gs_ctl/gs_ctl-2024-03-22_003927-current.log
./cm/
./cm/cm_agent/
./cm/cm_agent/cm_agent-2024-03-22_003333-current.log
./cm/cm_ctl/
./cm/cm_ctl/cm_ctl-2024-03-22_003248-current.log
./cm/cm_server/
./cm/cm_server/cm_server-2024-03-22_003333-current.log
./cm/cm_server/key_event-2024-03-22_003333-current.log
./cm/om_monitor/
./cm/om_monitor/om_monitor-2024-03-22_003300-current.log
./om/
./om/gs_local-2024-03-22_002507.log
./om/gs_om-2024-03-22_003612.log
./pg_log/
./pg_log/dn_6001/
./pg_log/dn_6001/postgresql-2024-03-23_211303.log

查看操作系统信息

[omm@node1 collector_20240323_220957]$ cat node1/systemfiles/OS_information_20240323_220958234772.txt
************************************
* OS information for host
node1
************************************

************************************
* ps ux 
************************************
USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
omm        2124  0.5  0.2  41712  8768 ?        S    21:13   0:19 /data/panweidb/app/bin/om_monitor -L /data/panweidb/log/omm/cm/om_monitor
omm        2125 14.4  0.6 1412052 26384 ?       Sl   21:13   8:14 /data/panweidb/app/bin/cm_agent
omm        2193 18.9 10.8 5238652 420276 ?      Sl   21:13  10:46 /data/panweidb/app/bin/cm_server
omm        2219  4.1 12.2 3813324 472400 ?      Sl   21:13   2:21 /data/panweidb/app/bin/panweidb -D /data/panweidb/data -M pending
omm        2348  0.0  0.0  72548   956 ?        Ss   21:13   0:00 ssh-agent -a /home/omm/gaussdb_tmp/gauss_socket_tmp
omm        3035  0.0  0.0 116884  3600 pts/0    S    21:14   0:00 -bash
omm       68100 13.0  0.6 263336 26124 pts/0    S+   22:09   0:00 python3 /data/panweidb/tool/script/gs_collector --begin-time=20240323 21:00 --end-time=20240323 21:20
omm       69074  0.0  0.0 113288  1608 pts/0    S+   22:09   0:00 /bin/sh -c source /etc/profile && unset LD_LIBRARY_PATH && python3 /data/panweidb/tool/script/gspylib/pssh/bin/pssh -t 1810 -H node1 -H node2 -P -p 300 -o /tmp/gauss_output_files_68100_2024-03-23_22:09:56_254823_178 -e /tmp/gauss_error_files_68100_2024-03-23_22:09:56_254823_178 "source /etc/profile;source ~/.bashrc;source /home/omm/.bashrc; python3 '/data/panweidb/tool/script/local/LocalCollect.py' -t system_check -U omm -l /data/panweidb/log/omm/om/gs_local.log -C '{#TypeName#: #System#, #Content#: #ps,ioStat,netFlow,spaceUsage,cpuInfo,memInfo,disk,#, #Interval#: #0#, #Count#: #1#}'" 2>&1 | tee /tmp/gauss_result_68100_2024-03-23_22:09:56_254823_178.log
omm       69099  0.0  0.2 281516  8852 pts/0    Sl+  22:09   0:00 python3 /data/panweidb/tool/script/gspylib/pssh/bin/pssh -t 1810 -H node1 -H node2 -P -p 300 -o /tmp/gauss_output_files_68100_2024-03-23_22:09:56_254823_178 -e /tmp/gauss_error_files_68100_2024-03-23_22:09:56_254823_178 source /etc/profile;source ~/.bashrc;source /home/omm/.bashrc; python3 '/data/panweidb/tool/script/local/LocalCollect.py' -t system_check -U omm -l /data/panweidb/log/omm/om/gs_local.log -C '{#TypeName#: #System#, #Content#: #ps,ioStat,netFlow,spaceUsage,cpuInfo,memInfo,disk,#, #Interval#: #0#, #Count#: #1#}'
omm       69100  0.0  0.0 108052   672 pts/0    S+   22:09   0:00 tee /tmp/gauss_result_68100_2024-03-23_22:09:56_254823_178.log
omm       69187  0.0  0.1 183244  4508 pts/0    S+   22:09   0:00 ssh node2 -q -o SendEnv=PSSH_NODENUM PSSH_HOST -o BatchMode=yes -o ConnectionAttempts=10 -o ConnectTimeout=30 -o NumberOfPasswordPrompts=1 -o ServerAliveCountMax=10 -o ServerAliveInterval=30 -o TCPKeepAlive=yes source /etc/profile;source ~/.bashrc;source /home/omm/.bashrc; python3 '/data/panweidb/tool/script/local/LocalCollect.py' -t system_check -U omm -l /data/panweidb/log/omm/om/gs_local.log -C '{#TypeName#: #System#, #Content#: #ps,ioStat,netFlow,spaceUsage,cpuInfo,memInfo,disk,#, #Interval#: #0#, #Count#: #1#}'
omm       69188  0.0  0.1 183244  4508 pts/0    S+   22:09   0:00 ssh node1 -q -o SendEnv=PSSH_NODENUM PSSH_HOST -o BatchMode=yes -o ConnectionAttempts=10 -o ConnectTimeout=30 -o NumberOfPasswordPrompts=1 -o ServerAliveCountMax=10 -o ServerAliveInterval=30 -o TCPKeepAlive=yes source /etc/profile;source ~/.bashrc;source /home/omm/.bashrc; python3 '/data/panweidb/tool/script/local/LocalCollect.py' -t system_check -U omm -l /data/panweidb/log/omm/om/gs_local.log -C '{#TypeName#: #System#, #Content#: #ps,ioStat,netFlow,spaceUsage,cpuInfo,memInfo,disk,#, #Interval#: #0#, #Count#: #1#}'
omm       69191  0.0  0.0 156860  2420 ?        S    22:09   0:00 sshd: omm@notty
omm       69197  0.0  0.0 113392  1660 ?        Ss   22:09   0:00 bash -c source /etc/profile;source ~/.bashrc;source /home/omm/.bashrc; python3 '/data/panweidb/tool/script/local/LocalCollect.py' -t system_check -U omm -l /data/panweidb/log/omm/om/gs_local.log -C '{#TypeName#: #System#, #Content#: #ps,ioStat,netFlow,spaceUsage,cpuInfo,memInfo,disk,#, #Interval#: #0#, #Count#: #1#}'
omm       69263  0.0  0.4 239688 18332 ?        S    22:09   0:00 python3 /data/panweidb/tool/script/local/LocalCollect.py -t system_check -U omm -l /data/panweidb/log/omm/om/gs_local.log -C {#TypeName#: #System#, #Content#: #ps,ioStat,netFlow,spaceUsage,cpuInfo,memInfo,disk,#, #Interval#: #0#, #Count#: #1#}
omm       69446  0.0  0.0 113284  1208 ?        S    22:09   0:00 /bin/sh -c ps ux >> /data/panweidb/tmp/node1/systemfiles/OS_information_20240323_220958234772.txt 2>&1
omm       69447  0.0  0.0 155452  1864 ?        R    22:09   0:00 ps ux

************************************
* iostat -xm 2 3 
************************************
Linux 3.10.0-1160.71.1.el7.x86_64 (node1)       03/23/2024      _x86_64_        (2 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           1.84    0.00    3.55    0.10    0.00   94.51

Device:         rrqm/s   wrqm/s     r/s     w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
sda               0.00     0.27    3.44   14.15     0.21     0.11    36.99     0.01    0.49    0.58    0.47   0.23   0.41
sdb               0.00     0.00    0.14    0.00     0.00     0.00    32.18     0.00    0.36    0.32    4.25   0.34   0.00
dm-0              0.00     0.00    2.23    0.25     0.09     0.00    80.64     0.01    2.37    0.54   18.79   0.38   0.09
dm-1              0.00     0.00    0.04    0.00     0.00     0.00    49.78     0.00    0.18    0.18    0.00   0.12   0.00
dm-2              0.00     0.00    0.73   13.70     0.10     0.10    28.66     0.00    0.27    0.95    0.23   0.21   0.30
dm-3              0.00     0.00    0.03    0.00     0.00     0.00    61.06     0.00    0.36    0.31    1.75   0.27   0.00
dm-4              0.00     0.00    0.06    0.30     0.00     0.00    22.42     0.00    0.46    0.32    0.49   0.29   0.01
dm-5              0.00     0.00    0.04    0.12     0.00     0.00    41.64     0.00    0.48    0.62    0.43   0.25   0.00
dm-6              0.00     0.00    0.08    0.05     0.00     0.00    30.65     0.00    0.29    0.16    0.52   0.20   0.00

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.81    0.00    2.43    0.00    0.00   96.76

Device:         rrqm/s   wrqm/s     r/s     w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
sda               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
sdb               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-1              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-2              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-3              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-4              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-5              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-6              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           6.78    0.00    7.05    0.00    0.00   86.18

Device:         rrqm/s   wrqm/s     r/s     w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
sda               0.00     0.00    0.00   11.00     0.00     0.06    11.86     0.00    0.14    0.00    0.14   0.14   0.15
sdb               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-1              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-2              0.00     0.00    0.00   11.00     0.00     0.06    11.86     0.00    0.14    0.00    0.14   0.14   0.15
dm-3              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-4              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-5              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00
dm-6              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00


************************************
* free -m 
************************************
              total        used        free      shared  buff/cache   available
Mem:           3770        1309        1636         133         824        1768
Swap:             0           0           0

查看数据库信息:

[omm@node1 collector_20240323_220957]$ cat node1/systemfiles/database_system_info_20240323_221002267046.txt

###########################################################
#
# C L U S T E R    I N F O
#
###########################################################
[  CMServer State   ]

node     node_ip         instance                         state
-----------------------------------------------------------------
1  node1 192.168.100.10  1    /data/panweidb/cm/cm_server Primary
2  node2 192.168.100.20  2    /data/panweidb/cm/cm_server Standby

[   Cluster State   ]

cluster_state   : Normal
redistributing  : No
balanced        : Yes
current_az      : AZ_ALL

[  Datanode State   ]

node     node_ip         instance                 state            
-------------------------------------------------------------------
1  node1 192.168.100.10  6001 /data/panweidb/data P Primary Normal
2  node2 192.168.100.20  6002 /data/panweidb/data S Standby Normal

###########################################################
#
# V E R S I O N    I N F O
#
###########################################################
gaussdb (PanWeiDB 2.0.0 (Build0)) compiled at 2023-11-30 09:02:43 commit 03b85d1 last mr  
cm_agent (PanWeiDB-CM V2.0.0 build ) compiled at 2023-11-29 20:33:30 Release
cm_server (PanWeiDB-CM V2.0.0 build ) compiled at 2023-11-29 20:33:30 Release
/bin/sh: gs_gtm: command not found
Linux version 3.10.0-1160.71.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Tue Jun 28 15:37:28 UTC 2022

###########################################################
#
# C O R E    F I L E    I N F O
#
###########################################################
Failed to collect core dump files, core pattern is not core-e-p-t.

###########################################################
#
# X L O G    F I L E    I N F O
#
###########################################################

******** dn_6001 xlog file info *******
total 49152
drwx------ 2 omm dbgrp        6 Mar 22 00:49 archive_status
-rw------- 1 omm dbgrp 16777216 Mar 22 00:49 000000010000000000000003
-rw------- 1 omm dbgrp 16777216 Mar 22 00:49 000000010000000000000004
-rw------- 1 omm dbgrp 16777216 Mar 23 22:09 000000010000000000000005

###########################################################
#
# P G_L O G    F I L E    I N F O
#
###########################################################

******** dn_6001 pg_log file info *******
total 176
-r-------- 1 omm dbgrp   5616 Mar 23 21:43 postgresql-2024-03-22_104855.log.gz
-r-------- 1 omm dbgrp   5122 Mar 23 21:43 postgresql-2024-03-22_104910.log.gz
-r-------- 1 omm dbgrp   9913 Mar 23 21:43 postgresql-2024-03-22_104929.log.gz
-r-------- 1 omm dbgrp   3539 Mar 23 21:43 postgresql-2024-03-22_105851.log.gz
-r-------- 1 omm dbgrp   3485 Mar 23 21:43 postgresql-2024-03-22_110206.log.gz
-r-------- 1 omm dbgrp   6061 Mar 23 21:43 postgresql-2024-03-22_110529.log.gz
-r-------- 1 omm dbgrp   4149 Mar 23 21:43 postgresql-2024-03-23_210818.log.gz
-r-------- 1 omm dbgrp   5115 Mar 23 21:43 postgresql-2024-03-23_204252.log.gz
-rw------- 1 omm dbgrp 117989 Mar 23 22:09 postgresql-2024-03-23_211303.log

从上面的分析可以看出,gs_collector工具收集的信息还是非常全面的,对我们平常的故障定位、问题追溯很有帮助。

最后修改时间:2024-03-25 10:19:48
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论