Updated on 2024-05-07 GMT+08:00

System Performance Snapshot

enable_wdr_snapshot

Parameter description: Specifies whether to enable the database monitoring snapshot function.

This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Value range: Boolean

  • on indicates that the database monitoring snapshot function is enabled.
  • off indicates that the database monitoring snapshot function is disabled.

Default value: on

enable_wdr_snapshot_standby

Parameter description: Specifies whether to enable the database monitoring snapshot function on the standby node.

This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Value range: Boolean

  • on indicates that the database monitoring snapshot function is enabled on the standby node.
  • off indicates that the database monitoring snapshot function is disabled on the standby node.

Default value: off

enable_show_standby_name

Parameter description: Specifies whether to display a name of the standby node to distinguish the primary and standby nodes.

This parameter is a USERSET parameter. Set it based on instructions provided in Table 1.

Value range: Boolean

  • on: The function of distinguishing primary and standby node names is enabled.
  • off: The function of distinguishing primary and standby node names is disabled.

Default value: off

wdr_snapshot_retention_days

Parameter description: Specifies the number of days for storing database monitoring snapshot data in the system. When the number of snapshots generated during database running exceeds the maximum number of snapshots that can be generated within the retention period, the system clears the snapshot data with the smallest snapshot_id at the interval specified by wdr_snapshot_interval.

This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Value range: an integer ranging from 1 to 30

Default value: 8

wdr_snapshot_query_timeout

Parameter description: Specifies the execution timeout for the SQL statements associated with database monitoring snapshot operations. If the SQL statement execution is not complete and no result is returned within the specified time, the snapshot operation fails.

This is a SIGHUP parameter. Set it based on instructions provided in Table 1. The value 0 indicates that this parameter does not take effect.

Value range: an integer ranging from 0 to INT_MAX. The unit is second.

Default value: 100s

wdr_snapshot_interval

Parameter description: Specifies the interval at which the backend thread Snapshot automatically performs snapshot operations on the database monitoring data.

This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Value range: an integer ranging from 10 to 60. The unit is min.

Default value: 1h

asp_flush_mode

Parameter description: Specifies the mode for the ASP to update data to the disk. The value can be file (default value), table (system catalog), or all (system catalog and file). Only the sysadmin user can access this parameter.

This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Value range: a string, which can be table, file, or all

Default value: table

asp_flush_rate

Parameter description: When the number of samples reaches the value of asp_sample_num, the samples in the memory are updated to the disk based on a certain proportion. asp_flush_rate indicates the update proportion. If this parameter is set to 10, the update ratio is 10:1.

This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Value range: an integer ranging from 1 to 10

Default value: 10

asp_log_filename

Parameter description: Specifies the file name format when writing files using ASP. Only the sysadmin user can access this parameter.

This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Value range: a string

Default value: asp-%Y-%m-%d_%H%M%S.log

asp_retention_days

Parameter description: Specifies the maximum number of days for reserving ASP samples when they are written to the system catalog.

This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Value range: an integer ranging from 1 to 7

Default value: 2

asp_sample_interval

Parameter description: Specifies the sampling interval.

This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Value range: an integer ranging from 1 to 10. The unit is s.

Default value: 1s

asp_sample_num

Parameter description: Specifies the maximum number of samples allowed in the LOCAL_ACTIVE_SESSION view. Only the sysadmin user can access this parameter.

This parameter is a POSTMASTER parameter. Set it based on instructions provided in Table 1.

Value range: an integer ranging from 10 to 100000.

Default value:

100000 (196-core CPU/1536 GB memory, 128-core CPU/1024 GB memory, 104-core CPU/1024 GB memory, 96-core CPU/1024 GB memory, 96-core CPU/768 GB memory, 80-core CPU/640 GB memory, 64-core CPU/512 GB memory, 60-core CPU/480 GB memory, 32-core CPU/256 GB memory, 16-core CPU/128 GB memory, 8-core CPU/64 GB memory, 4-core CPU/32 GB memory); 36000 (4-core CPU/16 GB memory)

enable_asp

Parameter description: Specifies whether to enable the active session profile function.

This is a SIGHUP parameter. Set it based on instructions provided in Table 1.

Value range: Boolean

  • on: The function is enabled.
  • off: The function is disabled.

Default value: on