-
Notifications
You must be signed in to change notification settings - Fork 0
6 Starting an IRPsim Agent
DaGeRe edited this page Jul 11, 2024
·
1 revision
Since the CPU resources on one machine might not be sufficient for running IRPsim, it is possible to create an IRPsim agent on a remote server (bare metal usually works better than VMs here). This requires access to the servereinrichtung repo (gitolite3@irpsim.uni-leipzig.de:servereinrichtung.git).
To start the remote server, execute the following steps:
- Install git, docker, docker-compose and tmux on the system (differs depending on distribution)
- Clone the repo:
git clone gitolite3@irpsim.uni-leipzig.de:servereinrichtung.git - Create an SSH tunnel:
ssh -N -L 5000:localhost:5000 username@mainVM, so the docker images can be pulled - Start the local IRPsim server:
./start_version.sh $branch $UIPORT $BACKENDPORT $JMX_PORT $BACKEND_DATA_FOLDER $DATABASE_PASSWORD $MEMORY_PER_JOB $SUBNETMASK $MEMORYLIMIT $PARALLEL_JOBS, for example./start_version.sh main 8080 8282 90000 localFolder $DATABASE_PASSWORD 10.5.0.0/24 10G -Xmx5g 10 - To allow access, you'll need to configure the connection from the main server to the agent, e.g., by adding to
/etc/apache2/sites-available/default-ssl.confsomething like
ProxyPass /backend-myserver/ http://myserver.de:8282/
ProxyPassReverse /backend-myserver/ http://myserver.de:8282/
ProxyPass /artifacts/ui-client-myserver/ http://myserver.de:8080/
ProxyPassReverse /artifacts/ui-client-myserver/ http://myserver.de:8080/