After you run a backup job, you can query the settings of backup parameters.
Procedure
Log on to the
systenant of a cluster as therootuser.Execute specific statements to query the settings of backup parameters.
View the weight of thread time slices used by job queues with high reliability and a low or medium priority, such as backup job queues and backup cleanup job queues.
Example:
obclient [(none)]> SHOW PARAMETERS LIKE '%ha_low_thread_score%'\G *************************** 1. row *************************** zone: z1 svr_type: observer svr_ip: xx.xx.xx.xx svr_port: 45774 name: ha_low_thread_score data_type: NULL value: 0 info: the current work thread score of high availability low thread. Range: [0,100] in integer. Especially, 0 means default value section: OBSERVER scope: TENANT source: DEFAULT edit_level: DYNAMIC_EFFECTIVEThe
ha_low_thread_scoreparameter specifies the weight of thread time slices used by low- or medium-priority job queues such as backup job queues and backup cleanup job queues. The default value is2. If a data backup job runs slowly, you can increase the value of theha_low_thread_scoreparameter. We recommend that you double the value each time.To set the concurrency for writing data to the file system during backup, execute the following statement:
obclient [(none)]> ALTER SYSTEM SET ha_low_thread_score = 4 TENANT = mysql_tenant;In this example, the
ha_low_thread_scoreparameter is set to4to increase the proportion of thread time slices used by the queue where the backup job of themysql_tenanttenant belongs.View the backup paths of tenants.
Example:
obclient> SELECT * FROM oceanbase.CDB_OB_BACKUP_PARAMETER\G *************************** 1. row *************************** TENANT_ID: 1002 NAME: data_backup_dest VALUE: file:///data/nfs/backup/dataThe
oceanbase.CDB_OB_BACKUP_PARAMETERview displays the backup paths of all tenants in the current cluster. In this example, the backup path specified by thedata_backup_destparameter for the tenant with the ID1002isfile:///data/nfs/backup/data.