nodeMonitor.sql 1.2 KB

123456789101112131415161718192021222324252627282930
  1. create table node
  2. (
  3. id int auto_increment comment 'ID主键自动添加'
  4. primary key,
  5. name varchar(128) not null comment '服务器名称',
  6. host varchar(20) not null comment '服务器IP',
  7. port int not null comment '服务器端口',
  8. url text not null comment '服务器切换地址',
  9. update_at datetime null comment '更新时间',
  10. create_at datetime null comment '创建时间',
  11. ping_type int default 0 not null comment '服务器延迟类型 0 icmp 1 tcp',
  12. url_status int null comment '用于表示url是否执行完成',
  13. node_ms int default 0 null comment '节点延迟'
  14. )
  15. charset = utf8mb4;
  16. create table pinglog
  17. (
  18. id int auto_increment
  19. primary key,
  20. maxdelay varchar(64) null comment '最大延迟',
  21. mindelay varchar(64) null comment '最小延迟',
  22. avgdelay varchar(64) null comment '平均延迟',
  23. losspk varchar(64) null comment '丢包率',
  24. update_at datetime null comment '更新时间',
  25. create_at datetime null comment '创建时间',
  26. serverid int null comment '服务器ID'
  27. )
  28. charset = utf8mb4;