Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions examples/docker-unix/README.md

This file was deleted.

27 changes: 0 additions & 27 deletions examples/docker-unix/cardamon.unix.toml

This file was deleted.

6 changes: 0 additions & 6 deletions examples/docker-unix/db/docker-compose.yml

This file was deleted.

8 changes: 0 additions & 8 deletions examples/docker-unix/test/docker-compose.yml

This file was deleted.

9 changes: 9 additions & 0 deletions examples/hybrid/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ubuntu:latest

WORKDIR /app
COPY rand-api /app/rand-api
RUN chmod +x /app/rand-api

EXPOSE 4242
CMD ["./rand-api"]
# ENTRYPOINT ["tail", "-f", "/dev/null"]
47 changes: 47 additions & 0 deletions examples/hybrid/cardamon.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# CPU
# ########################################
[cpu]
name = "AMD Ryzen 7 PRO 6850U with Radeon Graphics"
curve = [
7.627190097500079,
0.07551567953624883,
20.45110313049153,
-1.5261422759740344,
]

# Processes
# ########################################
[[process]]
name = "rand-api"
up = "./rand-api"
down = "kill {pid}"
redirect.to = "file"
process.type = "baremetal"

[[process]]
name = "rand-api-docker"
up = "docker run -d --name c1 -p 4244:4243 rand-api"
down = "bash -c 'docker stop c1 && docker rm c1'"
redirect.to = "file"
process.type = "docker"
process.containers = ["c1"]
startup_grace = 8000

# Scenarios
# ########################################
[[scenario]]
name = "stress"
desc = "Calls each instance of rand-api 1500 times"
command = "sh scenario.sh"
iterations = 2
processes = ["rand-api", "rand-api-docker"]

# Observations
# ########################################
[[observation]]
name = "stress"
scenarios = ["stress"]

[[observation]]
name = "live_monitor"
processes = ["test_proc1", "test_proc2"]
Binary file added examples/hybrid/rand-api
Binary file not shown.
5 changes: 5 additions & 0 deletions examples/hybrid/scenario.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
for i in $(seq 1 1500); do
curl localhost:4243/rand >/dev/null 2>&1
curl localhost:4244/rand >/dev/null 2>&1
done
14 changes: 0 additions & 14 deletions examples/tod/Dockerfile

This file was deleted.

22 changes: 0 additions & 22 deletions examples/tod/cardamon.toml

This file was deleted.

23 changes: 0 additions & 23 deletions examples/tod/docker-compose.yml

This file was deleted.

13 changes: 0 additions & 13 deletions examples/tod/go.mod

This file was deleted.

26 changes: 0 additions & 26 deletions examples/tod/go.sum

This file was deleted.

109 changes: 0 additions & 109 deletions examples/tod/main.go

This file was deleted.

10 changes: 0 additions & 10 deletions examples/tod/testing/Cargo.toml

This file was deleted.

Loading
Loading