Parameters Related to cm_server

log_dir

Parameter description: Specifies the directory where cm_server logs are stored. It can be specified as an absolute path, or a path relative to $GAUSSLOG.

Value range: a string You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: log, indicating that the cm_server log is generated in the CM directory in $GAUSSLOG.

log_file_size

Parameter description: Specifies the size of a log file. If a log file exceeds the specified size, a new one is created to record log information.

Value range: an integer ranging from 0 to 2047. The unit is MB. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 16MB

log_min_messages

Parameter description: Specifies which message levels are written to the cm_server log. Each level covers all the levels following it. The lower the level is, the fewer messages will be written into the log.

Value range: enumerated type. Valid values are debug5, debug1, log, warning, error, and fatal. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: warning

thread_count

Parameter description: Specifies the number of threads in the cm_server thread pool.

Value range: an integer ranging from 2 to 1000. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 1000

alarm_component

Parameter description: Specifies the location of the alarm component that processes alarms.

Value range: a string You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

  • If --alarm-type in the gs_preinstall script is set to 5, no third-party component is connected and alarms are written into the system_alarm log. In this case, the value of alarm_component is /opt/huawei/snas/bin/snas_cm_cmd.
  • If --alarm-type in the gs_preinstall script is set to 1, a third-party component is connected. In this case, the value of alarm_component is the absolute path of the executable program of the third-party component.

Default value: /opt/huawei/snas/bin/snas_cm_cmd

instance_failover_delay_timeout

Parameter description: Specifies the delay in cm_server failover after the primary cm_server breakdown is detected.

Value range: an integer. The unit is s. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 0

instance_heartbeat_timeout

Parameter description: Specifies the time to wait before the instance heartbeat times out.

Value range: an integer. The unit is s. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 6

cmserver_ha_connect_timeout

Parameter description: Specifies the time to wait before the connection between the primary and standby cm_servers times out.

Value range: an integer. The unit is s. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 2

cmserver_ha_heartbeat_timeout

Parameter description: Specifies the time to wait before the heartbeat between the primary and standby cm_servers times out.

Value range: an integer. The unit is s. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 6

phony_dead_effective_time

Parameter description: Specifies the maximum number of times DN processes are detected as zombie. If the number of times a process is detected as zombie is greater than the specified value, the process is considered to be a zombie process and will be restarted.

Value range: an integer. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 5

enable_transaction_read_only

Parameter description: Specifies whether the database is in read-only mode.

Value range: Boolean values on, off, true, false, yes, no, 1, and 0 For details about how to modify this parameter, see Table 2.

Default value: on

datastorage_threshold_check_interval

Parameter description: Specifies the interval for checking the disk usage. The system checks the disk usage at the interval specified by the user.

Value range: an integer. The unit is s. For details about how to modify this parameter, see Table 2.

Default value: 10

datastorage_threshold_value_check

Parameter description: Specifies the usage threshold of a read-only disk in a database. When the disk usage of the data directory exceeds the specified value, the database is automatically set to read-only mode.

Value range: an integer ranging from 1 to 99, in percentage. For details about how to modify this parameter, see Table 2.

Default value: 85

max_datastorage_threshold_check

Parameter description: Specifies the maximum interval for checking the disk usage. After you modify the enable_transaction_read_only parameter, the system automatically checks whether the disk usage reaches the threshold at the specified interval.

Value range: an integer. The unit is s. For details about how to modify this parameter, see Table 2.

Default value: 43200

cmserver_ha_status_interval

Parameter description: Specifies the interval between synchronizations of primary and standby CM Server status.

Value range: an integer. The unit is s. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 1

cmserver_self_vote_timeout

Parameter description: Specifies the time to wait before the CM Server self-vote times out.

Value range: an integer. The unit is s. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 6

alarm_report_interval

Parameter description: Specifies the interval at which an alarm is reported.

Value range: a non-negative integer. The unit is s. For details about how to modify this parameter, see Table 2.

Default value: 3

alarm_report_max_count

Parameter description: Specifies the maximum number of times an alarm is reported.

Value range: a non-negative integer For details about how to modify this parameter, see Table 2.

Default value: 1

enable_az_auto_switchover

Parameter description: Specifies whether to enable automatic AZ switchover. If it is set to 1, cm_server automatically switches over services among AZs. Otherwise, when a DN is faulty, services will not be automatically switched to another AZ even if the current AZ is unavailable. You can run the switchover command to manually switch services to another AZ.

Value range: a non-negative integer. The value 0 indicates that automatic AZ switchover is disabled, and the value 1 indicates that automatic AZ switchover is enabled. For details about how to modify this parameter, see Table 2.

Default value: 1

instance_keep_heartbeat_timeout

Parameter description: The cm_agent periodically checks the instance status and reports the status to the cm_server. If the instance status cannot be detected for a long time and the accumulated number of times exceeds the value of this parameter, the cm_server delivers a command to the cm_agent to restart the instance.

Value range: an integer. The unit is s. For details about how to modify this parameter, see Table 2.

Default value: 40

az_switchover_threshold

Parameter description: If the failure rate of a DN shard in an AZ (Number of faulty DN shards/Total number of DN shards x 100%) exceeds the specified value, automatic AZ switchover is triggered.

Value range: an integer ranging from 0 to 100 For details about how to modify this parameter, see Table 2.

Default value: 100

az_check_and_arbitrate_interval

Parameter description: Specifies the interval for checking the AZ status. If the status of an AZ is abnormal, automatic AZ switchover is triggered.

Value range: an integer. The unit is s. For details about how to modify this parameter, see Table 2.

Default value: 2

az_connect_check_interval

Parameter description: Specifies the interval at which the network connection between AZs is checked.

Value range: an integer. The unit is s. For details about how to modify this parameter, see Table 2.

Default value: 60

az_connect_check_delay_time

Parameter description: Specifies the delay between two retries to check the network connection between AZs.

Value range: an integer. The unit is s. For details about how to modify this parameter, see Table 2.

Default value: 150

cmserver_demote_delay_on_etcd_fault

Parameter description: Specifies the interval at which cm_server switches from the primary state to the standby state due to unhealthy etcd.

Value range: an integer. The unit is s. For details about how to modify this parameter, see Table 2.

Default value: 8

instance_phony_dead_restart_interval

Parameter description: Specifies the interval at which the cm_agent process restarts and kills a zombie DN instance. The interval between two consecutive kill operations cannot be less than the value of this parameter. Otherwise, the cm_agent process does not deliver commands.

Value range: an integer. The unit is s. The minimum value that takes effect is 1800. If this parameter is set to a value less than 1800, the value 1800 takes effect. For details about how to modify this parameter, see Table 2.

Default value: 21600

cm_auth_method

Parameter description: Specifies the port authentication mode of the CM. trust indicates that port authentication is not configured. gss indicates that Kerberos port authentication is used. Note that you can change the value to gss only after the Kerberos server and client are successfully installed. Otherwise, the CM cannot communicate properly, affecting the database status.

Value range: gss or trust. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: trust

cm_krb_server_keyfile

Parameter description: Specifies the location of the key file on the Kerberos server. The value must be an absolute path. The file is usually stored in the ${GAUSSHOME}/kerberos directory and ends with keytab. The file name is the same as the name of the user who runs the database. This parameter is used together with cm_auth_method. If the cm_auth_method parameter is changed to gss, cm_krb_server_keyfile must also be configured as the correct path. Otherwise, the database status will be affected.

Value range: a string. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: ${GAUSSHOME}/kerberos/{UserName}.keytab. The default value cannot take effect and is used only as a prompt.

cm_server_arbitrate_delay_base_time_out

Parameter description: Specifies the basic delay duration for cm_server quorum. If cm_server is disconnected, the quorum starts to be timed. If the disconnection duration exceeds the quorum delay duration, a new cm_server will be selected. The quorum delay duration is determined by the basic delay duration, the node index (server ID), and the incremental delay duration. The formula is as follows: Quorum delay duration = Basic delay duration + Node index x Incremental delay duration

Value range: an integer. The unit is s. The index should be larger than 0. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 10

cm_server_arbitrate_delay_incrememtal_time_out

Parameter description: Specifies the incremental delay duration for cm_server quorum. If cm_server is disconnected, the quorum starts to be timed. If the disconnection duration exceeds the quorum delay duration, a new cm_server will be selected. The quorum delay duration is determined by the basic delay duration, the node index (server ID), and the incremental delay duration. The formula is as follows: Quorum delay duration = Basic delay duration + Node index x Incremental delay duration

Value range: an integer. The unit is s. The index should be larger than 0. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 3

force_promote

Parameter description: Specifies whether cm_server enables the forcible startup logic (that is, when the cluster status is unknown, ensure that the basic functions of the cluster are available at the cost of data loss). The value 0 indicates that the function is disabled, and the value 1 indicates that the function is enabled. This parameter applies to DNs.

Value range: 0 or 1. You need to restart cm_server for the modification to take effect.

Default value: 0

switch_rto

Parameter description: Specifies the delay for the forcible startup of cm_server. When force_promote is set to 1 and a shard in the database does not have primary cm_server, the system starts timing. After the delay, the forcible startup logic starts to be executed.

Value range: an integer ranging from 60 to 2147483647. The unit is s. You need to restart cm_server for the modification to take effect.

Default value: 600

backup_open

Parameter description: Specifies the DR database instance settings. After this parameter is enabled, CM runs in DR database instance mode.

Value range: 0 or 1. You need to restart cm_server for the modification to take effect. This parameter cannot be enabled for a non-DR database instance. For details about how to modify this parameter, see Table 2.

  • 0: disabled.
  • 1: enabled.

Default value: 0

enable_dcf

Parameter description: Specifies the status of the DCF mode.

Value range: Boolean You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

  • 0: disabled.
  • 1: enabled.

Default value: off

install_type

Parameter description: Specifies the settings related to the DR database instance. It is used to distinguish whether the database instance is based on Dorado.

Value range: an integer ranging from 0 to 2 You need to restart cm_server for the modification to take effect. This parameter cannot be enabled for a non-DR database instance. For details about how to modify this parameter, see Table 2.

  • 0 indicates the database instance for which the DR relationship is not established.
  • 1 indicates a Dorado-based database instance.
  • 2 indicates a streaming-based database instance.

Default value: 0

enable_ssl

Parameter description: Specifies whether to enable SSL.

Value range: Boolean After this function is enabled, the SSL certificate is used to encrypt communication. Any modification of this parameter takes effect only after a restart. For details about how to modify this parameter, see Table 2.

  • on indicates that SSL is enabled.

  • off indicates that SSL is disabled.

  • Default value: off

    NOTICE: To ensure security, you are advised not to disable it. After this function is disabled, the CM does not use encrypted communication and all information is transmitted in plaintext, which may bring security risks such as eavesdropping, tampering, and spoofing.

ssl_cert_expire_alert_threshold

Parameter description: Specifies the SSL certificate expiration alarm time.

Value range: an integer. The unit is day. If the certificate expiration time is less than the value of this parameter, an alarm indicating that the certificate is about to expire is reported. For details about how to modify this parameter, see Table 2.

Default value: 90

ssl_cert_expire_check_interval

Parameter description: Specifies the period for checking whether the SSL certificate expires.

Value range: an integer. The unit is s. For details about how to modify this parameter, see Table 2.

Default value: 86400

delay_arbitrate_timeout

Parameter description: Specifies the time for waiting for the redo log replay of a node in the same AZ as the primary DN. The node in the same AZ as the primary DN is preferentially promoted to primary.

Value range: an integer, in the range [0,21474836] (unit: second). For details about how to modify this parameter, see Table 2.

Default value: 0

ddb_type

Parameter description: Specifies whether to switch between ETCD and DCC modes.

Value range: an integer. 0: ETCD; 1: DCC. You need to restart cm_server for the modification to take effect. For details about how to modify this parameter, see Table 2.

Default value: 0

ddb_log_level

Parameter description: Sets the DDB log level.

To disable the log function, set this parameter to NONE, which cannot be used together with the following log levels:

To enable the log function, set this parameter to one or a combination of the following log levels: RUN_ERR|RUN_WAR|RUN_INF|DEBUG_ERR|DEBUG_WAR|DEBUG_INF|TRACE|PROFILE|OPER. If two or more log levels are used together, separate them with vertical bars (|). The log level cannot be set to an empty string.

Value range: a string containing one or a combination of the following log levels: RUN_ERR|RUN_WAR|RUN_INF|DEBUG_ERR|DEBUG_WAR|DEBUG_INF|TRACE|PROFILE|OPER. For details about how to modify this parameter, see Table 2.

Default value: RUN_ERR|RUN_WAR|DEBUG_ERR|OPER|RUN_INF|PROFILE

ddb_log_backup_file_count

Parameter description: Specifies the maximum number of log files that can be saved.

Value range: an integer ranging from 1 to 100. For details about how to modify this parameter, see Table 2.

Default value: 10

ddb_max_log_file_size

Parameter description: Specifies the maximum number of bytes in a log.

Value range: a string, in the range [1M,1000M]. For details about how to modify this parameter, see Table 2.

Default value: 10M

ddb_log_suppress_enable

Parameter description: Specifies whether to enable the log suppression function.

Value range: an integer. 0: disabled; 1: enabled. For details about how to modify this parameter, see Table 2.

Default value: 1

ddb_election_timeout

Parameter description: Specifies the DCC election timeout period.

Value range: an integer, in the range [1,600], in seconds. For details about how to modify this parameter, see Table 2.

Default value: 3

Feedback
编组 3备份
    openGauss 2024-05-07 00:46:52
    cancel