monsterQueriesHod
上传用户:quxuerui
上传日期:2018-01-08
资源大小:41811k
文件大小:1k
源码类别:

网格计算

开发平台:

Java

  1. #!/usr/bin/env bash
  2. GRID_DIR=`dirname "$0"`
  3. GRID_DIR=`cd "$GRID_DIR"; pwd`
  4. source $GRID_DIR/../gridmix-env
  5. for ((i=0; i < $NUM_OF_SMALL_JOBS_PER_CLASS; i++))
  6. do
  7.     echo $i
  8.     CLUSTER_DIR=$CLUSTER_DIR_BASE/monster_query.small.$i
  9.     mkdir $CLUSTER_DIR
  10.     hod script -d $CLUSTER_DIR $SMALL_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/monsterQuery/monster_query.small  2>&1 > monster_query.small.$i.out &
  11.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  12. done
  13.     
  14. for ((i=0; i < $NUM_OF_MEDIUM_JOBS_PER_CLASS; i++))
  15. do
  16.     echo $i
  17.     CLUSTER_DIR=$CLUSTER_DIR_BASE/monster_query.medium.$i
  18.     mkdir $CLUSTER_DIR
  19.     hod script -d $CLUSTER_DIR $MEDIUM_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/monsterQuery/monster_query.medium  2>&1 > monster_query.medium.$i.out &
  20.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  21. done
  22. for ((i=0; i < $NUM_OF_LARGE_JOBS_PER_CLASS; i++))
  23. do
  24.     echo $i
  25.     CLUSTER_DIR=$CLUSTER_DIR_BASE/monster_query.large.$i
  26.     mkdir $CLUSTER_DIR
  27.     hod script -d  $CLUSTER_DIR $LARGE_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/monsterQuery/monster_query.large  2>&1 > monster_query.large.$i.out &
  28.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  29. done