Commit 7a3c776d authored by Leo Gordon's avatar Leo Gordon
Browse files

adding rc_name to the lsf_report

parent 93c04edf
......@@ -53,12 +53,14 @@ sub main {
warn "Creating the 'lsf_usage' view if it doesn't exist...\n";
$dbc->do (qq{
CREATE OR REPLACE VIEW lsf_usage AS
SELECT CONCAT(logic_name,'(',analysis_id,')') analysis_name_and_id,
resource_class_id, count(*) workers,
min(mem), avg(mem), max(mem),
min(swap), avg(swap), max(swap)
SELECT CONCAT(logic_name,'(',analysis_id,')') analysis,
CONCAT(rc.name,'(',resource_class_id,')') resource_class,
count(*) workers,
min(mem), avg(mem), max(mem),
min(swap), avg(swap), max(swap)
FROM analysis
JOIN analysis_stats USING(analysis_id)
JOIN resource_class rc USING(resource_class_id)
LEFT JOIN worker USING(analysis_id)
LEFT JOIN lsf_report USING (process_id)
WHERE meadow_type='LSF'
......
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