Skip to content

Commit

Permalink
Several changes to support AWS ECS and fix the test graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Sep 25, 2020
1 parent 797cb2c commit bd5f5dc
Show file tree
Hide file tree
Showing 7 changed files with 2,214 additions and 2,449 deletions.
2 changes: 1 addition & 1 deletion daliuge-common/dlg/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Categories:
VARIABLES = 'Variables'

DATA = 'Data'
COMPONENT = 'Component'
COMPONENT = 'PythonApp'
BASH_SHELL_APP = 'BashShellApp'
MPI = 'Mpi'
DYNLIB_APP = 'DynlibApp'
Expand Down
12 changes: 6 additions & 6 deletions daliuge-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@ Starting node manager:
docker exec -ti daliuge-engine dlg nm -v --no-dlm -H 0.0.0.0
```

Starting master manager:
Starting Data Island Manager:

```bash
docker exec -ti daliuge-engine dlg mm -v -H 0.0.0.0
docker exec -ti daliuge-engine dlg dim -N localhost -v -H 0.0.0.0
```

### Using RESTful commands

It is also possible to use the RESTful interface to start the managers. This requires the usage of either curl or wget, since the API requires POST commands (using a browser is not easily possible). Note that if the containers had been deployed on multiple hosts, the commands below will need to be adjusted to reflect the actual hostname, rather than localhost.

Starting the master manager:
Starting the island manager:

```bash
curl -X POST http://localhost:9000/managers/master
curl -d '{"nodes": ["localhost"]}' -H "Content-Type: application/json" -X POST http://localhost:9000/managers/dataisland
```

Starting the node manager:
Expand All @@ -71,10 +71,10 @@ Starting the node manager:
curl -X POST http://localhost:9000/managers/node
```

Optional: Starting the island manager:
Optional: Starting the master manager:

```bash
curl -d '{"nodes": ["0.0.0.0"]}' -H "Content-Type: application/json" -X POST http://localhost:9000/managers/dataisland
curl -X POST http://localhost:9000/managers/master
```

## Accessing the run-time web interface
Expand Down
5 changes: 5 additions & 0 deletions daliuge-engine/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ COPY --from=0 /usr/local/lib/python3.8/site-packages/. /usr/local/lib/python3.8/
COPY --from=0 /usr/local/bin/. /usr/local/bin/.
COPY --from=0 /daliuge/. /daliuge/.

EXPOSE 5555
EXPOSE 6666
EXPOSE 8000
EXPOSE 8001
EXPOSE 8002
EXPOSE 9000


CMD ["dlg", "daemon", "-vv", "--no-nm"]
2 changes: 1 addition & 1 deletion daliuge-engine/run_engine.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docker run --rm -ti --name daliuge-engine -p 8000:8000 -p 8001:8001 -p 8002:8002 -p 9000:9000 icrar/daliuge-engine:latest
docker run --rm -td --name daliuge-engine -p 5555:5555 -p 6666:6666 -p 8000:8000 -p 8001:8001 -p 8002:8002 -p 9000:9000 icrar/daliuge-engine:latest
Loading

0 comments on commit bd5f5dc

Please sign in to comment.