Skip to content
Snippets Groups Projects
Commit cffd6aed authored by tpylak's avatar tpylak
Browse files

LMS-211 multiple ETL server threads in one instance, integration tests

SVN: 3277
parent f067daa0
No related branches found
No related tags found
No related merge requests found
...@@ -217,8 +217,7 @@ function install_lims_client { ...@@ -217,8 +217,7 @@ function install_lims_client {
# unpack everything, override default configuration with test configuation # unpack everything, override default configuration with test configuation
function install_etls { function install_etls {
unpack etlserver unpack etlserver
prepare etlserver etlserver-raw prepare etlserver etlserver-all
prepare etlserver etlserver-analys
remove_unpacked etlserver remove_unpacked etlserver
} }
...@@ -378,7 +377,7 @@ function create_test_data_dir { ...@@ -378,7 +377,7 @@ function create_test_data_dir {
local DIR=$2 local DIR=$2
mkdir $DIR/$NAME mkdir $DIR/$NAME
local i=0 local i=0
while [ $i -lt 5 ]; do while [ $i -lt 15 ]; do
create_test_data_file $DIR/$NAME/$NAME-data$i.txt create_test_data_file $DIR/$NAME/$NAME-data$i.txt
let i=i+1 let i=i+1
done done
...@@ -438,8 +437,7 @@ function switch_dmv { ...@@ -438,8 +437,7 @@ function switch_dmv {
function switch_processing_pipeline { function switch_processing_pipeline {
new_state=$1 new_state=$1
switch_etl $new_state etlserver-analys switch_etl $new_state etlserver-all
switch_etl $new_state etlserver-raw
switch_dmv $new_state datamover-analys switch_dmv $new_state datamover-analys
switch_sth $new_state dummy-img-analyser start.sh stop.sh switch_sth $new_state dummy-img-analyser start.sh stop.sh
switch_dmv $new_state datamover-raw switch_dmv $new_state datamover-raw
...@@ -472,9 +470,11 @@ function assert_correct_results { ...@@ -472,9 +470,11 @@ function assert_correct_results {
assert_dir_empty $DATA/in-analys assert_dir_empty $DATA/in-analys
assert_dir_empty $DATA/out-analys assert_dir_empty $DATA/out-analys
assert_dir_empty $DATA/analys-copy assert_dir_empty $DATA/analys-copy
imgAnalys="$DATA/store-analys/Project_NEMO/Experiment_EXP1/ObservableType_IMAGE_ANALYSIS_DATA/Barcode_3VCP1/1"
local store_dir=$DATA/main-store
local imgAnalys="$store_dir/Project_NEMO/Experiment_EXP1/ObservableType_IMAGE_ANALYSIS_DATA/Barcode_3VCP1/1"
assert_dir_exists "$imgAnalys" assert_dir_exists "$imgAnalys"
rawData="$DATA/store-raw/3V/Project_NEMO/Experiment_EXP1/ObservableType_IMAGE/Barcode_3VCP1/1" local rawData="$store_dir/3V/Project_NEMO/Experiment_EXP1/ObservableType_IMAGE/Barcode_3VCP1/1"
assert_dir_exists "$rawData" assert_dir_exists "$rawData"
} }
......
# The root directory of the data store # The root directory of the data store
storeroot-dir = ../data/store-raw storeroot-dir = ../data/main-store
# The directory to watch for incoming data.
incoming-dir = ../data/out-raw
# The check interval (in seconds) # The check interval (in seconds)
check-interval = 2 check-interval = 2
...@@ -11,7 +8,7 @@ check-interval = 2 ...@@ -11,7 +8,7 @@ check-interval = 2
server-url = https://localhost:8443/openbis/services/etl-openbis server-url = https://localhost:8443/openbis/services/etl-openbis
# The username to use when contacting the LIMS server # The username to use when contacting the LIMS server
username = etlserver2 username = etlserver
# The password to use when contacting the LIMS server # The password to use when contacting the LIMS server
password = <change this> password = <change this>
...@@ -29,30 +26,62 @@ mail.smtp.host = mail.ethz.ch ...@@ -29,30 +26,62 @@ mail.smtp.host = mail.ethz.ch
# The number of milliseconds to wait before retrying to execute the renaming process. # The number of milliseconds to wait before retrying to execute the renaming process.
# renaming.failure.millis-to-sleep = 5000 # renaming.failure.millis-to-sleep = 5000
# Comma separated names of processing threads. Each thread should have configuration properties prefixed with its name
# E.g. 'code-extractor' property for the thread 'my-etl' should be specified as 'my-etl.code-extractor'
inputs=raw-data,image-analysis
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Plugin properties # Raw data thread
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# The directory to watch for incoming data.
raw-data.incoming-dir = ../data/out-raw
# The extractor class to use for code extraction # The extractor plugin class to use for code extraction
code-extractor = ch.systemsx.cisd.etlserver.threev.CodeExtractor raw-data.code-extractor = ch.systemsx.cisd.etlserver.threev.CodeExtractor
# The separator that separates an experiment code from the data set one # The separator that separates an experiment code from the data set one
code-extractor.entity-separator = _ raw-data.code-extractor.entity-separator = _
code-extractor.number-of-prefixes = 2 raw-data.code-extractor.number-of-prefixes = 2
# The separator that separates project code from experiment code # The separator that separates project code from experiment code
code-extractor.project-separator = . raw-data.code-extractor.project-separator = .
# ...........................................................................
# The extractor plugin class to use for type extraction
raw-data.type-extractor = ch.systemsx.cisd.etlserver.SimpleTypeExtractor
raw-data.type-extractor.file-format-type = TIFF
raw-data.type-extractor.locator-type = RELATIVE LOCATION
raw-data.type-extractor.observable-type = IMAGE
raw-data.type-extractor.procedure-type = DATA ACQUISITION
# The storage processor plugin (IStorageProcessor implementation)
# raw-data.storage-processor = ch.systemsx.cisd.etlserver.DefaultStorageProcessor
raw-data.storage-processor = ch.systemsx.cisd.etlserver.BDSStorageProcessor
raw-data.storage-processor.version = 1.0
raw-data.storage-processor.measurementEntityTypeDescription = screening plate
raw-data.storage-processor.processingType = RAW_DATA
raw-data.storage-processor.format = HCS_IMAGE V1.0
raw-data.storage-processor.number_of_channels = 1
raw-data.storage-processor.contains_original_data = true
raw-data.storage-processor.well_geometry = 3x3
raw-data.storage-processor.plate_geometry = 16x24
raw-data.storage-processor.file-extractor = ch.systemsx.cisd.etlserver.threev.HCSImageFileExtractor
# ---------------------------------------------------------------------------
# image-analysis thread
# ---------------------------------------------------------------------------
image-analysis.incoming-dir = ../data/out-analys
image-analysis.code-extractor = ch.systemsx.cisd.etlserver.threev.CodeExtractor
image-analysis.code-extractor.entity-separator = _
image-analysis.code-extractor.number-of-prefixes = 2
image-analysis.code-extractor.project-separator = .
# ........................................................................... # ...........................................................................
# The extractor class to use for type extraction # The extractor class to use for type extraction
type-extractor = ch.systemsx.cisd.etlserver.SimpleTypeExtractor image-analysis.type-extractor = ch.systemsx.cisd.etlserver.SimpleTypeExtractor
type-extractor.file-format-type = TIFF image-analysis.type-extractor.file-format-type = 3VPROPRIETARY
type-extractor.locator-type = RELATIVE LOCATION image-analysis.type-extractor.locator-type = RELATIVE LOCATION
type-extractor.observable-type = IMAGE image-analysis.type-extractor.observable-type = IMAGE_ANALYSIS_DATA
type-extractor.procedure-type = DATA ACQUISITION image-analysis.type-extractor.procedure-type = IMAGE ANALYSIS
# The storage processor (IStorageProcessor implementation) # The storage processor (IStorageProcessor implementation)
# storage-processor = ch.systemsx.cisd.etlserver.DefaultStorageProcessor image-analysis.storage-processor = ch.systemsx.cisd.etlserver.DefaultStorageProcessor
storage-processor = ch.systemsx.cisd.etlserver.BDSStorageProcessor
storage-processor.version = 1.0
storage-processor.measurementEntityTypeDescription = screening plate
storage-processor.processingType = RAW_DATA
storage-processor.format = UNKNOWN V1.0
\ No newline at end of file
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
poweruser poweruser
[Roles] [Roles]
etlserver = etlserver1,etlserver2 etlserver = etlserver
admin = test admin = test
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment