-
Notifications
You must be signed in to change notification settings - Fork 22
Tweaked vSwarm deployer #604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1a35a6b
Created parser for mapper output of vSwarm functions
aryans1204 446683a
Added deployment for vSwarm functions, end to end pipeline working
aryans1204 13a66a4
Created vSwarm YAML manifest tarball
aryans1204 55de8be
Added driver unit tests and e2e tests to CI and formatted code
aryans1204 eb17a29
Changed JSON trace parser to include struct instead of interface
aryans1204 7a4502d
Added docs pertaining to the usage of vSwarm functionality in the loader
aryans1204 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| workloads/container/vSwarm_deploy_metadata.tar.gz filter=lfs diff=lfs merge=lfs -text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "Seed": 42, | ||
|
|
||
| "Platform": "Knative", | ||
| "InvokeProtocol" : "grpc", | ||
| "YAMLSelector": "container", | ||
| "EndpointPort": 80, | ||
|
|
||
| "BusyLoopOnSandboxStartup": false, | ||
|
|
||
| "TracePath": "data/traces/example/", | ||
| "Granularity": "minute", | ||
| "OutputPathPrefix": "data/out/experiment", | ||
| "IATDistribution": "exponential", | ||
| "CPULimit": "1vCPU", | ||
| "ExperimentDuration": 10, | ||
| "WarmupDuration": 0, | ||
|
|
||
| "IsPartiallyPanic": false, | ||
| "EnableZipkinTracing": false, | ||
| "EnableMetricsScrapping": false, | ||
| "MetricScrapingPeriodSeconds": 15, | ||
| "AutoscalingMetric": "concurrency", | ||
|
|
||
| "GRPCConnectionTimeoutSeconds": 15, | ||
| "GRPCFunctionTimeoutSeconds": 900, | ||
| "DAGMode": false, | ||
| "EnableDAGDataset": true, | ||
| "Width": 2, | ||
| "Depth": 2, | ||
| "VSwarm": true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "c13acdc7567b225971cef2416a3a2b03c8a4d8d154df48afe75834e2f5c59ddfc455703077a17a9b8d0fc655d939fcc6d24d819fa9a1066b74f710c35a43cbc868baea05aa0c3619b6feb78c80a07e27e4e68f921d714b8125f916c3b3370bf2": { | ||
| "proxy-function": "cartservice" | ||
| }, | ||
| "a2faad786b3c813b12ce57d349d5e62f6d0f22ceecfa86cd72a962853383b600d7028b01f2422ea9d4f695cae4085800eb34540674081a46bb4e4388e7995f7ac8b8b9160f181010f509ee0af3266cbcb5a5f4c7700ba8d4396f1147e1ad3bbd": { | ||
| "proxy-function": "image-rotate-go-11" | ||
| }, | ||
| "7dc5aeabc131669912e8c793c8925cc9928321f45f13a4af031592b4611630d70728f480194febeddbc0d2a69a2cb38344e495f264d52c62102e7bd99505dbf22cc1c836a3b32265b4a36b6e6f56b2d7c0588a926df5d03a76b7b4388cbf2258": { | ||
| "proxy-function": "video-processing-python-100" | ||
| }, | ||
| "ae8a1640fa932024f59b38a0b001808b5c64612bd60c6f3eb80ba9461ba2d09101d1a13d091b0cfc764a125ead054ad6a720cb29b0b1fc2c187e9be3311f09fe90ba6ab2b1b9f5b5925d1e9ee6242d0f840ebcfb3221567bc2b5f24cb864b016": { | ||
| "proxy-function": "video-processing-python-10" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aryans1204 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Deploy Info JSON | ||
|
|
||
| The `deploy_info.json` file is used to identify deployment information for services and their pre-dependencies. It is pre-generated, and stored inside the `vSwarm_deploy_metadata.tar.gz` to contain deployment information for vSwarm functions. | ||
|
|
||
| ## Schema and Usage | ||
|
|
||
| The `deploy_info.json` file in the `vSwarm_deploy_metadata.tar.gz` is used to identify the relative file paths for the Knative YAML manifests for deploying vSwarm functions. It also contains the path of YAML files needed as part of the pre-deployment commands to run certain vSwarm benchmarks, for example the `online-shop-database` which requires to be deployed before running `cartservice` benchmark. | ||
|
|
||
| The `deploy_info.json` has the following schema: | ||
| ```console | ||
| { | ||
| vswarm-function-name: | ||
| { | ||
| YamlLocation: /path/to/yaml | ||
| PredeploymentPath: [/path/to/predeployment-database/yaml] | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| The `PredeploymentPath` is the path to the YAML file, which is applied via `kubectl apply -f`, before creating the service under `YamlLocation`. | ||
|
|
||
| ## Deployment File Generation | ||
|
|
||
| While the `deploy_info.json` file ships with the `vSwarm_deploy_metadata.tar.gz`, In order to regenerate the `deploy_info.json` run from the root of this repository: | ||
| ```console | ||
| tar -xzvf workloads/container/vSwarm_deploy_metadata.tar.gz -C workloads/container | ||
| cd workloads/container/ | ||
| python3 generate_deploy_info.py | ||
| ``` | ||
|
|
||
| ## YAML Generation | ||
|
|
||
| The `workloads/container/generate_all_yamls.py` is a wrapper script that calls the `generate-yamls.py` script for each vSwarm benchmark in the `vSwarm_deploy_metadata.tar.gz`. The `generate-yamls.py` Python script generates YAML files for vSwarm benchmarks with different workload parameters to create a variety of durations and memory consumption. | ||
|
|
||
| While the YAMLs are pre-generated inside the `vSwarm_deploy_metadata.tar.gz` tarball, to regenerate the YAMLs, run this from the root of this repository: | ||
| ```console | ||
| tar -xzvf workloads/container/vSwarm_deploy_metadata.tar.gz -C workloads/container | ||
| cd workloads/container | ||
| python3 generate_all_yamls.py | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "Seed": 42, | ||
|
|
||
| "Platform": "Knative", | ||
| "InvokeProtocol" : "grpc", | ||
| "YAMLSelector": "container", | ||
| "EndpointPort": 80, | ||
|
|
||
| "BusyLoopOnSandboxStartup": false, | ||
|
|
||
| "TracePath": "data/traces/example/", | ||
| "Granularity": "minute", | ||
| "OutputPathPrefix": "data/out/experiment", | ||
| "IATDistribution": "exponential", | ||
| "CPULimit": "1vCPU", | ||
| "ExperimentDuration": 2, | ||
| "WarmupDuration": 0, | ||
|
|
||
| "IsPartiallyPanic": false, | ||
| "EnableZipkinTracing": false, | ||
| "EnableMetricsScrapping": false, | ||
| "MetricScrapingPeriodSeconds": 15, | ||
| "AutoscalingMetric": "concurrency", | ||
|
|
||
| "GRPCConnectionTimeoutSeconds": 15, | ||
| "GRPCFunctionTimeoutSeconds": 900, | ||
| "DAGMode": false, | ||
| "EnableDAGDataset": true, | ||
| "Width": 2, | ||
| "Depth": 2, | ||
| "VSwarm": true | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.