Skip to content

Commit 30a1c06

Browse files
committed
Renamed some variables in chimbuko_config for consistency and added commenting
Updated ubuntu18.04 Mochi Dockerfile to reflect new source for sds repo Services script now checks the variables passed from config to the AD are defined
1 parent abfeca0 commit 30a1c06

3 files changed

Lines changed: 17 additions & 12 deletions

File tree

docker/ubuntu18.04/openmpi4.0.4/Dockerfile.mochi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ RUN echo FORCE_REDOWNLOAD_10_30_20_12_53 >> /dev/null && \
99

1010
RUN source /spack/spack/share/spack/setup-env.sh && \
1111
mkdir /sds && cd /sds && \
12-
git clone https://xgitlab.cels.anl.gov/sds/sds-repo.git && \
13-
spack repo add sds-repo
12+
git clone https://github.com/mochi-hpc/mochi-spack-packages.git && \
13+
spack repo add mochi-spack-packages
1414

1515
COPY packages.yaml /root/.spack/
1616

1717
RUN source /spack/spack/share/spack/setup-env.sh && \
1818
spack install mercury ^libfabric@1.9.0 && \
19-
spack install mochi-sonata@master ^libfabric@1.9.0 && \
20-
spack install py-mochi-sonata ^mochi-sonata@master ^python@3.6.0 ^libfabric@1.9.0 && \
19+
spack install mochi-sonata ^libfabric@1.9.0 && \
20+
spack install py-mochi-sonata ^python@3.6.0 ^libfabric@1.9.0 && \
2121
spack gc -y && spack clean -a
2222

2323
WORKDIR /

scripts/launch/chimbuko_config.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,14 @@ provdb_domain=mlx5_0 #only needed for verbs provider <------------ ***SET ME (
3939
pserver_extra_args="" #any extra command line arguments to pass
4040
pserver_port=5559 #port for parameter server
4141
pserver_nt=2 #number of worker threads
42-
pserver_ad="hbos"
4342
####################################
4443
#Options for the AD module
4544
####################################
46-
ad_extra_args="-perf_outputpath chimbuko/logs -perf_step 1" #any extra command line arguments to pass. chimbuko/logs is automatically created by services script
47-
ad_outlier_sigma=12 #number of standard deviations that defines an outlier
48-
ad_win_size=5 #number of events around an anomaly to store; provDB entry size is proportional to this
49-
ad_alg=${pserver_ad}
50-
hbos_thres=0.99
45+
ad_extra_args="-perf_outputpath chimbuko/logs -perf_step 1" #any extra command line arguments to pass. Note: chimbuko/logs is automatically created by services script
46+
ad_win_size=5 #number of events around an anomaly to store; provDB entry size is proportional to this so keep it small!
47+
ad_alg="hbos" #the anomaly detection algorithm. Valid values are "hbos" and "sstd"
48+
ad_outlier_hbos_threshold=0.99 #the percentile of events outside of which are considered anomalies by the HBOS algorithm
49+
ad_outlier_sstd_sigma=12 #number of standard deviations that defines an outlier in the SSTD algorithm
5150
####################################
5251
#Options for TAU
5352
#Note: Only the TAU_ADIOS2_PATH, TAU_ADIOS2_FILE_PREFIX, EXE_NAME and TAU_ADIOS2_ENGINE variables are used by the Chimbuko services script and there only to generate the suggested

scripts/launch/run_services.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,9 @@ if (( 1 )); then
194194
echo "==========================================="
195195
echo "Chimbuko Services: Pserver $pserver_addr"
196196

197+
pserver_alg=${ad_alg} #Pserver AD algorithm choice must match that used for the driver
197198
pserver_addr="tcp://${ip}:${pserver_port}" #address for parameter server in format "tcp://IP:PORT"
198-
pserver -ad ${pserver_ad} -nt ${pserver_nt} -logdir ${log_dir} -port ${pserver_port} ${ps_extra_args} 2>&1 | tee ${log_dir}/pserver.log &
199+
pserver -ad ${pserver_alg} -nt ${pserver_nt} -logdir ${log_dir} -port ${pserver_port} ${ps_extra_args} 2>&1 | tee ${log_dir}/pserver.log &
199200

200201
ps_pid=$!
201202
extra_args+=" -pserver_addr ${pserver_addr}"
@@ -204,10 +205,15 @@ fi
204205

205206
#echo "Chimbuko Services: Processes are: " $(ps)
206207

208+
#Check that the variables passed to the AD from the config file are defined
209+
testit=${ad_outlier_sstd_sigma}
210+
testit=${ad_win_size}
211+
testit=${ad_alg}
212+
testit=${ad_outlier_hbos_threshold}
207213

208214
############################################
209215
#Generate the command to launch the AD module
210-
ad_opts="${extra_args} -err_outputpath ${log_dir} -outlier_sigma ${ad_outlier_sigma} -anom_win_size ${ad_win_size} -ad_algorithm ${ad_alg} -hbos_threshold ${hbos_thres}"
216+
ad_opts="${extra_args} -err_outputpath ${log_dir} -outlier_sigma ${ad_outlier_sstd_sigma} -anom_win_size ${ad_win_size} -ad_algorithm ${ad_alg} -hbos_threshold ${ad_outlier_hbos_threshold}"
211217
ad_cmd="driver ${TAU_ADIOS2_ENGINE} ${TAU_ADIOS2_PATH} ${TAU_ADIOS2_FILE_PREFIX}-${EXE_NAME} ${ad_opts} 2>&1 | tee ${log_dir}/ad.log"
212218
echo ${ad_cmd} > ${var_dir}/chimbuko_ad_cmdline.var
213219

0 commit comments

Comments
 (0)