Skip to content

Commit

Permalink
wb | add latency service and profile for the 52 perf nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste authored and mgmeier committed May 8, 2024
1 parent 04a09f3 commit 489c43c
Show file tree
Hide file tree
Showing 14 changed files with 652 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ PROFILES_VENDOR := dish dish-plutus dish-10M dish-10M-plutus
# Cloud version of "default", "ci-test" and "ci-bench" plus value (52+explorer)
# Not all local profiles are compatible or tested (yet) with a cloud runs
PROFILES_NOMAD_PERF := default-nomadperf ci-test-nomadperf ci-bench-nomadperf value-nomadperf oldtracing-nomadperf ci-test-oldtracing-nomadperf ci-bench-oldtracing-nomadperf value-oldtracing-nomadperf
PROFILES_NOMAD_PERF += plutus-nomadperf fast-nomadperf
PROFILES_NOMAD_PERF += plutus-nomadperf fast-nomadperf latency-nomadperf
PROFILES_NOMAD_PERF_NOP2P := default-nomadperf-nop2p oldtracing-nomadperf-nop2p ci-test-nomadperf-nop2p ci-bench-nomadperf-nop2p
PROFILES_NOMAD_PERF_NOP2P += value-nomadperf-nop2p value-oldtracing-nomadperf-nop2p plutus-nomadperf-nop2p fast-nomadperf-nop2p

Expand Down
2 changes: 2 additions & 0 deletions nix/workbench/backend/backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@ case "${op}" in
start-nodes ) backend_$WB_BACKEND "$@";;
start-generator ) backend_$WB_BACKEND "$@";;
start-healthchecks ) backend_$WB_BACKEND "$@";;
start-latencies ) backend_$WB_BACKEND "$@";;
# Fine grained
start-node ) backend_$WB_BACKEND "$@";;
stop-node ) backend_$WB_BACKEND "$@";;
wait-node ) backend_$WB_BACKEND "$@";;
wait-node-stopped ) backend_$WB_BACKEND "$@";;
get-node-socket-path ) backend_$WB_BACKEND "$@";;
wait-pools-stopped ) backend_$WB_BACKEND "$@";;
wait-latencies-stopped ) backend_$WB_BACKEND "$@";;
# Stop functions
stop-all ) backend_$WB_BACKEND "$@";;
fetch-logs ) backend_$WB_BACKEND "$@";;
Expand Down
14 changes: 14 additions & 0 deletions nix/workbench/backend/nomad-job.nix
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,20 @@ let
}
]
++
# latency
[
## Latency start.sh script.
{
env = false;
destination = "local/${stateDir}/latency/start.sh";
data = escapeTemplate
profileData.latency-service.start.value;
change_mode = "noop";
error_on_missing_key = true;
perms = "744"; # Only for every "start.sh" script. Default: "644"
}
]
++
# ssh
(lib.optionals withSsh (
let
Expand Down
6 changes: 6 additions & 0 deletions nix/workbench/backend/nomad.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ let
flake-output = "legacyPackages.x86_64-linux.findutils";
installable = "${flake-reference}/${gitrev}#${flake-output}";
};
iputils = rec {
nix-store-path = pkgs.iputils;
flake-reference = "github:intersectmbo/cardano-node";
flake-output = "legacyPackages.x86_64-linux.iputils";
installable = "${flake-reference}/${gitrev}#${flake-output}";
};
gnutar = rec {
nix-store-path = pkgs.gnutar;
flake-reference = "github:intersectmbo/cardano-node";
Expand Down

0 comments on commit 489c43c

Please sign in to comment.