Skip to content
Snippets Groups Projects
Commit b63b0445 authored by KyleKlenk's avatar KyleKlenk
Browse files

added files for creating the correct configuration for clients

created script for launching apptainer for server
parent 1dea976f
No related branches found
No related tags found
No related merge requests found
import json
import sys
def distributed_settings(hostname, port):
distributed_settings = {
"distributed-mode": False,
"host":hostname,
"port":port,
"total_hru_count": 5,
"num_hru_per_batch": 1,
"heartbeat_interval": 20,
"lost_node_threshold": 3
}
return distributed_settings
settings_dict = {
"DistributedSettings": {}
}
hostname = sys.argv[1]
port = sys.argv[2]
settings_dict['DistributedSettings'] = distributed_settings(hostname, int(port))
with open('Summa_Actors_Settings.json', 'w') as summa_actors_settings_file:
json.dump(settings_dict, summa_actors_settings_file, indent=2)
\ No newline at end of file
...@@ -4,7 +4,11 @@ def distributed_settings(): ...@@ -4,7 +4,11 @@ def distributed_settings():
distributed_settings = { distributed_settings = {
"distributed-mode": False, "distributed-mode": False,
"host":"localhost", "host":"localhost",
"port":4444 "port":4444,
"total_hru_count": 5,
"num_hru_per_batch": 1,
"heartbeat_interval": 20,
"lost_node_threshold": 3
} }
return distributed_settings return distributed_settings
......
#!/bin/bash
nohup apptainer exec --bind /gladwell:/gladwell \
--bind /scratch:/scratch \
--bind /home/kck540/Summa-Actors:/Summa-Actors \
/gladwell/kck540/container_files/summa_actors.sif /Summa-Actors/config/summa-distributed/run_server.sh 2>&1 > /scratch/kck540/Summa_Distributed_test/logs/nohup.out &
\ No newline at end of file
# !/bin/bash
export LD_LIBRARY_PATH=/Summa-Actors/bin/:/usr/local/lib
cd /Summa-Actors/build
make
/Summa-Actors/bin/summaMain -s -c /Summa-Actors/config/Summa_Actors_Settings.json
\ No newline at end of file
...@@ -19,6 +19,7 @@ From: ubuntu:20.04 ...@@ -19,6 +19,7 @@ From: ubuntu:20.04
libssl-dev \ libssl-dev \
make \ make \
gfortran \ gfortran \
python3.8 \
python3-pip \ python3-pip \
gdb &&\ gdb &&\
apt-get autoclean apt-get autoclean
......
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