Skip to content

Commit

Permalink
Adding logic for creating and managing DAG invocations
Browse files Browse the repository at this point in the history
Signed-off-by: Kway Yi Shen <[email protected]>
Signed-off-by: Kway Yi Shen <SamKway@localhost>
Signed-off-by: Kway Yi Shen <[email protected]>
  • Loading branch information
NotAnAddictz committed Sep 3, 2024
1 parent e5522c1 commit a0c869f
Show file tree
Hide file tree
Showing 11 changed files with 3,212 additions and 48 deletions.
4 changes: 4 additions & 0 deletions .github/configs/wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Ctrl
currencyservice
Daglis
DAGMode
DAGTracePath
datacenter
Datacenter
dataflows
Expand All @@ -165,6 +166,7 @@ DeathStarBenchs
debian
deployer
deps
depth
dev
devmapper
df
Expand Down Expand Up @@ -661,6 +663,7 @@ wc
WDDD
wget
WIDX
width
WIOSCA
WithBlock
WithFields
Expand Down Expand Up @@ -710,6 +713,7 @@ cgroups
noop
YAMLs
cgo
EnableDAGDataset
EnableMetricsScrapping
EnableZipkinTracing
EndpointPort
Expand Down
6 changes: 5 additions & 1 deletion cmd/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@

"GRPCConnectionTimeoutSeconds": 15,
"GRPCFunctionTimeoutSeconds": 900,
"DAGMode": false
"DAGMode": false,
"DAGTracePath": "data/traces/sampled_150/20",
"EnableDAGDataset": true,
"Width": 2,
"Depth": 2
}
11 changes: 10 additions & 1 deletion cmd/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ package main
import (
"flag"
"fmt"
"golang.org/x/exp/slices"
"os"
"time"

"golang.org/x/exp/slices"

"github.com/vhive-serverless/loader/pkg/common"
"github.com/vhive-serverless/loader/pkg/config"
"github.com/vhive-serverless/loader/pkg/driver"
Expand Down Expand Up @@ -101,6 +102,14 @@ func main() {
log.Fatal("Unsupported platform! Supported platforms are [Knative, OpenWhisk, AWSLambda, Dirigent]")
}

if cfg.DAGMode {
cfg.TracePath = cfg.DAGTracePath
_, err := os.Stat(cfg.DAGTracePath)
if err != nil {
log.Fatal("Trace not found")
}
}

runTraceMode(&cfg, *iatGeneration, *generated)
}

Expand Down
Loading

0 comments on commit a0c869f

Please sign in to comment.