From 6a865ea69540236c02facd78f68577c608e4e255 Mon Sep 17 00:00:00 2001 From: seanlook Date: Tue, 26 Mar 2024 20:21:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(backend):=20dbconfig=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=BA=91=E5=8C=BA=E5=9F=9F=20id=20=E7=BA=A7=E5=88=AB=20#3716?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/000015_rediscomm_data.up.sql | 6 ++ .../000019_tendbcluster_data.up.sql | 14 ++-- .../migrations/000020_tendbha_data.up.sql | 8 +- .../migrations/000021_tendbsingle_data.up.sql | 8 +- .../migrations/000029_pulsar_data.up.sql | 6 +- .../000040_tendbcommon_data.down.sql | 2 + .../migrations/000040_tendbcommon_data.up.sql | 74 +++++++++++++++++++ .../db-config/internal/api/config_base.go | 4 +- .../db-config/internal/pkg/cst/const.go | 1 + .../repository/model/config_item_check.go | 2 +- .../pkg/src/backupexe/dumper_logical.go | 10 ++- .../pkg/src/backupexe/dumper_physical.go | 30 +++++--- .../pkg/src/backupexe/prepareinfo.go | 21 ++---- .../pkg/src/dbareport/backup_report.go | 8 +- .../db-tools/mysql-dbbackup/pkg/util/misc.go | 15 +++- .../local_tasks/mysql_backup/task.py | 1 - 16 files changed, 155 insertions(+), 55 deletions(-) create mode 100644 dbm-services/common/db-config/assets/migrations/000040_tendbcommon_data.down.sql create mode 100644 dbm-services/common/db-config/assets/migrations/000040_tendbcommon_data.up.sql diff --git a/dbm-services/common/db-config/assets/migrations/000015_rediscomm_data.up.sql b/dbm-services/common/db-config/assets/migrations/000015_rediscomm_data.up.sql index add40a3c17..980f0dd28c 100644 --- a/dbm-services/common/db-config/assets/migrations/000015_rediscomm_data.up.sql +++ b/dbm-services/common/db-config/assets/migrations/000015_rediscomm_data.up.sql @@ -24,6 +24,7 @@ -- -- WHERE: namespace='rediscomm' +INSERT INTO `tb_config_file_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_type_lc`, `conf_file_lc`, `level_names`, `level_versioned`, `conf_name_validate`, `conf_value_validate`, `value_type_strict`, `namespace_info`, `version_keep_limit`, `version_keep_days`, `conf_name_order`, `description`, `created_at`, `updated_at`, `updated_by`) VALUES (334,'rediscomm','config','backup_client','配置','备份客户端相关的配置','plat,app,bk_cloud_id,city','',1,1,0,'',5,365,0,'监控相关的配置','2023-02-28 15:01:19','2024-03-25 16:59:27',''); INSERT INTO `tb_config_file_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_type_lc`, `conf_file_lc`, `level_names`, `level_versioned`, `conf_name_validate`, `conf_value_validate`, `value_type_strict`, `namespace_info`, `version_keep_limit`, `version_keep_days`, `conf_name_order`, `description`, `created_at`, `updated_at`, `updated_by`) VALUES (124,'rediscomm','config','base','运行时间','base','pub,plat,app,module,cluster','cluster',1,1,0,'rediscomm',5,365,0,'运行时间','2022-11-29 14:51:54','2023-06-30 17:29:26',''); INSERT INTO `tb_config_file_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_type_lc`, `conf_file_lc`, `level_names`, `level_versioned`, `conf_name_validate`, `conf_value_validate`, `value_type_strict`, `namespace_info`, `version_keep_limit`, `version_keep_days`, `conf_name_order`, `description`, `created_at`, `updated_at`, `updated_by`) VALUES (126,'rediscomm','config','bigkey','热key相关配置','bigkey','pub,plat,app,module,cluster','cluster',1,1,0,'rediscomm',5,365,0,'热key相关配置','2022-11-29 14:51:54','2023-06-30 17:29:20',''); INSERT INTO `tb_config_file_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_type_lc`, `conf_file_lc`, `level_names`, `level_versioned`, `conf_name_validate`, `conf_value_validate`, `value_type_strict`, `namespace_info`, `version_keep_limit`, `version_keep_days`, `conf_name_order`, `description`, `created_at`, `updated_at`, `updated_by`) VALUES (171,'rediscomm','config','binlogbackup','配置','binlog备份相关的配置','pub,plat,app,module,cluster','cluster',1,1,0,'Tendisplus',5,365,0,'binlog备份相关的配置','2023-02-28 15:01:19','2023-04-06 11:59:44',''); @@ -69,6 +70,11 @@ INSERT INTO `tb_config_file_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` -- -- WHERE: namespace='rediscomm' AND (flag_encrypt!=1 or value_default like '{{%') +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (22880,'rediscomm','config','backup_client','binlogbackup.keep_days','INT','15','[1, 60]','RANGE',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-11-29 15:00:02','2024-03-25 16:41:50',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (22883,'rediscomm','config','backup_client','binlogbackup.keep_storage_tag','STRING','REDIS_BINLOG','','',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-11-29 15:00:02','2024-03-25 16:47:22',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (22878,'rediscomm','config','backup_client','default_storage_type','STRING','','hdfs | cos |','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-11-29 15:00:02','2022-11-29 17:08:30',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (22881,'rediscomm','config','backup_client','fullbackup.keep_days','INT','25','[1, 60]','RANGE',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-11-29 15:00:02','2024-03-25 16:41:03',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (22882,'rediscomm','config','backup_client','fullbackup.keep_storage_tag','STRING','REDIS_FULL','','',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-11-29 15:00:02','2024-03-25 16:47:23',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (12973,'rediscomm','config','base','cron','string','0 8 * * *',NULL,'',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-11-29 15:00:02','2022-11-29 17:08:30',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (12980,'rediscomm','config','bigkey','disk_max_usage','int','65',NULL,'',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-11-29 15:00:02','2022-11-29 17:08:30',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (12977,'rediscomm','config','bigkey','duration_seconds','int','10800',NULL,'',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-11-29 15:00:02','2022-11-29 17:08:30',0); diff --git a/dbm-services/common/db-config/assets/migrations/000019_tendbcluster_data.up.sql b/dbm-services/common/db-config/assets/migrations/000019_tendbcluster_data.up.sql index 7d644faaad..5b007e1307 100644 --- a/dbm-services/common/db-config/assets/migrations/000019_tendbcluster_data.up.sql +++ b/dbm-services/common/db-config/assets/migrations/000019_tendbcluster_data.up.sql @@ -476,7 +476,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14526,'tendbcluster','dbconf','MySQL-5.6','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:36:33','2023-04-19 15:10:13',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14527,'tendbcluster','dbconf','MySQL-5.6','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect','2023-03-09 17:36:33','2023-03-09 17:36:33',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14528,'tendbcluster','dbconf','MySQL-5.6','mysqld.slave_parallel_type','STRING','DATABASE','DATABASE| LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specifies if the slave will use database partitioning or information from master to parallelize transactions.(Default: SCHEMA).','2023-03-09 17:36:33','2023-04-17 14:55:08',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14529,'tendbcluster','dbconf','MySQL-5.6','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-03-09 17:36:33','2023-04-17 14:58:13',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14529,'tendbcluster','dbconf','MySQL-5.6','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-03-09 17:36:33','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14530,'tendbcluster','dbconf','MySQL-5.6','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN','TABLE_SCAN,INDEX_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'When preparing batches of rows for row-based logging and replication, this variable controls how the rows are searched for matches.','2023-03-09 17:36:33','2023-03-09 17:36:33',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14531,'tendbcluster','dbconf','MySQL-5.6','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable','2023-03-09 17:36:33','2023-03-09 17:36:33',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14532,'tendbcluster','dbconf','MySQL-5.6','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:36:33','2023-04-17 15:00:55',0); @@ -724,7 +724,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14776,'tendbcluster','dbconf','MySQL-5.7','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:36:33','2023-04-19 15:10:13',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14777,'tendbcluster','dbconf','MySQL-5.7','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect','2023-03-09 17:36:33','2023-03-09 17:36:33',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14778,'tendbcluster','dbconf','MySQL-5.7','mysqld.slave_parallel_type','STRING','DATABASE','DATABASE| LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specifies if the slave will use database partitioning or information from master to parallelize transactions.(Default: DATABASE).','2023-03-09 17:36:33','2023-04-17 14:55:08',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14779,'tendbcluster','dbconf','MySQL-5.7','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-03-09 17:36:33','2023-04-17 14:58:13',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14779,'tendbcluster','dbconf','MySQL-5.7','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-03-09 17:36:33','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14780,'tendbcluster','dbconf','MySQL-5.7','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN','TABLE_SCAN,INDEX_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'When preparing batches of rows for row-based logging and replication, this variable controls how the rows are searched for matches.','2023-03-09 17:36:33','2023-03-09 17:36:33',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14781,'tendbcluster','dbconf','MySQL-5.7','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable','2023-03-09 17:36:33','2023-03-09 17:36:33',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (14782,'tendbcluster','dbconf','MySQL-5.7','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specify the initial slow query log state.','2023-03-09 17:36:33','2023-04-17 14:35:44',0); @@ -971,7 +971,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15031,'tendbcluster','dbconf','MySQL-8.0','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:36:33','2023-08-09 11:34:38',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15032,'tendbcluster','dbconf','MySQL-8.0','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect','2023-03-09 17:36:33','2023-03-09 17:36:33',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15033,'tendbcluster','dbconf','MySQL-8.0','mysqld.slave_parallel_type','STRING','LOGICAL_CLOCK','DATABASE| LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specifies if the slave will use database partitioning or information from master to parallelize transactions.(Default: DATABASE).','2023-03-09 17:36:33','2023-08-09 11:34:38',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15034,'tendbcluster','dbconf','MySQL-8.0','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-03-09 17:36:33','2023-08-09 11:34:38',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15034,'tendbcluster','dbconf','MySQL-8.0','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-03-09 17:36:33','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15035,'tendbcluster','dbconf','MySQL-8.0','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN,HASH_SCAN','TABLE_SCAN,INDEX_SCAN| INDEX_SCAN,HASH_SCAN| TABLE_SCAN,HASH_SCAN| TABLE_SCAN,INDEX_SCAN,HASH_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'When preparing batches of rows for row-based logging and replication, this variable controls how the rows are searched for matches.','2023-03-09 17:36:33','2023-03-09 17:36:33',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15036,'tendbcluster','dbconf','MySQL-8.0','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable','2023-03-09 17:36:33','2023-03-09 17:36:33',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15037,'tendbcluster','dbconf','MySQL-8.0','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specify the initial slow query log state.','2023-03-09 17:36:33','2023-04-17 14:35:44',0); @@ -1086,7 +1086,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15510,'tendbcluster','dbconf','Spider-1','mysqld.skip-name-resolve','STRING','true','true | false','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:55:11','2023-03-09 18:37:22',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15511,'tendbcluster','dbconf','Spider-1','mysqld.slave_compressed_protocol','INT','1','1 | 0','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:55:11','2023-04-19 15:11:00',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15512,'tendbcluster','dbconf','Spider-1','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:55:11','2023-04-19 15:10:13',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15514,'tendbcluster','dbconf','Spider-1','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:55:11','2023-04-17 14:58:13',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15514,'tendbcluster','dbconf','Spider-1','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:55:11','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15515,'tendbcluster','dbconf','Spider-1','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable','2023-03-09 17:55:11','2023-03-09 17:55:11',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15516,'tendbcluster','dbconf','Spider-1','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:55:11','2023-04-17 15:00:55',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15517,'tendbcluster','dbconf','Spider-1','mysqld.slow_query_log_file','STRING','{{.Mysqld.Logdir}}/slow-query.log',NULL,'',2,0,0,0,1,'{{mysqld.slow_query_log_file}}',NULL,NULL,-1,NULL,NULL,'2023-03-09 17:55:11','2023-03-28 18:00:48',0); @@ -1328,7 +1328,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15387,'tendbcluster','dbconf','Spider-3','mysqld.slave_compressed_protocol','INT','1','1 | 0','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:55:05','2023-04-19 15:11:00',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15388,'tendbcluster','dbconf','Spider-3','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:55:05','2023-04-19 15:10:13',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15389,'tendbcluster','dbconf','Spider-3','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect','2023-03-09 17:55:05','2023-03-09 17:55:05',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15391,'tendbcluster','dbconf','Spider-3','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-03-09 17:55:05','2023-04-17 14:58:13',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15391,'tendbcluster','dbconf','Spider-3','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-03-09 17:55:05','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15392,'tendbcluster','dbconf','Spider-3','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN','TABLE_SCAN,INDEX_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'When preparing batches of rows for row-based logging and replication, this variable controls how the rows are searched for matches.','2023-03-09 17:55:05','2023-03-09 17:55:05',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15393,'tendbcluster','dbconf','Spider-3','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable','2023-03-09 17:55:05','2023-03-09 17:55:05',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15394,'tendbcluster','dbconf','Spider-3','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specify the initial slow query log state.','2023-03-09 17:55:05','2023-04-17 14:35:44',0); @@ -1580,7 +1580,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15768,'tendbcluster','dbconf','Tdbctl','mysqld.skip-name-resolve','STRING','true','true | false','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:57:45','2023-05-10 19:35:56',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15770,'tendbcluster','dbconf','Tdbctl','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-03-09 17:57:45','2023-05-10 19:35:56',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15771,'tendbcluster','dbconf','Tdbctl','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect','2023-03-09 17:57:45','2023-05-10 19:35:56',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15773,'tendbcluster','dbconf','Tdbctl','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-03-09 17:57:45','2023-05-10 19:35:56',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15773,'tendbcluster','dbconf','Tdbctl','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-03-09 17:57:45','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15774,'tendbcluster','dbconf','Tdbctl','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN','TABLE_SCAN,INDEX_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'When preparing batches of rows for row-based logging and replication, this variable controls how the rows are searched for matches.','2023-03-09 17:57:45','2023-05-10 19:35:56',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15775,'tendbcluster','dbconf','Tdbctl','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable','2023-03-09 17:57:45','2023-05-10 19:35:56',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (15776,'tendbcluster','dbconf','Tdbctl','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specify the initial slow query log state.','2023-03-09 17:57:45','2023-05-10 19:35:56',0); @@ -1829,7 +1829,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18945,'tendbcluster','dbconf','TXSQL-8.0','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-11-14 15:20:26','2023-11-14 15:20:26',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18946,'tendbcluster','dbconf','TXSQL-8.0','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect','2023-11-14 15:20:26','2023-11-14 15:20:26',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18947,'tendbcluster','dbconf','TXSQL-8.0','mysqld.slave_parallel_type','STRING','LOGICAL_CLOCK','DATABASE| LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specifies if the slave will use database partitioning or information from master to parallelize transactions.(Default: DATABASE).','2023-11-14 15:20:26','2023-11-14 15:20:26',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18948,'tendbcluster','dbconf','TXSQL-8.0','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-11-14 15:20:26','2023-11-14 15:20:26',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18948,'tendbcluster','dbconf','TXSQL-8.0','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-11-14 15:20:26','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18949,'tendbcluster','dbconf','TXSQL-8.0','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN,HASH_SCAN','TABLE_SCAN,INDEX_SCAN| INDEX_SCAN,HASH_SCAN| TABLE_SCAN,HASH_SCAN| TABLE_SCAN,INDEX_SCAN,HASH_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'When preparing batches of rows for row-based logging and replication, this variable controls how the rows are searched for matches.','2023-11-14 15:20:26','2023-11-14 15:20:26',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18950,'tendbcluster','dbconf','TXSQL-8.0','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable','2023-11-14 15:20:26','2023-11-14 15:20:26',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18951,'tendbcluster','dbconf','TXSQL-8.0','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specify the initial slow query log state.','2023-11-14 15:20:26','2023-11-14 15:20:26',0); diff --git a/dbm-services/common/db-config/assets/migrations/000020_tendbha_data.up.sql b/dbm-services/common/db-config/assets/migrations/000020_tendbha_data.up.sql index f2a77ebbfe..a4992092c8 100644 --- a/dbm-services/common/db-config/assets/migrations/000020_tendbha_data.up.sql +++ b/dbm-services/common/db-config/assets/migrations/000020_tendbha_data.up.sql @@ -479,7 +479,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (133,'tendbha','dbconf','MySQL-5.6','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-04-25 10:00:47','2023-04-19 15:10:13',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (5321,'tendbha','dbconf','MySQL-5.6','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect','2022-06-16 21:39:26','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (134,'tendbha','dbconf','MySQL-5.6','mysqld.slave_parallel_type','STRING','DATABASE','DATABASE| LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specifies if the slave will use database partitioning or information from master to parallelize transactions.(Default: SCHEMA).','2022-04-25 10:00:47','2023-04-17 14:55:08',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (135,'tendbha','dbconf','MySQL-5.6','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2022-04-25 10:00:47','2023-04-17 14:58:13',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (135,'tendbha','dbconf','MySQL-5.6','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2022-04-25 10:00:47','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (5322,'tendbha','dbconf','MySQL-5.6','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN','TABLE_SCAN,INDEX_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'When preparing batches of rows for row-based logging and replication, this variable controls how the rows are searched for matches.','2022-06-16 21:39:26','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (5323,'tendbha','dbconf','MySQL-5.6','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable','2022-06-16 21:39:26','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (136,'tendbha','dbconf','MySQL-5.6','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-04-25 10:00:47','2023-04-17 15:00:55',0); @@ -728,7 +728,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (59,'tendbha','dbconf','MySQL-5.7','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-04-25 10:00:47','2023-04-19 15:10:13',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (5162,'tendbha','dbconf','MySQL-5.7','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect','2022-06-16 21:39:26','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (60,'tendbha','dbconf','MySQL-5.7','mysqld.slave_parallel_type','STRING','DATABASE','DATABASE| LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specifies if the slave will use database partitioning or information from master to parallelize transactions.(Default: DATABASE).','2022-04-25 10:00:47','2023-04-17 14:55:08',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (61,'tendbha','dbconf','MySQL-5.7','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2022-04-25 10:00:47','2023-04-17 14:58:13',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (61,'tendbha','dbconf','MySQL-5.7','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2022-04-25 10:00:47','2024-03-26 10:24:50',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (5163,'tendbha','dbconf','MySQL-5.7','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN','TABLE_SCAN,INDEX_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'When preparing batches of rows for row-based logging and replication, this variable controls how the rows are searched for matches.','2022-06-16 21:39:26','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (5164,'tendbha','dbconf','MySQL-5.7','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable','2022-06-16 21:39:26','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (62,'tendbha','dbconf','MySQL-5.7','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specify the initial slow query log state.','2022-04-25 10:00:47','2023-04-17 14:35:44',0); @@ -976,7 +976,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (387,'tendbha','dbconf','MySQL-8.0','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-04-25 10:00:47','2023-08-09 11:34:38',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (4980,'tendbha','dbconf','MySQL-8.0','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect','2022-06-16 21:39:26','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (388,'tendbha','dbconf','MySQL-8.0','mysqld.slave_parallel_type','STRING','LOGICAL_CLOCK','DATABASE| LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specifies if the slave will use database partitioning or information from master to parallelize transactions.(Default: DATABASE).','2022-04-25 10:00:47','2023-08-09 11:34:38',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (389,'tendbha','dbconf','MySQL-8.0','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2022-04-25 10:00:47','2023-08-09 11:34:38',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (389,'tendbha','dbconf','MySQL-8.0','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2022-04-25 10:00:47','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (4981,'tendbha','dbconf','MySQL-8.0','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN,HASH_SCAN','TABLE_SCAN,INDEX_SCAN| INDEX_SCAN,HASH_SCAN| TABLE_SCAN,HASH_SCAN| TABLE_SCAN,INDEX_SCAN,HASH_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'When preparing batches of rows for row-based logging and replication, this variable controls how the rows are searched for matches.','2022-06-16 21:39:26','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (4982,'tendbha','dbconf','MySQL-8.0','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable','2022-06-16 21:39:26','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (390,'tendbha','dbconf','MySQL-8.0','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specify the initial slow query log state.','2022-04-25 10:00:47','2023-04-17 14:35:44',0); @@ -1224,7 +1224,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18436,'tendbha','dbconf','TXSQL-8.0','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-11-14 15:18:34','2023-11-14 15:18:34',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18437,'tendbha','dbconf','TXSQL-8.0','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'The number of seconds to wait for more data from the master before the slave considers the connection broken, aborts the read, and tries to reconnect','2023-11-14 15:18:34','2023-11-14 15:18:34',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18438,'tendbha','dbconf','TXSQL-8.0','mysqld.slave_parallel_type','STRING','LOGICAL_CLOCK','DATABASE| LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specifies if the slave will use database partitioning or information from master to parallelize transactions.(Default: DATABASE).','2023-11-14 15:18:34','2023-11-14 15:18:34',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18439,'tendbha','dbconf','TXSQL-8.0','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-11-14 15:18:34','2023-11-14 15:18:34',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18439,'tendbha','dbconf','TXSQL-8.0','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Enable multithreading on the replica and set the number of application threads used to execute replicated transactions in parallel.','2023-11-14 15:18:34','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18440,'tendbha','dbconf','TXSQL-8.0','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN,HASH_SCAN','TABLE_SCAN,INDEX_SCAN| INDEX_SCAN,HASH_SCAN| TABLE_SCAN,HASH_SCAN| TABLE_SCAN,INDEX_SCAN,HASH_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'When preparing batches of rows for row-based logging and replication, this variable controls how the rows are searched for matches.','2023-11-14 15:18:34','2023-11-14 15:18:34',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18441,'tendbha','dbconf','TXSQL-8.0','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'If creating a thread takes longer than this many seconds, the server increments the Slow_launch_threads status variable','2023-11-14 15:18:34','2023-11-14 15:18:34',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18442,'tendbha','dbconf','TXSQL-8.0','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,'Specify the initial slow query log state.','2023-11-14 15:18:34','2023-11-14 15:18:34',0); diff --git a/dbm-services/common/db-config/assets/migrations/000021_tendbsingle_data.up.sql b/dbm-services/common/db-config/assets/migrations/000021_tendbsingle_data.up.sql index 6850bed167..887056eb51 100644 --- a/dbm-services/common/db-config/assets/migrations/000021_tendbsingle_data.up.sql +++ b/dbm-services/common/db-config/assets/migrations/000021_tendbsingle_data.up.sql @@ -451,7 +451,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9427,'tendbsingle','dbconf','MySQL-5.6','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-04-19 15:10:13',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9428,'tendbsingle','dbconf','MySQL-5.6','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9429,'tendbsingle','dbconf','MySQL-5.6','mysqld.slave_parallel_type','STRING','DATABASE','DATABASE| LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-04-17 14:55:08',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9430,'tendbsingle','dbconf','MySQL-5.6','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-04-17 14:58:13',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9430,'tendbsingle','dbconf','MySQL-5.6','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9431,'tendbsingle','dbconf','MySQL-5.6','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN','TABLE_SCAN,INDEX_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9432,'tendbsingle','dbconf','MySQL-5.6','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9433,'tendbsingle','dbconf','MySQL-5.6','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-04-17 15:00:55',0); @@ -697,7 +697,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9879,'tendbsingle','dbconf','MySQL-5.7','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-04-19 15:10:13',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9880,'tendbsingle','dbconf','MySQL-5.7','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9881,'tendbsingle','dbconf','MySQL-5.7','mysqld.slave_parallel_type','STRING','DATABASE','DATABASE| LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-04-17 14:55:08',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9882,'tendbsingle','dbconf','MySQL-5.7','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-04-17 14:58:13',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9882,'tendbsingle','dbconf','MySQL-5.7','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9883,'tendbsingle','dbconf','MySQL-5.7','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN','TABLE_SCAN,INDEX_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9884,'tendbsingle','dbconf','MySQL-5.7','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (9885,'tendbsingle','dbconf','MySQL-5.7','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-04-17 14:35:44',0); @@ -942,7 +942,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (10346,'tendbsingle','dbconf','MySQL-8.0','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-08-09 11:34:38',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (10347,'tendbsingle','dbconf','MySQL-8.0','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (10348,'tendbsingle','dbconf','MySQL-8.0','mysqld.slave_parallel_type','STRING','LOGICAL_CLOCK','DATABASE | LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-08-09 11:34:38',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (10349,'tendbsingle','dbconf','MySQL-8.0','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-08-09 11:34:38',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (10349,'tendbsingle','dbconf','MySQL-8.0','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (10350,'tendbsingle','dbconf','MySQL-8.0','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN,HASH_SCAN','TABLE_SCAN,INDEX_SCAN| INDEX_SCAN,HASH_SCAN| TABLE_SCAN,HASH_SCAN| TABLE_SCAN,INDEX_SCAN,HASH_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (10351,'tendbsingle','dbconf','MySQL-8.0','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2022-10-20 12:26:09',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (10352,'tendbsingle','dbconf','MySQL-8.0','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2022-09-26 18:11:34','2023-04-17 14:35:44',0); @@ -1187,7 +1187,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18688,'tendbsingle','dbconf','TXSQL-8.0','mysqld.slave_exec_mode','STRING','STRICT','|STRICT|IDEMPOTENT','ENUM',1,0,0,0,1,NULL,NULL,NULL,-1,NULL,NULL,'2023-11-14 15:20:18','2023-11-14 15:20:18',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18689,'tendbsingle','dbconf','TXSQL-8.0','mysqld.slave_net_timeout','INT','120','[15,300]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2023-11-14 15:20:18','2023-11-14 15:20:18',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18690,'tendbsingle','dbconf','TXSQL-8.0','mysqld.slave_parallel_type','STRING','LOGICAL_CLOCK','DATABASE | LOGICAL_CLOCK','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2023-11-14 15:20:18','2023-11-14 15:20:18',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18691,'tendbsingle','dbconf','TXSQL-8.0','mysqld.slave_parallel_workers','INT','4','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2023-11-14 15:20:18','2023-11-14 15:20:18',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18691,'tendbsingle','dbconf','TXSQL-8.0','mysqld.slave_parallel_workers','INT','0','0| 1| 2| 4| 8| 16| 32| 64','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2023-11-14 15:20:18','2024-03-26 10:25:20',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18692,'tendbsingle','dbconf','TXSQL-8.0','mysqld.slave_rows_search_algorithms','STRING','TABLE_SCAN,INDEX_SCAN,HASH_SCAN','TABLE_SCAN,INDEX_SCAN| INDEX_SCAN,HASH_SCAN| TABLE_SCAN,HASH_SCAN| TABLE_SCAN,INDEX_SCAN,HASH_SCAN ','ENUM',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2023-11-14 15:20:18','2023-11-14 15:20:18',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18693,'tendbsingle','dbconf','TXSQL-8.0','mysqld.slow_launch_time','INT','2','[1,10]','RANGE',-1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2023-11-14 15:20:18','2023-11-14 15:20:18',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (18694,'tendbsingle','dbconf','TXSQL-8.0','mysqld.slow_query_log','STRING','ON','ON | OFF','ENUM',1,0,0,0,0,NULL,NULL,NULL,-1,NULL,NULL,'2023-11-14 15:20:18','2023-11-14 15:20:18',0); diff --git a/dbm-services/common/db-config/assets/migrations/000029_pulsar_data.up.sql b/dbm-services/common/db-config/assets/migrations/000029_pulsar_data.up.sql index 7d43104a03..bcce6fa86f 100644 --- a/dbm-services/common/db-config/assets/migrations/000029_pulsar_data.up.sql +++ b/dbm-services/common/db-config/assets/migrations/000029_pulsar_data.up.sql @@ -250,7 +250,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (13549,'pulsar','dbconf','2.10.1','broker.defaultNamespaceBundleSplitAlgorithm','STRING','range_equally_divide','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (13325,'pulsar','dbconf','2.10.1','broker.defaultNumberOfNamespaceBundles','STRING','4','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (13302,'pulsar','dbconf','2.10.1','broker.defaultNumPartitions','STRING','{{partitions}}','NULL','',2,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-04-17 17:10:41',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (13568,'pulsar','dbconf','2.10.1','broker.defaultRetentionSizeInMB','STRING','0','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (13568,'pulsar','dbconf','2.10.1','broker.defaultRetentionSizeInMB','STRING','-1','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2024-03-12 17:41:56',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (13567,'pulsar','dbconf','2.10.1','broker.defaultRetentionTimeInMinutes','STRING','{{retention_time}}','NULL','',2,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-04-17 17:10:41',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (13388,'pulsar','dbconf','2.10.1','broker.delayedDeliveryEnabled','STRING','true','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (13389,'pulsar','dbconf','2.10.1','broker.delayedDeliveryTickTimeMillis','STRING','1000','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); @@ -684,7 +684,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20275,'pulsar','dbconf','2.10.4','broker.bookkeeperTLSTrustCertTypes','STRING','PEM','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20276,'pulsar','dbconf','2.10.4','broker.bookkeeperTLSTrustStorePasswordPath','STRING','','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20277,'pulsar','dbconf','2.10.4','broker.bookkeeperUseV2WireProtocol','STRING','true','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20590,'pulsar','dbconf','2.10.4','broker.bookkeeper_tlsHostnameVerificationEnabled','STRING','50000','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20590,'pulsar','dbconf','2.10.4','broker.bookkeeper_tlsHostnameVerificationEnabled','STRING','false','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2024-03-18 20:03:08',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20278,'pulsar','dbconf','2.10.4','broker.bootstrapNamespaces','STRING','','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20279,'pulsar','dbconf','2.10.4','broker.brokerClientAuthenticationParameters','STRING','{{token}}','NULL','',2,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-05-11 16:53:57',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20280,'pulsar','dbconf','2.10.4','broker.brokerClientAuthenticationPlugin','STRING','org.apache.pulsar.client.impl.auth.AuthenticationToken','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 15:45:57',0); @@ -727,7 +727,7 @@ INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, ` INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20317,'pulsar','dbconf','2.10.4','broker.defaultNamespaceBundleSplitAlgorithm','STRING','range_equally_divide','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20318,'pulsar','dbconf','2.10.4','broker.defaultNumberOfNamespaceBundles','STRING','4','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20319,'pulsar','dbconf','2.10.4','broker.defaultNumPartitions','STRING','{{partitions}}','NULL','',2,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-04-17 17:10:41',0); -INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20320,'pulsar','dbconf','2.10.4','broker.defaultRetentionSizeInMB','STRING','0','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); +INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20320,'pulsar','dbconf','2.10.4','broker.defaultRetentionSizeInMB','STRING','-1','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2024-03-12 17:41:57',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20321,'pulsar','dbconf','2.10.4','broker.defaultRetentionTimeInMinutes','STRING','{{retention_time}}','NULL','',2,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-04-17 17:10:41',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20322,'pulsar','dbconf','2.10.4','broker.delayedDeliveryEnabled','STRING','true','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); INSERT INTO `tb_config_name_def` (`id`, `namespace`, `conf_type`, `conf_file`, `conf_name`, `value_type`, `value_default`, `value_allowed`, `value_type_sub`, `flag_status`, `flag_disable`, `flag_locked`, `flag_encrypt`, `need_restart`, `value_formula`, `extra_info`, `conf_name_lc`, `order_index`, `since_version`, `description`, `created_at`, `updated_at`, `stage`) VALUES (20589,'pulsar','dbconf','2.10.4','broker.delayedDeliveryFixedDelayDetectionLookahead','STRING','50000','NULL','',1,0,0,0,1,'NULL','NULL','NULL',-1,'NULL','pulsar config','2023-01-13 11:26:00','2023-01-13 11:26:00',0); diff --git a/dbm-services/common/db-config/assets/migrations/000040_tendbcommon_data.down.sql b/dbm-services/common/db-config/assets/migrations/000040_tendbcommon_data.down.sql new file mode 100644 index 0000000000..2b224f1c61 --- /dev/null +++ b/dbm-services/common/db-config/assets/migrations/000040_tendbcommon_data.down.sql @@ -0,0 +1,2 @@ +DELETE FROM tb_config_file_def WHERE namespace='tendbcommon'; +DELETE FROM tb_config_name_def WHERE namespace='tendbcommon' AND (flag_encrypt!=1 or value_default like '{{%'); diff --git a/dbm-services/common/db-config/assets/migrations/000040_tendbcommon_data.up.sql b/dbm-services/common/db-config/assets/migrations/000040_tendbcommon_data.up.sql new file mode 100644 index 0000000000..73972228ee --- /dev/null +++ b/dbm-services/common/db-config/assets/migrations/000040_tendbcommon_data.up.sql @@ -0,0 +1,74 @@ +-- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64) +-- +-- Host: localhost Database: bk_dbconfig +-- ------------------------------------------------------ +-- Server version 5.7.20-tmysql-3.3-log +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!50717 SELECT COUNT(*) INTO @rocksdb_has_p_s_session_variables FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'performance_schema' AND TABLE_NAME = 'session_variables' */; +/*!50717 SET @rocksdb_get_is_supported = IF (@rocksdb_has_p_s_session_variables, 'SELECT COUNT(*) INTO @rocksdb_is_supported FROM performance_schema.session_variables WHERE VARIABLE_NAME=\'rocksdb_bulk_load\'', 'SELECT 0') */; +/*!50717 PREPARE s FROM @rocksdb_get_is_supported */; +/*!50717 EXECUTE s */; +/*!50717 DEALLOCATE PREPARE s */; +/*!50717 SET @rocksdb_enable_bulk_load = IF (@rocksdb_is_supported, 'SET SESSION rocksdb_bulk_load = 1', 'SET @rocksdb_dummy_bulk_load = 0') */; +/*!50717 PREPARE s FROM @rocksdb_enable_bulk_load */; +/*!50717 EXECUTE s */; +/*!50717 DEALLOCATE PREPARE s */; + +-- +-- Dumping data for table `tb_config_file_def` +-- +-- WHERE: namespace='tendbcommon' + +/*!50112 SET @disable_bulk_load = IF (@is_rocksdb_supported, 'SET SESSION rocksdb_bulk_load = @old_rocksdb_bulk_load', 'SET @dummy_rocksdb_bulk_load = 0') */; +/*!50112 PREPARE s FROM @disable_bulk_load */; +/*!50112 EXECUTE s */; +/*!50112 DEALLOCATE PREPARE s */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64) +-- +-- Host: localhost Database: bk_dbconfig +-- ------------------------------------------------------ +-- Server version 5.7.20-tmysql-3.3-log +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!50717 SELECT COUNT(*) INTO @rocksdb_has_p_s_session_variables FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'performance_schema' AND TABLE_NAME = 'session_variables' */; +/*!50717 SET @rocksdb_get_is_supported = IF (@rocksdb_has_p_s_session_variables, 'SELECT COUNT(*) INTO @rocksdb_is_supported FROM performance_schema.session_variables WHERE VARIABLE_NAME=\'rocksdb_bulk_load\'', 'SELECT 0') */; +/*!50717 PREPARE s FROM @rocksdb_get_is_supported */; +/*!50717 EXECUTE s */; +/*!50717 DEALLOCATE PREPARE s */; +/*!50717 SET @rocksdb_enable_bulk_load = IF (@rocksdb_is_supported, 'SET SESSION rocksdb_bulk_load = 1', 'SET @rocksdb_dummy_bulk_load = 0') */; +/*!50717 PREPARE s FROM @rocksdb_enable_bulk_load */; +/*!50717 EXECUTE s */; +/*!50717 DEALLOCATE PREPARE s */; + +-- +-- Dumping data for table `tb_config_name_def` +-- +-- WHERE: namespace='tendbcommon' AND (flag_encrypt!=1 or value_default like '{{%') + +/*!50112 SET @disable_bulk_load = IF (@is_rocksdb_supported, 'SET SESSION rocksdb_bulk_load = @old_rocksdb_bulk_load', 'SET @dummy_rocksdb_bulk_load = 0') */; +/*!50112 PREPARE s FROM @disable_bulk_load */; +/*!50112 EXECUTE s */; +/*!50112 DEALLOCATE PREPARE s */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/dbm-services/common/db-config/internal/api/config_base.go b/dbm-services/common/db-config/internal/api/config_base.go index f411404c88..c966568b77 100644 --- a/dbm-services/common/db-config/internal/api/config_base.go +++ b/dbm-services/common/db-config/internal/api/config_base.go @@ -77,7 +77,7 @@ func (v *UpLevelInfo) GetLevelValue(levelName string) string { type BaseLevelDef struct { // 配置层级名,当前允许值 `app`,`module`,`cluster`,`instance` // 配合 flag_locked 锁定标记,可以知道 锁定级别 - LevelName string `json:"level_name" label:"level" form:"level_name" validate:"required,enums" enums:"plat,app,module,cluster,instance" example:"cluster"` + LevelName string `json:"level_name" label:"level" form:"level_name" validate:"required,enums" enums:"plat,app,bk_cloud_id,module,cluster,instance" example:"cluster"` // 配置层级值 LevelValue string `json:"level_value" form:"level_value"` } @@ -85,7 +85,7 @@ type BaseLevelDef struct { // BaseLevelsDef TODO type BaseLevelsDef struct { // 配置层级名,当前允许值 `app`,`module`,`cluster`,`instance` - LevelName string `json:"level_name" form:"level_name" validate:"required,enums" enums:"plat,app,module,cluster,instance" example:"cluster"` + LevelName string `json:"level_name" form:"level_name" validate:"required,enums" enums:"plat,app,bk_cloud_id,module,cluster,instance" example:"cluster"` // 配置层级值, array 多个 LevelValues []string `json:"level_values" form:"level_values" validate:"required"` } diff --git a/dbm-services/common/db-config/internal/pkg/cst/const.go b/dbm-services/common/db-config/internal/pkg/cst/const.go index 96c1bc2be2..81d36957c7 100644 --- a/dbm-services/common/db-config/internal/pkg/cst/const.go +++ b/dbm-services/common/db-config/internal/pkg/cst/const.go @@ -9,6 +9,7 @@ var ConfigLevelMap = map[string]int{ constvar.LevelPlat: 10, "app": 20, "bk_biz_id": 20, + "bk_cloud_id": 25, "module": 30, "db_module_id": 30, "cluster": 50, diff --git a/dbm-services/common/db-config/internal/repository/model/config_item_check.go b/dbm-services/common/db-config/internal/repository/model/config_item_check.go index 08211bbea5..dbbafd37ad 100644 --- a/dbm-services/common/db-config/internal/repository/model/config_item_check.go +++ b/dbm-services/common/db-config/internal/repository/model/config_item_check.go @@ -14,7 +14,7 @@ import ( // GetConfigItemsAssociateNodes TODO // 获取与本层级节点相关的节点:当前节点的 所有父节点 与 所有子节点 -// 暂时允许的层级级别 plat,app,module,cluster +// 暂时允许的层级级别 plat,app,bk_cloud_id,module,cluster func (c *ConfigModelView) GetConfigItemsAssociateNodes() (map[string]interface{}, map[string]interface{}, error) { upLevels := cst.GetConfigLevelsUp(c.LevelName) downLevels := cst.GetConfigLevelsDown(c.LevelName) diff --git a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_logical.go b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_logical.go index 1f7f7e0a24..73fc378d89 100644 --- a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_logical.go +++ b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_logical.go @@ -21,8 +21,10 @@ import ( // LogicalDumper TODO type LogicalDumper struct { - cnf *config.BackupConfig - dbbackupHome string + cnf *config.BackupConfig + dbbackupHome string + backupStartTime time.Time + backupEndTime time.Time } func (l *LogicalDumper) initConfig(mysqlVerStr string) error { @@ -40,6 +42,10 @@ func (l *LogicalDumper) initConfig(mysqlVerStr string) error { // Execute excute dumping backup with logical backup tool func (l *LogicalDumper) Execute(enableTimeOut bool) error { + l.backupStartTime = time.Now() + defer func() { + l.backupEndTime = time.Now() + }() binPath := filepath.Join(l.dbbackupHome, "/bin/mydumper") args := []string{ "-h", l.cnf.Public.MysqlHost, diff --git a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_physical.go b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_physical.go index e243622e16..10c417b1d5 100644 --- a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_physical.go +++ b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_physical.go @@ -21,12 +21,14 @@ import ( // PhysicalDumper TODO type PhysicalDumper struct { - cnf *config.BackupConfig - dbbackupHome string - mysqlVersion string // parsed - isOfficial bool - innodbCmd InnodbCommand - storageEngine string + cnf *config.BackupConfig + dbbackupHome string + mysqlVersion string // parsed + isOfficial bool + innodbCmd InnodbCommand + storageEngine string + backupStartTime time.Time + backupEndTime time.Time } func (p *PhysicalDumper) initConfig(mysqlVerStr string) error { @@ -61,6 +63,10 @@ func (p *PhysicalDumper) initConfig(mysqlVerStr string) error { // Execute excute dumping backup with physical backup tool func (p *PhysicalDumper) Execute(enableTimeOut bool) error { + p.backupStartTime = time.Now() + defer func() { + p.backupEndTime = time.Now() + }() if p.storageEngine != "innodb" { err := fmt.Errorf("%s engine not support", p.storageEngine) logger.Log.Error(err.Error()) @@ -204,13 +210,17 @@ func (p *PhysicalDumper) PrepareBackupMetaInfo(cnf *config.BackupConfig) (*dbare } // parse xtrabackup_info if err = parseXtraInfo(qpressPath, xtrabackupInfoFileName, tmpFileName, &metaInfo); err != nil { - return nil, err + logger.Log.Warnf("xtrabackup_info file not found, use current time as BackupEndTime") + metaInfo.BackupBeginTime, _ = time.Parse(time.DateTime, p.backupStartTime.Format(time.DateTime)) + metaInfo.BackupEndTime, _ = time.Parse(time.DateTime, p.backupEndTime.Format(time.DateTime)) } // parse xtrabackup_timestamp_info if err := parseXtraTimestamp(qpressPath, xtrabackupTimestampFileName, tmpFileName, &metaInfo); err != nil { - return nil, err + // 此时刚备份完成,还没有开始打包,这里把当前时间认为是 consistent_time,不完善! + logger.Log.Warnf("xtrabackup_timestamp_info file found, use current time as Consistent Time") + metaInfo.BackupConsistentTime, _ = time.Parse(time.DateTime, p.backupEndTime.Format(time.DateTime)) } - // parse xtrabackup_binlog_info + // parse xtrabackup_binlog_info 本机的 binlog file,pos if masterStatus, err := parseXtraBinlogInfo(qpressPath, xtrabackupBinlogInfoFileName, tmpFileName); err != nil { return nil, err } else { @@ -219,7 +229,7 @@ func (p *PhysicalDumper) PrepareBackupMetaInfo(cnf *config.BackupConfig) (*dbare metaInfo.BinlogInfo.ShowMasterStatus.MasterPort = cnf.Public.MysqlPort } - // parse xtrabackup_slave_info + // parse xtrabackup_slave_info 如果是 slave,获取它的 master file,pos if mysqlRole := strings.ToLower(cnf.Public.MysqlRole); mysqlRole == cst.RoleSlave || mysqlRole == cst.RoleRepeater { if slaveStatus, err := parseXtraSlaveInfo(qpressPath, xtrabackupSlaveInfoFileName, tmpFileName); err != nil { return nil, err diff --git a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/prepareinfo.go b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/prepareinfo.go index 3de3e2f34b..544c78fcbd 100644 --- a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/prepareinfo.go +++ b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/prepareinfo.go @@ -112,12 +112,12 @@ func openXtrabackupFile(binpath string, fileName string, tmpFileName string) (*o // return startTime,endTime,error func parseXtraInfo(qpress string, fileName string, tmpFileName string, metaInfo *dbareport.IndexContent) error { tmpFile, err := openXtrabackupFile(qpress, fileName, tmpFileName) - if err != nil { - return err - } defer func() { _ = tmpFile.Close() }() + if err != nil { + return err + } buf := bufio.NewScanner(tmpFile) var startTimeStr, endTimeStr string @@ -144,15 +144,12 @@ func parseXtraInfo(qpress string, fileName string, tmpFileName string, metaInfo // parseXtraTimestamp get consistentTime from xtrabackup_timestamp_info(if exists) func parseXtraTimestamp(qpress string, fileName string, tmpFileName string, metaInfo *dbareport.IndexContent) error { tmpFile, err := openXtrabackupFile(qpress, fileName, tmpFileName) - xtrabackupTimestampFileExist := true - if err != nil { - xtrabackupTimestampFileExist = false - //return nil - } defer func() { _ = tmpFile.Close() }() - if xtrabackupTimestampFileExist { + if err != nil { + return err + } else { buf := bufio.NewScanner(tmpFile) for buf.Scan() { line := buf.Text() @@ -161,12 +158,6 @@ func parseXtraTimestamp(qpress string, fileName string, tmpFileName string, meta return errors.Wrapf(err, "parse BackupConsistentTime %s", line) } } - } else { - // 此时刚备份完成,还没有开始打包,这里把当前时间认为是 consistent_time,不完善! - logger.Log.Warnf("xtrabackup_info file not found: %s, use current time as Consistent Time", fileName) - // TODO 时区问题,待处理 - timeNowStr := time.Now().Format(time.RFC3339) // 去除秒以后的时间,保持格式化 - metaInfo.BackupConsistentTime, _ = time.Parse(time.RFC3339, timeNowStr) } return nil } diff --git a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/dbareport/backup_report.go b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/dbareport/backup_report.go index 6026289442..1a34974861 100644 --- a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/dbareport/backup_report.go +++ b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/dbareport/backup_report.go @@ -349,7 +349,7 @@ func (r *BackupLogReport) ReportBackupResult(indexFilePath string, index, upload metaInfo.AddIndexFileItem(indexFilePath) } - var err2 error + var err2 error // 是否备份上传出错 if upload { // 上传、上报备份文件 for _, f := range metaInfo.FileList { @@ -357,10 +357,8 @@ func (r *BackupLogReport) ReportBackupResult(indexFilePath string, index, upload var taskId string var err22 error if taskId, err22 = r.ExecuteBackupClient(filePath); err22 != nil { - err2 = errs.Join(err, err22) - //return err - } else { - taskId = "-1" + err2 = errs.Join(err2, err22) + taskId = "" } f.TaskId = taskId backupTaskResult := BackupLogReport{} diff --git a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/util/misc.go b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/util/misc.go index 830d1251b7..1810b46ba2 100644 --- a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/util/misc.go +++ b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/util/misc.go @@ -116,6 +116,18 @@ func CalServerDataSize(port int) (uint64, error) { return strconv.ParseUint(words[0], 10, 64) } +func CalBackupDataSize() (uint64, error) { + // 如果不是全部数据备份, + + // 逻辑备份, total_filesize*1.5 + 20G + // 物理备份, total_filesize*1.2 + 20G + + // 如果没有找到历史备份 + // 逻辑备份*1 + // 物理备份 + return 0, nil +} + // DiskUsage Get disk usage info func DiskUsage(path string) (disk DiskStatus, err error) { switch runtime.GOOS { @@ -144,7 +156,8 @@ func CheckDiskSpace(backupDir string, mysqlPort int) error { if err != nil { return err } - if diskSpaceInfo.Free < backupSize*2 { + + if diskSpaceInfo.Free < backupSize*1 { err = errors.New("free space is not enough") return err } diff --git a/dbm-ui/backend/db_periodic_task/local_tasks/mysql_backup/task.py b/dbm-ui/backend/db_periodic_task/local_tasks/mysql_backup/task.py index 24f16b851c..650f7537bd 100644 --- a/dbm-ui/backend/db_periodic_task/local_tasks/mysql_backup/task.py +++ b/dbm-ui/backend/db_periodic_task/local_tasks/mysql_backup/task.py @@ -20,7 +20,6 @@ logger = logging.getLogger("celery") -# @register_periodic_task(run_every=crontab(minute="*/1")) @register_periodic_task(run_every=crontab(minute=33, hour=2)) def mysql_backup_check_task(): """