xxl_job.sql 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 抢占式-preemptively.trytowish.cn
  4. Source Server Type : MySQL
  5. Source Server Version : 80031
  6. Source Host : preemptively.trytowish.cn:3306
  7. Source Schema : xxl_job
  8. Target Server Type : MySQL
  9. Target Server Version : 80031
  10. File Encoding : 65001
  11. Date: 23/02/2024 11:14:56
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for xxl_job_group
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `xxl_job_group`;
  19. CREATE TABLE `xxl_job_group` (
  20. `id` int NOT NULL AUTO_INCREMENT,
  21. `app_name` varchar(64) NOT NULL COMMENT '执行器AppName',
  22. `title` varchar(12) NOT NULL COMMENT '执行器名称',
  23. `address_type` tinyint NOT NULL DEFAULT '0' COMMENT '执行器地址类型:0=自动注册、1=手动录入',
  24. `address_list` text COMMENT '执行器地址列表,多地址逗号分隔',
  25. `update_time` datetime DEFAULT NULL,
  26. PRIMARY KEY (`id`)
  27. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  28. -- ----------------------------
  29. -- Records of xxl_job_group
  30. -- ----------------------------
  31. BEGIN;
  32. INSERT INTO `xxl_job_group` VALUES (1, 'xxl-job-executor-sample', '示例执行器', 0, NULL, '2024-02-23 11:14:51');
  33. INSERT INTO `xxl_job_group` VALUES (2, 'omind-scheduler-mp', '小程序平台', 0, 'http://172.25.0.131:18087/', '2024-02-23 11:14:51');
  34. INSERT INTO `xxl_job_group` VALUES (3, 'omind-scheduler-userplat', '用户平台', 0, 'http://172.25.0.111:18085/', '2024-02-23 11:14:51');
  35. INSERT INTO `xxl_job_group` VALUES (4, 'omind-scheduler-baseplat', '基础设备服务平台', 0, 'http://172.25.0.101:18090/', '2024-02-23 11:14:51');
  36. COMMIT;
  37. -- ----------------------------
  38. -- Table structure for xxl_job_info
  39. -- ----------------------------
  40. DROP TABLE IF EXISTS `xxl_job_info`;
  41. CREATE TABLE `xxl_job_info` (
  42. `id` int NOT NULL AUTO_INCREMENT,
  43. `job_group` int NOT NULL COMMENT '执行器主键ID',
  44. `job_desc` varchar(255) NOT NULL,
  45. `add_time` datetime DEFAULT NULL,
  46. `update_time` datetime DEFAULT NULL,
  47. `author` varchar(64) DEFAULT NULL COMMENT '作者',
  48. `alarm_email` varchar(255) DEFAULT NULL COMMENT '报警邮件',
  49. `schedule_type` varchar(50) NOT NULL DEFAULT 'NONE' COMMENT '调度类型',
  50. `schedule_conf` varchar(128) DEFAULT NULL COMMENT '调度配置,值含义取决于调度类型',
  51. `misfire_strategy` varchar(50) NOT NULL DEFAULT 'DO_NOTHING' COMMENT '调度过期策略',
  52. `executor_route_strategy` varchar(50) DEFAULT NULL COMMENT '执行器路由策略',
  53. `executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler',
  54. `executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数',
  55. `executor_block_strategy` varchar(50) DEFAULT NULL COMMENT '阻塞处理策略',
  56. `executor_timeout` int NOT NULL DEFAULT '0' COMMENT '任务执行超时时间,单位秒',
  57. `executor_fail_retry_count` int NOT NULL DEFAULT '0' COMMENT '失败重试次数',
  58. `glue_type` varchar(50) NOT NULL COMMENT 'GLUE类型',
  59. `glue_source` mediumtext COMMENT 'GLUE源代码',
  60. `glue_remark` varchar(128) DEFAULT NULL COMMENT 'GLUE备注',
  61. `glue_updatetime` datetime DEFAULT NULL COMMENT 'GLUE更新时间',
  62. `child_jobid` varchar(255) DEFAULT NULL COMMENT '子任务ID,多个逗号分隔',
  63. `trigger_status` tinyint NOT NULL DEFAULT '0' COMMENT '调度状态:0-停止,1-运行',
  64. `trigger_last_time` bigint NOT NULL DEFAULT '0' COMMENT '上次调度时间',
  65. `trigger_next_time` bigint NOT NULL DEFAULT '0' COMMENT '下次调度时间',
  66. PRIMARY KEY (`id`)
  67. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  68. -- ----------------------------
  69. -- Records of xxl_job_info
  70. -- ----------------------------
  71. BEGIN;
  72. INSERT INTO `xxl_job_info` VALUES (1, 1, '测试任务1', '2018-11-03 22:21:31', '2018-11-03 22:21:31', 'XXL', '', 'CRON', '0 0 0 * * ? *', 'DO_NOTHING', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2018-11-03 22:21:31', '', 0, 0, 0);
  73. INSERT INTO `xxl_job_info` VALUES (2, 2, '更新地图', '2024-01-22 12:43:50', '2024-01-22 16:25:12', 'li', 'li@qq.com', 'CRON', '0 0/1 * * * ?', 'DO_NOTHING', 'FIRST', 'GeoBuildTask', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2024-01-22 12:43:50', '', 1, 1708658100000, 1708658160000);
  74. INSERT INTO `xxl_job_info` VALUES (3, 3, '平台间同步站点桩数据', '2024-01-22 12:46:26', '2024-01-22 12:46:41', 'li', 'li@qq.com', 'CRON', '0 0/10 * * * ?', 'DO_NOTHING', 'FIRST', 'stationSyncTask', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2024-01-22 12:46:26', '', 1, 1708657800000, 1708658400000);
  75. INSERT INTO `xxl_job_info` VALUES (4, 4, '踢出离线桩', '2024-01-26 17:51:47', '2024-01-26 17:56:57', 'li', '', 'CRON', '0 0/1 * * * ?', 'DO_NOTHING', 'FIRST', 'UnliveRemoveTask', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2024-01-26 17:51:47', '', 1, 1708658100000, 1708658160000);
  76. COMMIT;
  77. -- ----------------------------
  78. -- Table structure for xxl_job_lock
  79. -- ----------------------------
  80. DROP TABLE IF EXISTS `xxl_job_lock`;
  81. CREATE TABLE `xxl_job_lock` (
  82. `lock_name` varchar(50) NOT NULL COMMENT '锁名称',
  83. PRIMARY KEY (`lock_name`)
  84. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  85. -- ----------------------------
  86. -- Records of xxl_job_lock
  87. -- ----------------------------
  88. BEGIN;
  89. INSERT INTO `xxl_job_lock` VALUES ('schedule_lock');
  90. COMMIT;
  91. -- ----------------------------
  92. -- Table structure for xxl_job_log
  93. -- ----------------------------
  94. DROP TABLE IF EXISTS `xxl_job_log`;
  95. CREATE TABLE `xxl_job_log` (
  96. `id` bigint NOT NULL AUTO_INCREMENT,
  97. `job_group` int NOT NULL COMMENT '执行器主键ID',
  98. `job_id` int NOT NULL COMMENT '任务,主键ID',
  99. `executor_address` varchar(255) DEFAULT NULL COMMENT '执行器地址,本次执行的地址',
  100. `executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler',
  101. `executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数',
  102. `executor_sharding_param` varchar(20) DEFAULT NULL COMMENT '执行器任务分片参数,格式如 1/2',
  103. `executor_fail_retry_count` int NOT NULL DEFAULT '0' COMMENT '失败重试次数',
  104. `trigger_time` datetime DEFAULT NULL COMMENT '调度-时间',
  105. `trigger_code` int NOT NULL COMMENT '调度-结果',
  106. `trigger_msg` text COMMENT '调度-日志',
  107. `handle_time` datetime DEFAULT NULL COMMENT '执行-时间',
  108. `handle_code` int NOT NULL COMMENT '执行-状态',
  109. `handle_msg` text COMMENT '执行-日志',
  110. `alarm_status` tinyint NOT NULL DEFAULT '0' COMMENT '告警状态:0-默认、1-无需告警、2-告警成功、3-告警失败',
  111. PRIMARY KEY (`id`),
  112. KEY `I_trigger_time` (`trigger_time`),
  113. KEY `I_handle_code` (`handle_code`)
  114. ) ENGINE=InnoDB AUTO_INCREMENT=21307 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  115. -- ----------------------------
  116. -- Records of xxl_job_log
  117. -- ----------------------------
  118. BEGIN;
  119. INSERT INTO `xxl_job_log` VALUES (18664, 2, 2, 'http://172.25.0.131:18087/', 'GeoBuildTask', '', NULL, 0, '2024-02-22 14:16:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.131:18087/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.131:18087/<br>code:200<br>msg:null', '2024-02-22 14:16:00', 200, '', 0);
  120. INSERT INTO `xxl_job_log` VALUES (18665, 2, 2, 'http://172.25.0.131:18087/', 'GeoBuildTask', '', NULL, 0, '2024-02-22 14:17:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.131:18087/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.131:18087/<br>code:200<br>msg:null', '2024-02-22 14:17:00', 200, '', 0);
  121. INSERT INTO `xxl_job_log` VALUES (18666, 4, 4, 'http://172.25.0.101:18090/', 'UnliveRemoveTask', '', NULL, 0, '2024-02-22 14:17:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.101:18090/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.101:18090/<br>code:200<br>msg:null', '2024-02-22 14:17:00', 200, '', 0);
  122. INSERT INTO `xxl_job_log` VALUES (18667, 2, 2, 'http://172.25.0.131:18087/', 'GeoBuildTask', '', NULL, 0, '2024-02-22 14:18:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.131:18087/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.131:18087/<br>code:200<br>msg:null', '2024-02-22 14:18:00', 200, '', 0);
  123. INSERT INTO `xxl_job_log` VALUES (18668, 4, 4, 'http://172.25.0.101:18090/', 'UnliveRemoveTask', '', NULL, 0, '2024-02-22 14:18:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.101:18090/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.101:18090/<br>code:200<br>msg:null', '2024-02-22 14:18:00', 200, '', 0);
  124. INSERT INTO `xxl_job_log` VALUES (18669, 4, 4, 'http://172.25.0.101:18090/', 'UnliveRemoveTask', '', NULL, 0, '2024-02-22 14:19:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.101:18090/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.101:18090/<br>code:200<br>msg:null', '2024-02-22 14:19:00', 200, '', 0);
  125. INSERT INTO `xxl_job_log` VALUES (18670, 2, 2, 'http://172.25.0.131:18087/', 'GeoBuildTask', '', NULL, 0, '2024-02-22 14:19:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.131:18087/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.131:18087/<br>code:200<br>msg:null', '2024-02-22 14:19:00', 200, '', 0);
  126. INSERT INTO `xxl_job_log` VALUES (18671, 4, 4, 'http://172.25.0.101:18090/', 'UnliveRemoveTask', '', NULL, 0, '2024-02-22 14:20:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.101:18090/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.101:18090/<br>code:200<br>msg:null', '2024-02-22 14:20:00', 200, '', 0);
  127. INSERT INTO `xxl_job_log` VALUES (18672, 3, 3, 'http://172.25.0.111:18085/', 'stationSyncTask', '', NULL, 0, '2024-02-22 14:20:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.111:18085/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.111:18085/<br>code:200<br>msg:null', '2024-02-22 14:20:00', 200, '', 0);
  128. INSERT INTO `xxl_job_log` VALUES (18673, 2, 2, 'http://172.25.0.131:18087/', 'GeoBuildTask', '', NULL, 0, '2024-02-22 14:20:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.131:18087/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.131:18087/<br>code:200<br>msg:null', '2024-02-22 14:20:00', 200, '', 0);
  129. INSERT INTO `xxl_job_log` VALUES (18674, 2, 2, 'http://172.25.0.131:18087/', 'GeoBuildTask', '', NULL, 0, '2024-02-22 14:21:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.131:18087/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.131:18087/<br>code:200<br>msg:null', '2024-02-22 14:21:00', 200, '', 0);
  130. INSERT INTO `xxl_job_log` VALUES (18675, 4, 4, 'http://172.25.0.101:18090/', 'UnliveRemoveTask', '', NULL, 0, '2024-02-22 14:21:00', 200, '任务触发类型:Cron触发<br>调度机器:172.25.0.9<br>执行器-注册方式:自动注册<br>执行器-地址列表:[http://172.25.0.101:18090/]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>任务超时时间:0<br>失败重试次数:0<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:http://172.25.0.101:18090/<br>code:200<br>msg:null', '2024-02-22 14:21:00', 200, '', 0);
  131. COMMIT;
  132. -- ----------------------------
  133. -- Table structure for xxl_job_log_report
  134. -- ----------------------------
  135. DROP TABLE IF EXISTS `xxl_job_log_report`;
  136. CREATE TABLE `xxl_job_log_report` (
  137. `id` int NOT NULL AUTO_INCREMENT,
  138. `trigger_day` datetime DEFAULT NULL COMMENT '调度-时间',
  139. `running_count` int NOT NULL DEFAULT '0' COMMENT '运行中-日志数量',
  140. `suc_count` int NOT NULL DEFAULT '0' COMMENT '执行成功-日志数量',
  141. `fail_count` int NOT NULL DEFAULT '0' COMMENT '执行失败-日志数量',
  142. `update_time` datetime DEFAULT NULL,
  143. PRIMARY KEY (`id`),
  144. UNIQUE KEY `i_trigger_day` (`trigger_day`) USING BTREE
  145. ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  146. -- ----------------------------
  147. -- Records of xxl_job_log_report
  148. -- ----------------------------
  149. BEGIN;
  150. INSERT INTO `xxl_job_log_report` VALUES (1, '2023-12-27 00:00:00', 0, 0, 0, NULL);
  151. COMMIT;
  152. -- ----------------------------
  153. -- Table structure for xxl_job_logglue
  154. -- ----------------------------
  155. DROP TABLE IF EXISTS `xxl_job_logglue`;
  156. CREATE TABLE `xxl_job_logglue` (
  157. `id` int NOT NULL AUTO_INCREMENT,
  158. `job_id` int NOT NULL COMMENT '任务,主键ID',
  159. `glue_type` varchar(50) DEFAULT NULL COMMENT 'GLUE类型',
  160. `glue_source` mediumtext COMMENT 'GLUE源代码',
  161. `glue_remark` varchar(128) NOT NULL COMMENT 'GLUE备注',
  162. `add_time` datetime DEFAULT NULL,
  163. `update_time` datetime DEFAULT NULL,
  164. PRIMARY KEY (`id`)
  165. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  166. -- ----------------------------
  167. -- Table structure for xxl_job_registry
  168. -- ----------------------------
  169. DROP TABLE IF EXISTS `xxl_job_registry`;
  170. CREATE TABLE `xxl_job_registry` (
  171. `id` int NOT NULL AUTO_INCREMENT,
  172. `registry_group` varchar(50) NOT NULL,
  173. `registry_key` varchar(255) NOT NULL,
  174. `registry_value` varchar(255) NOT NULL,
  175. `update_time` datetime DEFAULT NULL,
  176. PRIMARY KEY (`id`),
  177. KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`)
  178. ) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  179. -- ----------------------------
  180. -- Records of xxl_job_registry
  181. -- ----------------------------
  182. BEGIN;
  183. INSERT INTO `xxl_job_registry` VALUES (40, 'EXECUTOR', 'omind-scheduler-mp', 'http://172.25.0.131:18087/', '2024-02-23 11:14:46');
  184. INSERT INTO `xxl_job_registry` VALUES (41, 'EXECUTOR', 'omind-scheduler-baseplat', 'http://172.25.0.101:18090/', '2024-02-23 11:14:55');
  185. INSERT INTO `xxl_job_registry` VALUES (42, 'EXECUTOR', 'omind-scheduler-userplat', 'http://172.25.0.111:18085/', '2024-02-23 11:14:56');
  186. COMMIT;
  187. -- ----------------------------
  188. -- Table structure for xxl_job_user
  189. -- ----------------------------
  190. DROP TABLE IF EXISTS `xxl_job_user`;
  191. CREATE TABLE `xxl_job_user` (
  192. `id` int NOT NULL AUTO_INCREMENT,
  193. `username` varchar(50) NOT NULL COMMENT '账号',
  194. `password` varchar(50) NOT NULL COMMENT '密码',
  195. `role` tinyint NOT NULL COMMENT '角色:0-普通用户、1-管理员',
  196. `permission` varchar(255) DEFAULT NULL COMMENT '权限:执行器ID列表,多个逗号分割',
  197. PRIMARY KEY (`id`),
  198. UNIQUE KEY `i_username` (`username`) USING BTREE
  199. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
  200. -- ----------------------------
  201. -- Records of xxl_job_user
  202. -- ----------------------------
  203. BEGIN;
  204. INSERT INTO `xxl_job_user` VALUES (1, 'admin', 'e10adc3949ba59abbe56e057f20f883e', 1, NULL);
  205. COMMIT;
  206. SET FOREIGN_KEY_CHECKS = 1;