Changeset 39
- Timestamp:
- Feb 15, 2019, 4:56:31 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cleanup.php
r37 r39 73 73 list( $personID ) = mysqli_fetch_array( $result ); 74 74 75 $query = "SELECT clusterName, submitTime, queueStatus, method" .75 $query = "SELECT clusterName, submitTime, queueStatus, analType " . 76 76 "FROM HPCAnalysisRequest h, HPCAnalysisResult r " . 77 77 "WHERE h.HPCAnalysisRequestID=$requestID " . -
trunk/cluster_status.php
r38 r39 178 178 $clusters = array( "us3iab-devel", "alamo-local", "taito-local" ); 179 179 else 180 $clusters = array( "us3iab-node0", "taito-local" );180 $clusters = array( "us3iab-node0", "taito-local" ); 181 181 } 182 182 else … … 241 241 { 242 242 $host = "us3@stampede2.tacc.utexas.edu"; 243 $qstat = `ssh $host ' /usr/local/bin/showq 2>/dev/null|grep "Total Jobs"'`;243 $qstat = `ssh $host '~us3/scripts/clusstat skx-normal 2>/dev/null'`; 244 244 $sparts = preg_split( '/\s+/', $qstat ); 245 245 $tot = $sparts[ 2 ]; … … 254 254 { 255 255 $host = "us3@ls5.tacc.utexas.edu"; 256 $qstat = `ssh $host '/ usr/local/bin/showq 2>/dev/null|grep "Total Jobs"'`;256 $qstat = `ssh $host '/opt/apps/tacc/bin/showq 2>/dev/null|grep "Total Jobs"'`; 257 257 $sparts = preg_split( '/\s+/', $qstat ); 258 258 $tot = $sparts[ 2 ]; … … 272 272 break; 273 273 } 274 case ' taito-local':275 { 276 $host = " rb_2001068_taito01@taito.csc.fi";274 case 'comet': 275 { 276 $host = "us3@comet.sdsc.edu"; 277 277 //$qstat = `ssh $host '/usr/bin/sinfo -s -p compute -o "%a %F" |tail -1'`; 278 $qstat = `ssh -i /home/us3/.ssh/id_rsa_taito_robot $host '/homeappl/home/rb_2001068_taito01/scripts/cstat 2>&1'`;278 $qstat = `ssh $host '/home/us3/scripts/cstat 2>&1'`; 279 279 $sparts = preg_split( '/\s+/', $qstat ); 280 280 $tot = $sparts[ 1 ]; … … 290 290 $run = $sparts[ 3 ]; 291 291 $que = $sparts[ 5 ]; 292 } 293 break; 294 } 295 case 'comet': 296 { 297 $host = "us3@comet.sdsc.edu"; 298 //$qstat = `ssh $host '/usr/bin/sinfo -s -p compute -o "%a %F" |tail -1'`; 299 $qstat = `ssh $host '/home/us3/scripts/cstat 2>&1'`; 300 $sparts = preg_split( '/\s+/', $qstat ); 301 $tot = $sparts[ 1 ]; 302 $run = '0'; 303 $que = '0'; 304 $sta = "up"; 305 if ( $tot == '' || $tot == '0' ) 306 { 307 $sta = "down"; 308 } 309 else 310 { 311 $run = $sparts[ 3 ]; 312 $que = $sparts[ 5 ]; 292 if ( $run == '0' && $que == '0' ) 293 { 294 $sta = "down"; 295 } 313 296 } 314 297 break; … … 341 324 break; 342 325 } 326 case 'taito-local': 327 { 328 $host = "rb_2001068_taito01@taito.csc.fi"; 329 $qstat = `ssh -i /home/us3/.ssh/id_rsa_taito_robot $host '/homeappl/home/rb_2001068_taito01/scripts/cstat 2>&1'`; 330 $sparts = preg_split( '/\s+/', $qstat ); 331 $tot = $sparts[ 1 ]; 332 $run = '0'; 333 $que = '0'; 334 $sta = "up"; 335 if ( $tot == '' || $tot == '0' ) 336 { 337 $sta = "down"; 338 } 339 else 340 { 341 $run = $sparts[ 3 ]; 342 $que = $sparts[ 5 ]; 343 } 344 break; 345 } 346 343 347 } 344 348 -
trunk/gridctl.php
r35 r39 24 24 if ( ! $gLink ) 25 25 { 26 write_log( "$self: Could not select DB $gDB - " . mysqli_error() ); 27 mail_to_admin( "fail", "Internal Error: Could not select DB $gDB" ); 28 sleep(300); 26 write_log( "$self: Could not select DB $gDB - " . mysqli_error($gLink) ); 27 //mail_to_admin( "fail", "Internal Error: Could not select DB $gDB" ); 28 mail_to_admin( "fail", 29 "Internal Error: Could not select DB $gDB $dbhost $guser " ); 30 //sleep(300); 31 sleep(3); 29 32 exit(); 30 33 } … … 1007 1010 UltraScan job error notification from gridctl.php: 1008 1011 1009 Update Time : $updateTime 1012 Update Time : $updateTime [ now=$now ] 1010 1013 GFAC Status : $status 1011 1014 Cluster : $cluster … … 1050 1053 break; 1051 1054 1052 $status = 'DATA';1053 break;1055 // $status = 'DATA'; 1056 // break; 1054 1057 1055 1058 case 'COMPLETED' :
Note:
See TracChangeset
for help on using the changeset viewer.