Commit de553419 authored by Mac Newbold's avatar Mac Newbold

Add the new fields related to our new swapping features:

   noswap_reason tinytext			- The reason they're unswappable
   idleswap tinyint(4) NOT NULL default '0'	- The idleswap bit (for auto. idleswap)
   idleswap_timeout int(4) NOT NULL default '0'	- The timeout for idleswap (in minutes)
   noidleswap_reason tinytext			- The reason they're non-idleswap
   autoswap tinyint(4) NOT NULL default '0'	- The autoswap bit
   autoswap_timeout int(4) NOT NULL default '0'	- The timeout for autoswap (in minutes)

The new form for expt create should fill these in, and swapin will update the idleswap
timeout if idleswap is set. Idlemail will read these and do the deed as needed.
They'll also get shown on the new expt display page.

As soon as we move to the new form, we can nuke priority.
parent 944e7d53
......@@ -255,6 +255,12 @@ CREATE TABLE experiments (
expt_swap_uid varchar(8) NOT NULL default '',
swappable tinyint(4) NOT NULL default '0',
priority tinyint(4) NOT NULL default '0',
noswap_reason tinytext,
idleswap tinyint(4) NOT NULL default '0',
idleswap_timeout int(4) NOT NULL default '0',
noidleswap_reason tinytext,
autoswap tinyint(4) NOT NULL default '0',
autoswap_timeout int(4) NOT NULL default '0',
batchmode tinyint(4) NOT NULL default '0',
shared tinyint(4) NOT NULL default '0',
state varchar(12) NOT NULL default 'new',
......
......@@ -579,3 +579,24 @@ last_net_act,last_cpu_act,last_ext_act);
ALTER TABLE users ADD COLUMN usr_shell TINYTEXT AFTER usr_phone;
UPDATE users SET usr_shell='tcsh';
1.149: Add more fields to expts table for new swapping features. All
the "bits" default to 0, so no further updating is needed.
ALTER TABLE experiments ADD COLUMN noswap_reason tinytext
AFTER priority;
ALTER TABLE experiments ADD COLUMN idleswap tinyint(4)
NOT NULL default '0' AFTER noswap_reason;
ALTER TABLE experiments ADD COLUMN idleswap_timeout int(4)
NOT NULL default '0' AFTER idleswap;
ALTER TABLE experiments ADD COLUMN noidleswap_reason tinytext
AFTER idleswap_timeout;
ALTER TABLE experiments ADD COLUMN autoswap tinyint(4)
NOT NULL default '0' AFTER noidleswap_reason;
ALTER TABLE experiments ADD COLUMN autoswap_timeout int(4)
NOT NULL default '0' AFTER autoswap;
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