-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new high memory autoreducer node to docker-compose
- Loading branch information
1 parent
2dd77ec
commit 90a7993
Showing
6 changed files
with
107 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM registry.access.redhat.com/ubi9/ubi | ||
|
||
# install various dependencies | ||
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm | ||
RUN dnf updateinfo | ||
RUN dnf install -y procps-ng # pgrep is used for health check | ||
|
||
# rpm needs to special groups first | ||
RUN groupadd snswheel | ||
RUN useradd snsdata -G snswheel | ||
|
||
# put the developer configuration file in place | ||
RUN mkdir -p /etc/autoreduce/ | ||
RUN mkdir -p /opt/postprocessing/log/ | ||
COPY tests/configuration/post_process_consumer.himem.conf /etc/autoreduce/post_processing.conf | ||
|
||
# install postprocessing | ||
RUN dnf install -y https://github.com/neutrons/post_processing_agent/releases/download/v3.1/postprocessing-3.1.0-1.el9.noarch.rpm | ||
|
||
# install the fake test data | ||
ARG DATA_TARBALL=/tmp/SNSdata.tar.gz | ||
COPY SNSdata.tar.gz ${DATA_TARBALL} | ||
RUN ls ${DATA_TARBALL} | ||
RUN mkdir /SNS | ||
RUN cd /SNS && tar xzf ${DATA_TARBALL} | ||
|
||
# add fake ONCat ingest scripts | ||
RUN touch /opt/postprocessing/scripts/oncat_ingest.py && \ | ||
touch /opt/postprocessing/scripts/oncat_reduced_ingest.py | ||
|
||
# create startup script | ||
RUN echo "#!/bin/bash" > /usr/bin/run_postprocessing && \ | ||
echo "/opt/postprocessing/queueProcessor.py &" >> /usr/bin/run_postprocessing && \ | ||
echo "sleep 1" >> /usr/bin/run_postprocessing && \ | ||
echo "tail -F /opt/postprocessing/log/postprocessing.log" >> /usr/bin/run_postprocessing && \ | ||
chmod +x /usr/bin/run_postprocessing | ||
|
||
# start the service | ||
CMD run_postprocessing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"failover_uri": "failover:(tcp://localhost:61613)?randomize=false,startupMaxReconnectAttempts=100,initialReconnectDelay=1000,maxReconnectDelay=5000,maxReconnectAttempts=-1", | ||
"brokers": [["activemq", 61613]], | ||
"amq_user": "icat", | ||
"amq_pwd": "icat", | ||
"sw_dir": "/opt/postprocessing", | ||
"python_dir": "/opt/postprocessing/postprocessing", | ||
"start_script": "python3", | ||
"task_script": "PostProcessAdmin.py", | ||
"task_script_queue_arg": "-q", | ||
"task_script_data_arg": "-d", | ||
"log_file": "/opt/postprocessing/log/postprocessing.log", | ||
"postprocess_error": "POSTPROCESS.ERROR", | ||
"reduction_started": "REDUCTION.STARTED", | ||
"reduction_complete": "REDUCTION.COMPLETE", | ||
"reduction_error": "REDUCTION.ERROR", | ||
"reduction_disabled": "REDUCTION.DISABLED", | ||
"heart_beat": "/topic/SNS.COMMON.STATUS.AUTOREDUCE.0", | ||
"dev_output_dir": "", | ||
"reduction_data_ready": "REDUCTION.DATA_READY", | ||
"communication_only": 0, | ||
"max_procs": 5, | ||
"processors": ["oncat_processor.ONCatProcessor", | ||
"oncat_reduced_processor.ONCatProcessor", | ||
"create_reduction_script_processor.CreateReductionScriptProcessor", | ||
"reduction_processor.ReductionProcessor" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"failover_uri": "failover:(tcp://localhost:61613)?randomize=false,startupMaxReconnectAttempts=100,initialReconnectDelay=1000,maxReconnectDelay=5000,maxReconnectAttempts=-1", | ||
"brokers": [["activemq", 61613]], | ||
"amq_user": "icat", | ||
"amq_pwd": "icat", | ||
"sw_dir": "/opt/postprocessing", | ||
"python_dir": "/opt/postprocessing/postprocessing", | ||
"start_script": "python3", | ||
"task_script": "PostProcessAdmin.py", | ||
"task_script_queue_arg": "-q", | ||
"task_script_data_arg": "-d", | ||
"log_file": "/opt/postprocessing/log/postprocessing.log", | ||
"postprocess_error": "POSTPROCESS.ERROR", | ||
"reduction_started": "REDUCTION.STARTED", | ||
"reduction_complete": "REDUCTION.COMPLETE", | ||
"reduction_error": "REDUCTION.ERROR", | ||
"reduction_disabled": "REDUCTION.DISABLED", | ||
"heart_beat": "/topic/SNS.COMMON.STATUS.AUTOREDUCE.0", | ||
"dev_output_dir": "", | ||
"reduction_data_ready": "REDUCTION.DATA_READY", | ||
"communication_only": 0, | ||
"max_procs": 5, | ||
"processors": ["reduction_processor.ReductionProcessorHighMemory"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters