Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7a5af794
Commit
7a5af794
authored
Dec 25, 2003
by
Leigh B. Stoller
Browse files
Add table for storing per-node resource usage stats.
parent
7c5e4522
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
7a5af794
...
...
@@ -712,6 +712,21 @@ CREATE TABLE node_idlestats (
PRIMARY
KEY
(
node_id
,
tstamp
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `node_rusage`
--
CREATE
TABLE
node_rusage
(
node_id
varchar
(
10
)
NOT
NULL
default
''
,
load_1min
float
NOT
NULL
default
'0'
,
load_5min
float
NOT
NULL
default
'0'
,
load_15min
float
NOT
NULL
default
'0'
,
disk_used
float
NOT
NULL
default
'0'
,
status_timestamp
datetime
default
NULL
,
PRIMARY
KEY
(
node_id
)
)
TYPE
=
MyISAM
;
--
-- Table structure for table `node_status`
--
...
...
sql/database-migrate.txt
View file @
7a5af794
...
...
@@ -1195,3 +1195,15 @@ last_net_act,last_cpu_act,last_ext_act);
alter table reserved add simhost_violation tinyint(3) \
unsigned not null default '0';
1.212: Add resource usage table.
CREATE TABLE node_rusage (
node_id varchar(10) NOT NULL default '',
load_1min float NOT NULL default '0',
load_5min float NOT NULL default '0',
load_15min float NOT NULL default '0',
disk_used float NOT NULL default '0',
status_timestamp datetime default NULL,
PRIMARY KEY (node_id)
) TYPE=MyISAM;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment