From 68cc9b8b8e846e61db9c06a01aab13b873461e90 Mon Sep 17 00:00:00 2001 From: Leonid Kondrashov Date: Fri, 15 Sep 2023 17:59:25 +0800 Subject: [PATCH] Update paths to tools in docs Signed-off-by: Leonid Kondrashov --- docs/methodology.md | 12 ++++++------ tools/deployer/client.go | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/methodology.md b/docs/methodology.md index 317cc8de..7051adea 100644 --- a/docs/methodology.md +++ b/docs/methodology.md @@ -4,7 +4,7 @@ vHive and how to run the benchmarks. ## Introduction The key points are: -- The invoker ([examples/invoker](/tools/invoker)) steers load to +- The invoker ([tools/invoker](/tools/invoker)) steers load to a collection of serverless benchmarks (also called _workflows_). - Benchmarks can comprise a single or a collection of functions calling one another, as well as asynchronous (i.e., eventing) pipelines. @@ -42,19 +42,19 @@ Developers can use `tools/benchmarking_eventing/vhivemetadata` to read and create vHive metadata objects. ## Benchmarking -You can use [examples/invoker](/tools/invoker) (the "invoker") to +You can use [tools/invoker](/tools/invoker) (the "invoker") to get the end-to-end latencies of your serving and eventing workflows. **On any node**, execute the following instructions below **at the root -of vHive repository** using **bash**: +of vSwarm repository** using **bash**: 1. Build the invoker: ```bash - (cd examples/invoker; go build github.com/ease-lab/vhive/examples/invoker) + (cd tools/invoker; go build github.com/ease-lab/vswarm/tools/invoker) ``` - Keep the parenthesis so not to change your working directory. 2. Create your `endpoints.json` file. It is created automatically for - you if you use [examples/deployer](/tools/deployer) (the + you if you use [tools/deployer](/tools/deployer) (the "deployer"), however eventing workflows are not supported by the deployer so the following guide is presented; you may use it for manually deployed serving workflows too. @@ -95,7 +95,7 @@ of vHive repository** using **bash**: ``` 3. Execute the invoker: ```bash - ./examples/invoker/invoker + ./tools/invoker/invoker ``` **Command-line Arguments:** diff --git a/tools/deployer/client.go b/tools/deployer/client.go index b838c26c..89800208 100644 --- a/tools/deployer/client.go +++ b/tools/deployer/client.go @@ -30,8 +30,8 @@ import ( "os/exec" "path/filepath" - "github.com/vhive-serverless/vSwarm/tools/endpoint" log "github.com/sirupsen/logrus" + "github.com/vhive-serverless/vSwarm/tools/endpoint" ) // Functions is an object for unmarshalled JSON with functions to deploy. @@ -57,7 +57,7 @@ var ( func main() { funcPath := flag.String("funcPath", "./configs/knative_workloads", "Path to the folder with *.yml files") - funcJSONFile := flag.String("jsonFile", "./examples/deployer/functions.json", "Path to the JSON file with functions to deploy") + funcJSONFile := flag.String("jsonFile", "./tools/deployer/functions.json", "Path to the JSON file with functions to deploy") endpointsFile := flag.String("endpointsFile", "endpoints.json", "File with endpoints' metadata") deploymentConcurrency := flag.Int("conc", 5, "Number of functions to deploy concurrently (for serving)")