Changeset 17 for trunk


Ignore:
Timestamp:
Feb 17, 2016, 2:53:58 PM (8 years ago)
Author:
gegorbet
Message:

misc. fixes plus mods for new lonestar5 cluster

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/cleanup.php

    r16 r17  
    344344   $noiseIDs   = array();
    345345   $modelGUIDs = array();
     346   $mrecsIDs   = array();
     347   $fns_used   = array();
    346348
    347349   foreach ( $files as $file )
     
    362364      if ( preg_match( "/mdl.tmp$/", $fn ) )
    363365         continue;
     366
     367      if ( in_array( $fn, $fns_used ) )
     368         continue;
     369
     370      $fns_used[] = $fn;
    364371
    365372      if ( filesize( $fn ) < 100 )
  • trunk/cluster_status.php

    r15 r17  
    165165   global $data;
    166166
    167    //$clusters = array( "alamo", "lonestar", "stampede", "comet", "gordon" );
    168    $clusters = array( "alamo", "lonestar", "stampede", "comet", "gordon", "jureca" );
     167//   $clusters = array( "alamo", "lonestar", "lonestar5", "stampede",
     168//                      "comet", "gordon" );
     169   $clusters = array( "alamo", "lonestar", "lonestar5", "stampede",
     170                      "comet", "gordon", "jureca", "jacinto" );
    169171   foreach ( $clusters as $clname )
    170172   {
     
    186188            break;
    187189         }
     190         case 'jacinto':
     191         {
     192            $host   = "us3@jacinto.uthscsa.edu";
     193            $qstat  = `ssh $host '/opt/torque/bin/qstat -B 2>&1|tail -1'`;
     194            $sparts = preg_split( '/\s+/', $qstat );
     195            $que    = $sparts[ 3 ];
     196            $run    = $sparts[ 4 ];
     197            $sta    = $sparts[ 9 ];
     198            if ( $sta == "Active" )
     199               $sta    = "up";
     200            else
     201               $sta    = "down";
     202            break;
     203         }
    188204         case 'stampede':
    189205         {
     
    219235            break;
    220236         }
     237         case 'lonestar5':
     238         {
     239            $host   = "us3@ls5.tacc.utexas.edu";
     240            $qstat  = `ssh $host '/usr/local/bin/showq 2>&1|tail -1'`;
     241            $sparts = preg_split( '/\s+/', $qstat );
     242            $tot    = $sparts[ 2 ];
     243            $run    = '0';
     244            $que    = '0';
     245            $sta    = "up";
     246            if ( $tot == ''  ||  $tot == '0' )
     247            {
     248               $sta    = "down";
     249            }
     250            else
     251            {
     252               $run    = $sparts[ 5 ];
     253               $que    = $sparts[ 8 ];
     254            }
     255            break;
     256         }
    221257         case 'comet':
    222258         {
     
    250286         {
    251287            $host   = "swus1@jureca.fz-juelich.de";
    252             $qstat  = `ssh $host '/usr/bin/sinfo -s -p batch -o "%a %F" 2>&1|tail -1'`;
     288            $qstat  = `ssh $host '~swus1/scripts/qstat-jureca 2>&1'`;
    253289            $sparts = preg_split( '/\s+/', $qstat );
    254290            $sta    = $sparts[ 0 ];
    255             $knts   = $sparts[ 1 ];
    256             $sparts = preg_split( '/\//', $knts );
    257             $run    = $sparts[ 0 ];
    258             $que    = $sparts[ 1 ];
     291            $run    = $sparts[ 1 ];
     292            $que    = $sparts[ 2 ];
    259293            break;
    260294         }
    261295      }
     296
     297      if ( $sta == "" )
     298         $sta    = "down";
    262299
    263300      if ( $sta == "down" )
     
    274311      $data[] = $a;
    275312
    276       if ( $clname == 'alamo' )
     313      if ( $clname == 'alamo'  ||  $clname == 'jacinto' )
    277314      {
    278315         $a[ 'cluster' ] = $clname . "-local";
  • trunk/gridctl.php

    r15 r17  
    8383   $status_in = $status;
    8484   $status_gw = $status;
     85   $status_ex = $status;
    8586
    8687   // If entry is for Airvata/Thrift, get the true current status
     
    169170      case "FINISHED":
    170171      case "DONE":
    171 //         if ( is_aira_job( $gfacID ) )
    172 //         {
    173 //            complete();
    174 //         }
     172         if ( is_aira_job( $gfacID ) )
     173         {
     174            $status_ex    = getExperimentStatus( $gfacID );
     175write_log( "$loghdr     status=$status status_ex=$status_ex" );
     176            if ( $status_ex === 'COMPLETED' )
     177               complete();
     178         }
    175179      case "PROCESSING":
    176180      default:
     
    679683   {
    680684      $status_ex    = getExperimentStatus( $gfacID );
     685
     686      if ( $status_ex == 'EXECUTING' )
     687      {
     688         if ( $gfac_status == 'SUBMITTED' )
     689            $status_ex    = 'QUEUED';
     690         if ( $gfac_status == 'RUNNING' )
     691            $status_ex    = 'ACTIVE';
     692      }
     693
    681694      $gfac_status  = standard_status( $status_ex );
    682695write_log( "$loghdr get_gfac_status: status_ex=$status_ex gfac_status=$gfac_status" );
Note: See TracChangeset for help on using the changeset viewer.