nodeMonitor.sql 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 156.234.193.212
  4. Source Server Type : MySQL
  5. Source Server Version : 50734
  6. Source Host : 156.234.193.212:33060
  7. Source Schema : nodemonitor
  8. Target Server Type : MySQL
  9. Target Server Version : 50734
  10. File Encoding : 65001
  11. Date: 10/11/2022 10:21:15
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for node
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `node`;
  19. CREATE TABLE `node` (
  20. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID主键自动添加',
  21. `name` varchar(128) NOT NULL COMMENT '服务器名称',
  22. `host` varchar(20) NOT NULL COMMENT '服务器IP',
  23. `port` int(11) NOT NULL COMMENT '服务器端口',
  24. `url` text NOT NULL COMMENT '服务器切换地址',
  25. `update_at` datetime DEFAULT NULL COMMENT '更新时间',
  26. `create_at` datetime DEFAULT NULL COMMENT '创建时间',
  27. `ping_type` int(11) NOT NULL DEFAULT '0' COMMENT '服务器延迟类型 0 icmp 1 tcp',
  28. `url_status` int(11) DEFAULT NULL COMMENT '用于表示url是否执行完成',
  29. `nodeMs` int(11) DEFAULT NULL COMMENT ' 服务器延迟',
  30. `url_count` int(11) DEFAULT '0' COMMENT '用于服务器切换IP执行次数',
  31. `url_ret` varchar(128) DEFAULT NULL COMMENT '切换服务器放回结果',
  32. PRIMARY KEY (`id`)
  33. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;
  34. -- ----------------------------
  35. -- Table structure for nodeconfig
  36. -- ----------------------------
  37. DROP TABLE IF EXISTS `nodeconfig`;
  38. CREATE TABLE `nodeconfig` (
  39. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID主键',
  40. `serverid` int(11) NOT NULL COMMENT '服务器ID',
  41. `sshcommand` text NOT NULL COMMENT '服务器执行命令',
  42. `sshpassword` varchar(128) DEFAULT NULL COMMENT '服务器密码',
  43. `sshusername` varchar(128) DEFAULT NULL COMMENT 'ssh账号',
  44. PRIMARY KEY (`id`)
  45. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
  46. -- ----------------------------
  47. -- Table structure for pingconfig
  48. -- ----------------------------
  49. DROP TABLE IF EXISTS `pingconfig`;
  50. CREATE TABLE `pingconfig` (
  51. `node_die` int(11) DEFAULT '3' COMMENT '节点死亡次数用于判断节节点可用性',
  52. `node_count` int(11) DEFAULT '20' COMMENT '节点检测次数',
  53. `node_loos` int(11) DEFAULT '30' COMMENT '节点丢包率',
  54. `ping_time` int(11) DEFAULT '60' COMMENT '节点计划任务开启时间',
  55. `ping_name` varchar(128) DEFAULT 'ping_config' COMMENT '配置名称'
  56. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  57. -- ----------------------------
  58. -- Table structure for pinglog
  59. -- ----------------------------
  60. DROP TABLE IF EXISTS `pinglog`;
  61. CREATE TABLE `pinglog` (
  62. `id` int(11) NOT NULL AUTO_INCREMENT,
  63. `maxdelay` varchar(64) DEFAULT NULL COMMENT '最大延迟',
  64. `mindelay` varchar(64) DEFAULT NULL COMMENT '最小延迟',
  65. `avgdelay` varchar(64) DEFAULT NULL COMMENT '平均延迟',
  66. `losspk` varchar(64) DEFAULT NULL COMMENT '丢包率',
  67. `update_at` datetime DEFAULT NULL COMMENT '更新时间',
  68. `create_at` datetime DEFAULT NULL COMMENT '创建时间',
  69. `serverid` int(11) DEFAULT NULL COMMENT '服务器ID',
  70. PRIMARY KEY (`id`)
  71. ) ENGINE=InnoDB AUTO_INCREMENT=3946 DEFAULT CHARSET=utf8mb4;
  72. SET FOREIGN_KEY_CHECKS = 1;