-
Notifications
You must be signed in to change notification settings - Fork 91
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
Add cluster restart script #208
Conversation
dc09a2a
to
f8f227c
Compare
mkdir -p ~/ctrd-logs | ||
fi | ||
|
||
sudo containerd 1>~/ctrd-logs/ctrd.out 2>~/ctrd-logs/ctrd.err & |
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.
use $HOME instead
@@ -0,0 +1,41 @@ | |||
#!/bin/bash |
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.
rename to start_onenode_vhive_cluster
please use this script in the CRI test so that it is covered by the CI |
1627617
to
1e5e4c9
Compare
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.
Need to let the user specify the log location when running the script manually
Please add info about this feature to (and tick the boxes when done)
- changelog (please also mention that CI logs are now saved as artifacts)
- the dev guide
- the quickstart guide in the docs
- the quickstart guide in the wiki
|
||
$SCRIPTS/github_runner/clean_cri_runner.sh | ||
|
||
CTRDLOGDIR=/tmp/ctrd-logs/$GITHUB_RUN_ID |
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.
if used by a user and not by the CI, they should be able to set this folder to a specific location by a runtime argument
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.
Okay If the $GITHUB_RUN_ID
variable is empty, the script will ask for the custom log location.
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.
sounds good
0fb0f72
to
6c6cbf9
Compare
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.
please pay attention to the docs, it's important for our users and hence vHive adoption.
CHANGELOG.md
Outdated
@@ -30,6 +30,8 @@ More info [here](./docs/developers_guide.md#MinIO-S3-service) | |||
Other | |||
- vHive now also supports vanilla Knative benchmarking and testing (i.e., using containers for function sandboxes). | |||
More info [here](./docs/developers_guide.md#Testing-stock-Knative-images). | |||
- Added [script](./scripts/cloudlab/start_onenode_vhive_cluster.sh) to start vHive single node cluster. |
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.
- Added [script](./scripts/cloudlab/start_onenode_vhive_cluster.sh) to start vHive single node cluster. | |
- Added [script](./scripts/cloudlab/start_onenode_vhive_cluster.sh) to (re)start vHive single node cluster in a push-button. |
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.
fixed.
CHANGELOG.md
Outdated
@@ -30,6 +30,8 @@ More info [here](./docs/developers_guide.md#MinIO-S3-service) | |||
Other | |||
- vHive now also supports vanilla Knative benchmarking and testing (i.e., using containers for function sandboxes). | |||
More info [here](./docs/developers_guide.md#Testing-stock-Knative-images). | |||
- Added [script](./scripts/cloudlab/start_onenode_vhive_cluster.sh) to start vHive single node cluster. |
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.
this should go to [Unrelease] above instead of v1.2
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.
moved
CTRDLOGDIR=$1 | ||
|
||
if [ -z $CTRDLOGDIR ] && [ -z "$GITHUB_RUN_ID" ] ; then | ||
echo "Log directory missing" |
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.
echo "Log directory missing" | |
echo "[ERROR]: The log-directory argument is missing" |
ae9f57e
to
fb66b1f
Compare
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.
Minor
docs/quickstart_guide.md
Outdated
./scripts/cloudlab/setup_node.sh | ||
sudo containerd | ||
sudo PATH=$PATH /usr/local/bin/firecracker-containerd --config /etc/firecracker-containerd/config.toml | ||
source /etc/profile && go build && sudo ./vhive | ||
./scripts/cluster/create_one_node_cluster.sh | ||
``` | ||
### Using autostart script |
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.
### Using autostart script | |
### Using a script |
docs/quickstart_guide.md
Outdated
```bash | ||
scripts/cloudlab/start_onenode_vhive_cluster.sh <folder to store logs> | ||
``` | ||
|
||
### Clean up |
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.
move this under "Manual" subsection
docs/quickstart_guide.md
Outdated
@@ -118,13 +118,23 @@ kn service delete --all | |||
|
|||
## Setup a single-node cluster (master and worker functionality on the same node) | |||
|
|||
``` | |||
### Manual (Recommended) |
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.
### Manual (Recommended) | |
### Manual |
No need to recommend it here.
fb66b1f
to
f0bb4d4
Compare
CHANGELOG.md
Outdated
@@ -30,6 +30,8 @@ More info [here](./docs/developers_guide.md#MinIO-S3-service) | |||
Other | |||
- vHive now also supports vanilla Knative benchmarking and testing (i.e., using containers for function sandboxes). | |||
More info [here](./docs/developers_guide.md#Testing-stock-Knative-images). | |||
- Added [script](./scripts/cloudlab/start_onenode_vhive_cluster.sh) to (re)start vHive single node cluster in a push-button. |
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.
Move to unreleased
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.
My bad. I forgot to save the file before committing.
f0bb4d4
to
8b3bda9
Compare
Signed-off-by: shyam Jesal <s.jesalpura@gmail.com>
Signed-off-by: shyam Jesal <s.jesalpura@gmail.com>
Signed-off-by: shyam Jesal <s.jesalpura@gmail.com>
8b3bda9
to
73950a7
Compare
parent 6674807 author HermioneKT <hermionegrangerkt@gmail.com> 1706694164 +0800 committer HermioneKT <hermionegrangerkt@gmail.com> 1706694164 +0800 test # This is the commit message #157: test # This is the commit message #159: test # This is the commit message #160: test # This is the commit message #161: test # This is the commit message #162: test # This is the commit message #163: test # This is the commit message #164: tesT # This is the commit message #165: test # This is the commit message #166: test # This is the commit message #167: test # This is the commit message #168: test # This is the commit message #169: test # This is the commit message #170: test # This is the commit message #171: Test # This is the commit message #172: test # This is the commit message #173: test # This is the commit message #174: test # This is the commit message #175: test # This is the commit message #176: test # This is the commit message #177: test # This is the commit message #178: test # This is the commit message #179: test # This is the commit message #180: test # This is the commit message #181: test # This is the commit message #182: test # This is the commit message #183: test # This is the commit message #184: test # This is the commit message #185: test # This is the commit message #186: test # This is the commit message #187: test # This is the commit message #188: test # This is the commit message #189: test # This is the commit message #190: Test # This is the commit message #191: Test # This is the commit message #192: test # This is the commit message #193: Test # This is the commit message #194: test # This is the commit message #195: test # This is the commit message #196: test # This is the commit message #197: test # This is the commit message #198: test # This is the commit message #199: Test # This is the commit message #200: test # This is the commit message #201: test # This is the commit message #202: Test # This is the commit message #203: test # This is the commit message #204: test # This is the commit message #205: test # This is the commit message #206: test # This is the commit message #207: test # This is the commit message #208: test # This is the commit message #209: test # This is the commit message #210: test # This is the commit message #211: Test # This is the commit message #212: test # This is the commit message #213: Test # This is the commit message #214: Test # This is the commit message #215: Test # This is the commit message #216: test # This is the commit message #217: Test # This is the commit message #218: test # This is the commit message #219: test # This is the commit message #220: test # This is the commit message #221: test # This is the commit message #222: test # This is the commit message #223: test # This is the commit message #224: test # This is the commit message #225: test # This is the commit message #226: test # This is the commit message #227: test # This is the commit message #228: test # This is the commit message #229: Test # This is the commit message #230: test # This is the commit message #231: test # This is the commit message #232: test # This is the commit message #233: test # This is the commit message #234: Test # This is the commit message #235: test # This is the commit message #236: test # This is the commit message #237: test # This is the commit message #238: test # This is the commit message #239: test # This is the commit message #240: test # This is the commit message #241: test # This is the commit message #242: test # This is the commit message #243: test # This is the commit message #244: test # This is the commit message #245: test # This is the commit message #246: test # This is the commit message #247: test # This is the commit message #248: test # This is the commit message #249: test # This is the commit message #250: test # This is the commit message #251: test # This is the commit message #252: test
Closing #151