198 lines
24 KiB
Django/Jinja
198 lines
24 KiB
Django/Jinja
/*
|
||
Navicat MySQL Data Transfer
|
||
|
||
Target Server Type : MYSQL
|
||
Target Server Version : 50505
|
||
File Encoding : 65001
|
||
|
||
Date: 2021-09-23 14:05:11
|
||
*/
|
||
|
||
SET FOREIGN_KEY_CHECKS=0;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for `xxl_job_group`
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `xxl_job_group`;
|
||
CREATE TABLE `xxl_job_group` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`app_name` varchar(64) NOT NULL COMMENT '执行器AppName',
|
||
`title` varchar(64) NOT NULL COMMENT '执行器名称',
|
||
`address_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '执行器地址类型:0=自动注册、1=手动录入',
|
||
`address_list` varchar(512) DEFAULT NULL COMMENT '执行器地址列表,多地址逗号分隔',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for `xxl_job_lock`
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `xxl_job_lock`;
|
||
CREATE TABLE `xxl_job_lock` (
|
||
`lock_name` varchar(50) NOT NULL COMMENT '锁名称',
|
||
PRIMARY KEY (`lock_name`) USING BTREE
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of xxl_job_lock
|
||
-- ----------------------------
|
||
INSERT INTO `xxl_job_lock` VALUES ('schedule_lock');
|
||
|
||
-- ----------------------------
|
||
-- Table structure for `xxl_job_log`
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `xxl_job_log`;
|
||
CREATE TABLE `xxl_job_log` (
|
||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||
`job_group` int(11) NOT NULL COMMENT '执行器主键ID',
|
||
`job_id` int(11) NOT NULL COMMENT '任务,主键ID',
|
||
`executor_address` varchar(255) DEFAULT NULL COMMENT '执行器地址,本次执行的地址',
|
||
`executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler',
|
||
`executor_param` varchar(4000) DEFAULT '' COMMENT '执行器任务参数',
|
||
`executor_sharding_param` varchar(20) DEFAULT NULL COMMENT '执行器任务分片参数,格式如 1/2',
|
||
`executor_fail_retry_count` int(11) NOT NULL DEFAULT 0 COMMENT '失败重试次数',
|
||
`trigger_time` datetime DEFAULT NULL COMMENT '调度-时间',
|
||
`trigger_code` int(11) NOT NULL COMMENT '调度-结果',
|
||
`trigger_msg` text DEFAULT NULL COMMENT '调度-日志',
|
||
`handle_time` datetime DEFAULT NULL COMMENT '执行-时间',
|
||
`handle_code` int(11) NOT NULL COMMENT '执行-状态',
|
||
`handle_msg` text DEFAULT NULL COMMENT '执行-日志',
|
||
`alarm_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '告警状态:0-默认、1-无需告警、2-告警成功、3-告警失败',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
KEY `I_trigger_time` (`trigger_time`) USING BTREE,
|
||
KEY `I_handle_code` (`handle_code`) USING BTREE
|
||
) ENGINE=InnoDB AUTO_INCREMENT=2077229 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of xxl_job_log
|
||
-- ----------------------------
|
||
|
||
-- ----------------------------
|
||
-- Table structure for `xxl_job_logglue`
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `xxl_job_logglue`;
|
||
CREATE TABLE `xxl_job_logglue` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`job_id` int(11) NOT NULL COMMENT '任务,主键ID',
|
||
`glue_type` varchar(50) DEFAULT NULL COMMENT 'GLUE类型',
|
||
`glue_source` mediumtext DEFAULT NULL COMMENT 'GLUE源代码',
|
||
`glue_remark` varchar(128) NOT NULL COMMENT 'GLUE备注',
|
||
`add_time` datetime DEFAULT NULL,
|
||
`update_time` datetime DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of xxl_job_logglue
|
||
-- ----------------------------
|
||
|
||
-- ----------------------------
|
||
-- Table structure for `xxl_job_log_report`
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `xxl_job_log_report`;
|
||
CREATE TABLE `xxl_job_log_report` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`trigger_day` datetime DEFAULT NULL COMMENT '调度-时间',
|
||
`running_count` int(11) NOT NULL DEFAULT 0 COMMENT '运行中-日志数量',
|
||
`suc_count` int(11) NOT NULL DEFAULT 0 COMMENT '执行成功-日志数量',
|
||
`fail_count` int(11) NOT NULL DEFAULT 0 COMMENT '执行失败-日志数量',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
UNIQUE KEY `i_trigger_day` (`trigger_day`) USING BTREE
|
||
) ENGINE=InnoDB AUTO_INCREMENT=786 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of xxl_job_log_report
|
||
-- ----------------------------
|
||
|
||
-- ----------------------------
|
||
-- Table structure for `xxl_job_registry`
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `xxl_job_registry`;
|
||
CREATE TABLE `xxl_job_registry` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`registry_group` varchar(50) NOT NULL,
|
||
`registry_key` varchar(255) NOT NULL,
|
||
`registry_value` varchar(255) NOT NULL,
|
||
`update_time` datetime DEFAULT NULL,
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`) USING BTREE
|
||
) ENGINE=InnoDB AUTO_INCREMENT=276 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Table structure for `xxl_job_user`
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `xxl_job_user`;
|
||
CREATE TABLE `xxl_job_user` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`username` varchar(50) NOT NULL COMMENT '账号',
|
||
`password` varchar(50) NOT NULL COMMENT '密码',
|
||
`role` tinyint(4) NOT NULL COMMENT '角色:0-普通用户、1-管理员',
|
||
`permission` varchar(255) DEFAULT NULL COMMENT '权限:执行器ID列表,多个逗号分割',
|
||
PRIMARY KEY (`id`) USING BTREE,
|
||
UNIQUE KEY `i_username` (`username`) USING BTREE
|
||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
||
|
||
-- ----------------------------
|
||
-- Records of xxl_job_user
|
||
-- ----------------------------
|
||
INSERT INTO `xxl_job_user` VALUES ('1', 'admin', 'fea191a3fdd9f68503f9fa0e8d0293ab', '1', null);
|
||
INSERT INTO `xxl_job_user` VALUES ('2', 'query', '95497ea23bf8d27d86526717578e366f', '0', '3');
|
||
|
||
-- ----------------------------
|
||
-- Table structure for `xxl_job_info`
|
||
-- ----------------------------
|
||
DROP TABLE IF EXISTS `xxl_job_info`;
|
||
CREATE TABLE `xxl_job_info` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`job_group` int(11) NOT NULL COMMENT '执行器主键ID',
|
||
`job_cron` varchar(128) NOT NULL COMMENT '任务执行CRON',
|
||
`job_desc` varchar(255) NOT NULL,
|
||
`add_time` datetime DEFAULT NULL,
|
||
`update_time` datetime DEFAULT NULL,
|
||
`author` varchar(64) DEFAULT NULL COMMENT '作者',
|
||
`alarm_email` varchar(255) DEFAULT NULL COMMENT '报警邮件',
|
||
`executor_route_strategy` varchar(50) DEFAULT NULL COMMENT '执行器路由策略',
|
||
`executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler',
|
||
`executor_param` varchar(4000) DEFAULT '' COMMENT '执行器任务参数',
|
||
`executor_block_strategy` varchar(50) DEFAULT NULL COMMENT '阻塞处理策略',
|
||
`executor_timeout` int(11) NOT NULL DEFAULT 0 COMMENT '任务执行超时时间,单位秒',
|
||
`executor_fail_retry_count` int(11) NOT NULL DEFAULT 0 COMMENT '失败重试次数',
|
||
`glue_type` varchar(50) NOT NULL COMMENT 'GLUE类型',
|
||
`glue_source` mediumtext DEFAULT NULL COMMENT 'GLUE源代码',
|
||
`glue_remark` varchar(128) DEFAULT NULL COMMENT 'GLUE备注',
|
||
`glue_updatetime` datetime DEFAULT NULL COMMENT 'GLUE更新时间',
|
||
`child_jobid` varchar(255) DEFAULT NULL COMMENT '子任务ID,多个逗号分隔',
|
||
`trigger_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '调度状态:0-停止,1-运行',
|
||
`trigger_last_time` bigint(13) NOT NULL DEFAULT 0 COMMENT '上次调度时间',
|
||
`trigger_next_time` bigint(13) NOT NULL DEFAULT 0 COMMENT '下次调度时间',
|
||
PRIMARY KEY (`id`) USING BTREE
|
||
) ENGINE=InnoDB AUTO_INCREMENT=88 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
|
||
|
||
|
||
-- ----------------------------
|
||
-- Records of xxl_job_group
|
||
-- ----------------------------
|
||
INSERT INTO `xxl_job_group` VALUES (1, 'galaxy-executor', 'GDP', 1, '{{ job_executor_servers }}');
|
||
INSERT INTO `xxl_job_group` VALUES (2, 'galaxy-executor', 'TSG_OLAP', 1, '{{ job_executor_servers }}');
|
||
-- ----------------------------
|
||
-- Records of xxl_job_info
|
||
-- ----------------------------
|
||
INSERT INTO `xxl_job_info` VALUES (29, 2, '{{ cron_expression_2 }}', 'get_storage_daily_usage', '2024-06-30 14:06:48', '2024-07-12 02:06:32', 'galaxy', '', 'FAILOVER', 'getDatabaseStorageQuotaJobHandler', '[\r\n {\r\n \"source\":\r\n {\r\n \"type\": \"storage\",\r\n \"containBytes\": true,\r\n \"items\": \"Traffic Logs,Files,Metrics\"\r\n },\r\n \"sink\":\r\n {\r\n \"type\": \"mariadb\",\r\n \"ip\": \"{{ vrrp_instance.default.virtual_ipaddress }}\",\r\n \"database\": \"tsg_olap\",\r\n \"table\": \"sys_storage_event\",\r\n \"username\": \"root\",\r\n \"pin\": \"{{ mariadb_default_pin }}\"\r\n }\r\n }\r\n]', 'COVER_EARLY', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2024-06-30 14:06:48', '', 1, 1721613600000, 1721700000000);
|
||
INSERT INTO `xxl_job_info` VALUES (36, 2, '0 0/10 * * * ?', 'get_database_storage_quota', '2024-06-19 03:06:04', '2024-07-04 09:29:43', 'galaxy', '', 'FAILOVER', 'getDatabaseStorageQuotaJobHandler', '[\r\n {\r\n \"source\":\r\n {\r\n \"type\": \"storage\",\r\n \"containBytes\": false,\r\n \"items\": \"Traffic Logs,Files,Metrics\"\r\n },\r\n \"sink\":\r\n {\r\n \"type\": \"mariadb\",\r\n \"ip\": \"{{ vrrp_instance.default.virtual_ipaddress }}\",\r\n \"database\": \"tsg_olap\",\r\n \"table\": \"sys_storage_event\",\r\n \"username\": \"root\",\r\n \"pin\": \"{{ mariadb_default_pin }}\"\r\n }\r\n }\r\n]', 'COVER_EARLY', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2024-06-19 03:06:04', '', 1, 1721634600000, 1721635200000);
|
||
|
||
INSERT INTO `xxl_job_info` VALUES (58, 1, '0 0 2 * * ? ', 'set_druid_table_ttl', '2020-07-30 10:34:34', '2024-02-28 03:02:15', 'galaxy', '', 'FAILOVER', 'deleteReportAndMetricsDataJobHandler', '{\"defaultMaxDays\":365,\"maxDays\":30}', 'DISCARD_LATER', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2020-07-30 10:34:34', '', 1, 1709488800000, 1709575200000);
|
||
INSERT INTO `xxl_job_info` VALUES (59, 1, '0 0 0 1 * ?', 'clear_druid_table', '2020-07-30 11:32:08', '2022-04-12 02:38:39', 'galaxy', '', 'FAILOVER', 'deleteAllReportAndMetricsDataJobHandler', '{\"maxDays\":88,\"defaultMaxDays\":365}', 'DISCARD_LATER', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2020-07-30 11:32:08', '', 0, 0, 0);
|
||
INSERT INTO `xxl_job_info` VALUES (62, 1, '0 0 2 * * ? ', 'set_hos_bucket_ttl', '2020-07-30 11:59:30', '2024-02-28 03:02:15', 'galaxy', '', 'FAILOVER', 'deleteFilesJobHandler', '{\"defaultMaxDays\":30,\"maxDays\":30}', 'DISCARD_LATER', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2020-07-30 11:59:30', '', 1, 1709488800000, 1709575200000);
|
||
INSERT INTO `xxl_job_info` VALUES (63, 1, '0 0 0 1 * ?', 'clear_hos_file', '2020-07-30 11:59:43', '2023-10-26 10:43:46', 'galaxy', '', 'FAILOVER', 'deleteAllFilesJobHandler', '{\"defaultMaxDays\":30,\"maxDays\":30}', 'DISCARD_LATER', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2020-07-30 11:59:43', '', 0, 0, 0);
|
||
INSERT INTO `xxl_job_info` VALUES (64, 1, '0 0 0 1 * ?', 'clear_clickhouse_table', '2020-07-30 13:47:25', '2022-04-12 02:38:39', 'galaxy', '', 'FAILOVER', 'deleteAllTrafficDataJobHandler', '{\"maxDays\":77,\"defaultMaxDays\":30}', 'DISCARD_LATER', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2020-07-30 13:47:25', '', 0, 0, 0);
|
||
INSERT INTO `xxl_job_info` VALUES (65, 1, '0 0 0 * * ? ', 'set_clickhouse_table_ttl', '2020-07-30 13:47:38', '2024-02-28 03:02:13', 'galaxy', '', 'FAILOVER', 'deleteTrafficDataJobHandler', '{\"defaultMaxDays\":30,\"maxDays\":30}', 'DISCARD_LATER', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2020-07-30 13:47:38', '', 1, 1709481600000, 1709568000000);
|
||
INSERT INTO xxl_job_info (id, job_group, job_cron, job_desc, add_time, update_time, author, alarm_email, executor_route_strategy, executor_handler, executor_param, executor_block_strategy, executor_timeout, executor_fail_retry_count, glue_type, glue_source, glue_remark, glue_updatetime, child_jobid, trigger_status, trigger_last_time, trigger_next_time) VALUES ('86', '2', '0 0 1 * * ?', 'run_druid_segment_compaction', '2021-07-21 14:13:57', '2023-12-12 02:21:05', 'galaxy', '', 'FAILOVER', 'druidCompactSegmentJobHandler', '[\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"top_server_fqdns\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"top_server_domains\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"top_client_ips\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"top_server_ips\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"top_external_ips\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"top_internal_ips\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"top_client_countries\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"top_server_countries\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"security_rule_hits\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"monitor_rule_hits\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"proxy_rule_hits\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"application_protocol_stat\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\",\r\n \"maxRowsInMemory\": 200000\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"traffic_general_stat\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"dos_sketch_top_server_ip\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"dos_protection_rule_hits\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"dos_protection_rule_metric\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"service_chaining_rule_hits\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"service_function_status\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"statistics_rule_hits\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"traffic_shaping_rule_hits\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"object_statistics\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\",\r\n \"maxRowsInMemory\": 250000\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"statistics_rule\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\",\r\n \"maxRowsInMemory\": 400000,\r\n \"maxBytesInMemory\": -1,\r\n \"splitHintSpec\": {\r\n \"type\": \"maxSize\",\r\n \"maxSplitSize\": \"4GiB\"\r\n },\r\n \"maxNumConcurrentSubTasks\": 2\r\n },\r\n \"context\":{\r\n \"druid.indexer.runner.javaOptsArray\": [\"-Xms4g\", \"-Xmx4g\", \"-XX:MaxDirectMemorySize=1g\"]\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"sys_storage_log\",\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\"\r\n }\r\n }\r\n]', 'DISCARD_LATER', '0', '0', 'BEAN', '', 'GLUE代码初始化', '2021-07-21 14:13:57', '', '1', '1708887600000', '1708974000000');
|
||
|
||
INSERT INTO `xxl_job_info` VALUES (101, 2, '0 0 0 1/7 * ?', 'run_web_sketch_assessment', '2022-01-27 17:40:42', '2024-03-13 05:44:06', 'galaxy', '', 'FAILOVER', 'httpToStoreJobHandler', '[{\r\n \"url\": \"http://{{ vrrp_instance.default.virtual_ipaddress }}:9999/v1/query/sql/\",\r\n \"method\": \"post\",\r\n \"requestBody\": {\r\n \"statement\": \"SELECT server_domain AS name, arrayStringConcat(groupUniqArray(decoded_as),\',\') AS protocol, count(*) AS sessions FROM tsg_galaxy_v3.session_record WHERE recv_time >= toStartOfDay(now()- INTERVAL 7 DAY) AND recv_time < toStartOfDay(now()) AND notEmpty(server_domain) GROUP BY name ORDER BY sessions DESC LIMIT 500000;\",\r\n \"exec_mode\":\"oneshot\",\r\n \"is_dry_run\": 0\r\n},\r\n \"resultKey\": \"data\",\r\n \"store\": \"all\"\r\n}, {\r\n \"url\": \"http://{{ vrrp_instance.default.virtual_ipaddress }}:9999/v1/query/sql/\",\r\n \"method\": \"post\",\r\n \"requestBody\": {\r\n \"statement\": \"SELECT server_domain AS name, arrayStringConcat(groupUniqArray(decoded_as),\',\') AS protocol, count(*) AS sessions FROM tsg_galaxy_v3.session_record WHERE recv_time >= toStartOfDay(now()- INTERVAL 7 DAY) AND recv_time < toStartOfDay(now()) AND notEmpty(server_domain) AND empty(fqdn_category_list) GROUP BY name ORDER BY sessions DESC LIMIT 500000;\",\r\n \"exec_mode\":\"oneshot\",\r\n \"is_dry_run\": 0\r\n},\r\n \"resultKey\": \"data\",\r\n \"store\": \"uncategorized\"\r\n}]', 'COVER_EARLY', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2022-01-27 17:40:42', '', 1, 1709827200000, 1710432000000);
|
||
INSERT INTO `xxl_job_info` VALUES (141, 2, '0 0 2 * * ?', 'set_clickhouse_table_and_field_ttl', '2022-06-07 07:42:38', '2022-06-08 09:28:19', 'galaxy', '', 'FIRST', 'changeCkTtlJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2022-06-07 07:42:38', '', 1, 1709488800000, 1709575200000);
|
||
INSERT INTO `xxl_job_info` VALUES (143, 2, '0 0 0/1 * * ?', 'run_ip_learning', '2022-11-09 10:29:20', '2024-02-19 02:32:54', 'galaxy', '', 'BUSYOVER', '', '', 'SERIAL_EXECUTION', 0, 0, 'GLUE_SHELL', '#!/bin/bash\nsh -c \'cd /opt/schedule-service/iplearning/ && ./start.sh\'', '0001', '2023-12-26 04:01:24', '', 1, 1709524800000, 1709528400000);
|
||
INSERT INTO `xxl_job_info` VALUES (145, 2, '0 0 2 * * ?', 'run_dos_baseline', '2022-11-10 06:15:27', '2023-11-13 05:37:41', 'galaxy', '', 'FIRST', '', '', 'SERIAL_EXECUTION', 0, 0, 'GLUE_SHELL', '#!/bin/bash\nsh -c \'cd /opt/schedule-service/dos-baseline && ./start.sh\'', '0000', '2023-11-13 05:37:41', '', 1, 1709488800000, 1709575200000);
|
||
INSERT INTO xxl_job_info (id, job_group, job_cron, job_desc, add_time, update_time, author, alarm_email, executor_route_strategy, executor_handler, executor_param, executor_block_strategy, executor_timeout, executor_fail_retry_count, glue_type, glue_source, glue_remark, glue_updatetime, child_jobid, trigger_status, trigger_last_time, trigger_next_time) VALUES ('158', '2', '0 0 2 * * ?', 'run_druid_segement_granularity_compact', '2023-02-20 05:59:59', '2023-05-11 03:39:14', 'galaxy', '', 'FAILOVER', 'druidMergeHistoryDataJobHandler', '[\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"traffic_general_stat\",\r\n \"offsetDays\": 7,\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\",\r\n \"splitHintSpec\": {\r\n \"type\": \"maxSize\",\r\n \"maxSplitSize\": \"2GiB\"\r\n },\r\n \"maxNumConcurrentSubTasks\": 1\r\n },\r\n \"granularitySpec\" : {\r\n \"segmentGranularity\": \"DAY\",\r\n \"queryGranularity\": \"MINUTE\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"application_protocol_stat\",\r\n \"offsetDays\": 7,\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\",\r\n \"maxRowsInMemory\": 200000,\r\n \"splitHintSpec\": {\r\n \"type\": \"maxSize\",\r\n \"maxSplitSize\": \"2GiB\"\r\n },\r\n \"maxNumConcurrentSubTasks\": 1\r\n },\r\n \"granularitySpec\" : {\r\n \"segmentGranularity\": \"DAY\",\r\n \"queryGranularity\": \"MINUTE\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"object_statistics\",\r\n \"offsetDays\": 7,\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\",\r\n \"maxRowsInMemory\": 250000,\r\n \"splitHintSpec\": {\r\n \"type\": \"maxSize\",\r\n \"maxSplitSize\": \"2GiB\"\r\n },\r\n \"maxNumConcurrentSubTasks\": 2\r\n },\r\n \"granularitySpec\" : {\r\n \"segmentGranularity\": \"DAY\",\r\n \"queryGranularity\": \"MINUTE\"\r\n }\r\n },\r\n {\r\n \"type\": \"compact\",\r\n \"dataSource\": \"statistics_rule\",\r\n \"offsetDays\": 7,\r\n \"tuningConfig\": {\r\n \"type\": \"index_parallel\",\r\n \"maxRowsInMemory\": 400000,\r\n \"maxBytesInMemory\": -1,\r\n \"splitHintSpec\": {\r\n \"type\": \"maxSize\",\r\n \"maxSplitSize\": \"4GiB\"\r\n },\r\n \"maxNumConcurrentSubTasks\": 2\r\n },\r\n \"granularitySpec\" : {\r\n \"segmentGranularity\": \"DAY\",\r\n \"queryGranularity\": \"MINUTE\"\r\n },\r\n \"context\":{\r\n \"druid.indexer.runner.javaOptsArray\": [\"-Xms2g\", \"-Xmx4g\", \"-XX:MaxDirectMemorySize=1g\"]\r\n }\r\n }\r\n]', 'DISCARD_LATER', '0', '0', 'BEAN', '', 'GLUE代码初始化', '2023-02-20 05:59:59', '', '1', '1708891200000', '1708977600000');
|
||
INSERT INTO `xxl_job_info` VALUES (159, 1, '0 0 * * * ?', 'delete_clickhouse_old_log', '2024-06-24 09:02:27', '2024-07-15 03:05:03', 'galaxy', '', 'FIRST', 'deleteOldLogJobHandler', '{\r\n \"logType\": \"Traffic Logs\",\r\n \"maxUsage\": 90,\r\n \"durationMinutes\": 360,\r\n \"minIntervalMinutes\": 60,\r\n \"jdbcParam\": {\r\n \"type\": \"mariadb\",\r\n \"ip\": \"{{ vrrp_instance.default.virtual_ipaddress }}\",\r\n \"database\": \"tsg_olap\",\r\n \"table\": \"sys_storage_event\",\r\n \"username\": \"root\",\r\n \"pin\": \"{{ mariadb_default_pin }}\"\r\n }\r\n}', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2024-06-24 09:02:27', '', 1, 1721631600000, 1721635200000);
|
||
INSERT INTO `xxl_job_info` VALUES (160, 1, '0 0 * * * ?', 'delete_druid_old_log', '2024-06-24 09:05:37', '2024-07-15 03:04:38', 'galaxy', '', 'FIRST', 'deleteOldLogJobHandler', '{\r\n \"logType\": \"Metrics\",\r\n \"maxUsage\": 90,\r\n \"durationMinutes\": 360,\r\n \"minIntervalMinutes\": 60,\r\n \"jdbcParam\": {\r\n \"type\": \"mariadb\",\r\n \"ip\": \"{{ vrrp_instance.default.virtual_ipaddress }}\",\r\n \"database\": \"tsg_olap\",\r\n \"table\": \"sys_storage_event\",\r\n \"username\": \"root\",\r\n \"pin\": \"{{ mariadb_default_pin }}\"\r\n }\r\n}', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2024-06-24 09:05:37', '', 1, 1721631600000, 1721635200000);
|
||
INSERT INTO `xxl_job_info` VALUES (161, 1, '0 0 * * * ?', 'delete_hos_old_log', '2024-06-24 09:06:21', '2024-07-15 03:04:27', 'galaxy', '', 'FIRST', 'deleteOldLogJobHandler', '{\r\n \"logType\": \"Files\",\r\n \"maxUsage\": 90,\r\n \"durationMinutes\": 360,\r\n \"minIntervalMinutes\": 60,\r\n \"jdbcParam\": {\r\n \"type\": \"mariadb\",\r\n \"ip\": \"{{ vrrp_instance.default.virtual_ipaddress }}\",\r\n \"database\": \"tsg_olap\",\r\n \"table\": \"sys_storage_event\",\r\n \"username\": \"root\",\r\n \"pin\": \"{{ mariadb_default_pin }}\"\r\n }\r\n}', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2024-06-24 09:06:21', '', 1, 1721631600000, 1721635200000);
|