Changeset 39


Ignore:
Timestamp:
Feb 15, 2019, 4:56:31 PM (5 years ago)
Author:
gegorbet
Message:

analType and other minor enhancements

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/cleanup.php

    r37 r39  
    7373   list( $personID ) = mysqli_fetch_array( $result );
    7474
    75    $query  = "SELECT clusterName, submitTime, queueStatus, method "              .
     75   $query  = "SELECT clusterName, submitTime, queueStatus, analType "              .
    7676             "FROM HPCAnalysisRequest h, HPCAnalysisResult r "                   .
    7777             "WHERE h.HPCAnalysisRequestID=$requestID "                          .
  • trunk/cluster_status.php

    r38 r39  
    178178         $clusters = array( "us3iab-devel", "alamo-local", "taito-local" );
    179179      else
    180          $clusters = array( "us3iab-node0", "taito-local");
     180         $clusters = array( "us3iab-node0", "taito-local" );
    181181   }
    182182   else
     
    241241         {
    242242            $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'`;
    244244            $sparts = preg_split( '/\s+/', $qstat );
    245245            $tot    = $sparts[ 2 ];
     
    254254         {
    255255            $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"'`;
    257257            $sparts = preg_split( '/\s+/', $qstat );
    258258            $tot    = $sparts[ 2 ];
     
    272272            break;
    273273         }
    274          case 'taito-local':
    275          {
    276             $host   = "rb_2001068_taito01@taito.csc.fi";
     274         case 'comet':
     275         {
     276            $host   = "us3@comet.sdsc.edu";
    277277            //$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'`;
    279279            $sparts = preg_split( '/\s+/', $qstat );
    280280            $tot    = $sparts[ 1 ];
     
    290290               $run    = $sparts[ 3 ];
    291291               $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               }
    313296            }
    314297            break;
     
    341324            break;
    342325         }
     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
    343347      }
    344348
  • trunk/gridctl.php

    r35 r39  
    2424if ( ! $gLink )
    2525{
    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);
    2932   exit();
    3033}
     
    10071010   UltraScan job error notification from gridctl.php:
    10081011
    1009    Update Time    :  $updateTime
     1012   Update Time    :  $updateTime  [ now=$now ]
    10101013   GFAC Status    :  $status
    10111014   Cluster        :  $cluster
     
    10501053         break;
    10511054
    1052          $status      = 'DATA';
    1053          break;
     1055//         $status      = 'DATA';
     1056//         break;
    10541057
    10551058      case 'COMPLETED' :
Note: See TracChangeset for help on using the changeset viewer.