From 913a2a20b131dc45546bf8057933953987864923 Mon Sep 17 00:00:00 2001 From: ll7 Date: Fri, 28 Jun 2024 13:53:26 +0200 Subject: [PATCH] feat: Update distributed simulation documentation --- .../14_distributed_simulation.md | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/doc/02_development/14_distributed_simulation.md b/doc/02_development/14_distributed_simulation.md index 5fa139f9..75a981d7 100644 --- a/doc/02_development/14_distributed_simulation.md +++ b/doc/02_development/14_distributed_simulation.md @@ -1,6 +1,7 @@ # Distributed Simulation -If you have not enough compute resources, start the `carla-simulator-server' on a remote machine and execute the agent on your local machine. +If you have not enough compute resources, start the `carla-simulator-server` on a remote machine and execute the agent on your local machine. +As far as we know, you need more than **10 GB of VRAM** to run the server and the agent on the same machine. ## Author @@ -25,6 +26,35 @@ Julian Trommer and Lennart Luttkus - set the host ip address from the remote machine as the new carla-ip address - start the agent on your local machine +### Ensure similarity between normal docker-compose and distributed docker-compose files + +Carefully compare that their are no major differences between the `docker-compose.yml` and `docker-compose.distributed.yml` files. +Mainly, the `carla-simulator` service will not be executed in the non-distributed version. + +### Set the `` of the carla simulator in docker-compose distributed files + +Replace the argument `` with the ip address of the remote machine. +You can find the ip address of the remote machine by executing the following command on the remote machine: + +```bash +hostname -I +``` + +Typically, the ip address is the first one in the list. +`172.xxx.xxx.xxx` is the localhost address and not the relevant address. + +Replace the ip-address in the following files: + +- `docker-compose.distributed.yml` +- `docker-compose.dev.distributed.yml` + +### Start the agent on your local machine + +```bash +b5 run_distributed +b5 run_dev_distributed +``` + ## How do you know that you do not have enough compute resources? ```bash