Commit 7a5af794 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add table for storing per-node resource usage stats.

parent 7c5e4522
......@@ -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`
--
......
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment