Skip to content

Commit d41062b

Browse files
authored
Merge pull request #2278 from codalab/doc-worker
Update Compute-Worker-Management---Setup.md
2 parents f4e84dd + 3b9992c commit d41062b

1 file changed

Lines changed: 4 additions & 36 deletions

File tree

documentation/docs/Organizers/Running_a_benchmark/Compute-Worker-Management---Setup.md

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ b) Install manually, following the steps at: https://docs.docker.com/install/
2727
## Pull Compute Worker Image
2828
On the compute worker machine, run the following command in a shell:
2929
```bash
30-
docker pull codalab/competitions-v2-compute-worker
30+
docker pull codalab/codabench-compute-worker
3131
```
3232

3333
That will pull the latest image for the v2 worker. For specific versions, see the docker hub page at:
34-
https://hub.docker.com/r/codalab/competitions-v2-compute-worker/tags
34+
https://hub.docker.com/r/codalab/codabench-compute-worker/tags
3535

3636

3737
## Start CPU worker
@@ -108,21 +108,6 @@ You can then launch the worker by running this command in the terminal where the
108108
docker compose up -d
109109
```
110110

111-
### Deprecated method (one liner)
112-
Alternately, you can use the docker run below:
113-
```bash
114-
docker run \
115-
-v /codabench:/codabench \
116-
-v /var/run/docker.sock:/var/run/docker.sock \
117-
-d \
118-
--env-file .env \
119-
--name compute_worker \
120-
--restart unless-stopped \
121-
--log-opt max-size=50m \
122-
--log-opt max-file=3 \
123-
codalab/competitions-v2-compute-worker:latest
124-
```
125-
126111

127112
## Start GPU worker
128113
Make a `.env` file, as explained in CPU worker instructions.
@@ -163,23 +148,6 @@ You can then launch the worker by running this command in the terminal where the
163148
docker compose up -d
164149
```
165150

166-
167-
### NVIDIA-docker Wrapper (deprecated method)
168-
[Nvidia installation instructions](https://github.com/NVIDIA/nvidia-docker#quickstart)
169-
```bash
170-
nvidia-docker run \
171-
-v /codabench:/codabench \
172-
-v /var/run/docker.sock:/var/run/docker.sock \
173-
-v /var/lib/nvidia-docker/nvidia-docker.sock:/var/lib/nvidia-docker/nvidia-docker.sock \
174-
-d \
175-
--env-file .env \
176-
--name compute_worker \
177-
--restart unless-stopped \
178-
--log-opt max-size=50m \
179-
--log-opt max-file=3 \
180-
codalab/competitions-v2-compute-worker:gpu
181-
```
182-
183151
Note that a competition docker image including CUDA and other GPU libraries, such as `codalab/codalab-legacy:gpu`, is then required.
184152

185153
## Check logs
@@ -213,7 +181,7 @@ It is recommended to store the docker container hostname to identify the worker.
213181
```sh
214182
$ docker ps
215183
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
216-
1a2b3d4e5f67 codalab/competitions-v2-compute-worker:latest "/bin/sh -c 'celery …" 3 days ago Up 3 days compute_worker
184+
1a2b3d4e5f67 codalab/codabench-compute-worker:latest "/bin/sh -c 'celery …" 3 days ago Up 3 days compute_worker
217185
```
218186

219187
For each submission made to your queue, you can know what worker computed the ingestion and the scoring jobs in the [server status page](Server-status-page.md).
@@ -273,4 +241,4 @@ Update the worker:
273241
docker compose down
274242
docker compose pull
275243
docker compose up -d
276-
```
244+
```

0 commit comments

Comments
 (0)