Skip to content

Commit

Permalink
Impose resource constraints on demos
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Moore <[email protected]>
  • Loading branch information
couryrr-afs authored and drmrd committed Dec 6, 2023
1 parent 4619ac2 commit 5fcb9ab
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
TAG=0.0.6
TAG=0.0.7
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ The use cases supported by the three demos are summarized in conceptual block di
- 🚨 Two EVSE Charging ⚡: `curl https://raw.githubusercontent.com/everest/everest-demo/main/demo-two-evse.sh | bash`
- 🚨 E2E Automated Tests ⚡: `curl https://raw.githubusercontent.com/everest/everest-demo/main/demo-automated-testing.sh | bash`

#### Demo Notes
EVerest is designed with embedded applications in mind. To illustrate this, we've imposed maximum CPU usage and RAM constraints of 100% (1 core) and 1024MB, respectively, in each of the demos. Even on modest desktop hardware, these constraints should only result in slightly longer boot times.
The resource constraints for a demo can be changed in its Docker Compose file (the file downloaded in "STEP 1" below).

### STEP 2: Interact with the demo
- Open the `nodered` flows to understand the module flows at http://127.0.0.1:1880
- Open the demo UI at http://127.0.0.1:1880/ui
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.admin-panel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ services:

manager:
image: ghcr.io/everest/everest-demo/manager:${TAG}
deploy:
resources:
limits:
cpus: '1.0'
memory: 1024mb
depends_on:
- mqtt-server
environment:
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.iso15118-dc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ services:

manager:
image: ghcr.io/everest/everest-demo/manager:${TAG}
deploy:
resources:
limits:
cpus: '1.0'
memory: 1024mb
depends_on:
- mqtt-server
environment:
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.two-evse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ services:

manager:
image: ghcr.io/everest/everest-demo/manager:${TAG}
deploy:
resources:
limits:
cpus: '1.0'
memory: 1024mb
depends_on:
- mqtt-server
environment:
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ services:

manager:
image: ghcr.io/everest/everest-demo/manager:${TAG}
deploy:
resources:
limits:
cpus: '1.0'
memory: 1024mb
depends_on:
- mqtt-server
environment:
Expand Down

0 comments on commit 5fcb9ab

Please sign in to comment.