-
Notifications
You must be signed in to change notification settings - Fork 34
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
lambda.md : Add the lambda flow section #319
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -87,10 +87,8 @@ We still need to configure our S3 bucket to allow public read only access, so th | |||||
} | ||||||
``` | ||||||
|
||||||
|
||||||
We also store the credential parameters required to file a github issue in AWS Systems Manager -> parameter store. | ||||||
We use github app `iocost-issue-creater` to file a github issue, thus it's credentials information `App Id` and | ||||||
`Private Key` are stored in parameter store. | ||||||
Lambda uses github app [iocost-issue-creater](https://github.com/apps/iocost-issue-creater) to file a github issue, thus it's credentials information `App Id` and `Private Key` are stored in AWS parameter store. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
``` | ||||||
{ | ||||||
/iocost-bot/appid : "xxxx" | ||||||
|
@@ -100,18 +98,22 @@ We use github app `iocost-issue-creater` to file a github issue, thus it's crede | |||||
|
||||||
AWS lambda flow | ||||||
=============== | ||||||
1. User generates the benchmark result on their device. | ||||||
`$ resctl-bench -r "$RESULT_JSON" --logfile=$LOG_FILE run iocost-tun` | ||||||
2. User uploads the result to aws lambda function url as: | ||||||
`resctl-bench -r <RESULT_JSON> upload --upload-url <AWS lambda function URL>` | ||||||
1. User generates the benchmark result on their device. | ||||||
`$ resctl-bench -r "$RESULT_JSON" --logfile=$LOG_FILE run iocost-tune` | ||||||
2. User uploads the result to aws lambda function url as: | ||||||
`resctl-bench -r <RESULT_JSON> upload --upload-url <AWS lambda function URL>` | ||||||
e.g | ||||||
`$resctl-bench --result resctl-bench-result_2022_07_01-00_26_40.json.gz upload --upload-url https://ygvr6jnjckwamfao5xztg6idiu0ukjeb.lambda-url.eu-west-1.on.aws` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need to confirm the URL first. |
||||||
|
||||||
3. Lamda is tiggered automatically in AWS. | ||||||
- It saves the benchmark result to S3 bucket. | ||||||
- Then create a issue in iocost-benchmark/iocost-benchmarks project using `iocost-issue-creater` github app. | ||||||
- Then creates an issue in [iocost-benchmarks](https://github.com/iocost-benchmark/iocost-benchmarks) project using [iocost-issue-creater](https://github.com/apps/iocost-issue-creater) github app. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
- Issue contain a link to benchmark result stored in s3 bucket. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
e.g https://github.com/iocost-benchmark/iocost-benchmarks/issues/88 | ||||||
|
||||||
### Lambda workflow: | ||||||
Client uploads the benchmark result (above steps) -> AWS Lambda runs -> save result to s3 bucket -> Create github Issue with link of result stored in s3. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
Thereafter it's job of [iocost-benchmarks project](https://github.com/iocost-benchmark/iocost-benchmarks) to import and merge the results with existing database and generate final hwdb file. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
Deploying | ||||||
========= | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.