-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheron_scheduler.sql
38 lines (33 loc) · 1.1 KB
/
heron_scheduler.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for tb_cpu_load
-- ----------------------------
DROP TABLE IF EXISTS `tb_cpu_load`;
CREATE TABLE `tb_cpu_load` (
`topology_id` varchar(255) DEFAULT NULL,
`begin_task` int(255) DEFAULT NULL,
`end_task` int(255) DEFAULT NULL,
`load` bigint(255) DEFAULT NULL,
`node` varchar(255) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for tb_node
-- ----------------------------
DROP TABLE IF EXISTS `tb_node`;
CREATE TABLE `tb_node` (
`name` varchar(255) DEFAULT NULL,
`capacity` bigint(255) DEFAULT NULL,
`cores` int(255) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for tb_traffic
-- ----------------------------
DROP TABLE IF EXISTS `tb_traffic`;
CREATE TABLE `tb_traffic` (
`topology_id` varchar(255) DEFAULT NULL,
`source_task` int(255) DEFAULT NULL,
`destination_task` int(255) DEFAULT NULL,
`traffic` int(255) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;