Skip to content

Commit

Permalink
docs update + minor tweaks
Browse files Browse the repository at this point in the history
Signed-off-by: shyam Jesal <[email protected]>
  • Loading branch information
shyamjesal committed Apr 14, 2021
1 parent 1e5e4c9 commit ae9f57e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- CRI test logs are now stored as GitHub artifacts.


### Changed
Expand Down
2 changes: 2 additions & 0 deletions configs/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ASBD
Asheim
ASPLOS
autoscaling
autostart
backend
Backend
baseurl
Expand Down Expand Up @@ -240,6 +241,7 @@ NUMA
OCI
Ocin
OneLab
onenode
Onur
OpenCV
orchestrator
Expand Down
12 changes: 11 additions & 1 deletion docs/quickstart_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,23 @@ kn service delete --all

## Setup a single-node cluster (master and worker functionality on the same node)

```
### Manual (Recommended)
Start each component separately.

```bash
./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
This script stops the existing cluster if any, cleans up and then starts a fresh single-node cluster.

```bash
scripts/cloudlab/start_onenode_vhive_cluster.sh <folder to store logs>
```

### Clean up
```bash
./scripts/github_runner/clean_cri_runner.sh
Expand Down
15 changes: 13 additions & 2 deletions scripts/cloudlab/start_onenode_vhive_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,21 @@ SCRIPTS=$ROOT/scripts

$SCRIPTS/github_runner/clean_cri_runner.sh

CTRDLOGDIR=/tmp/ctrd-logs/$GITHUB_RUN_ID
CTRDLOGDIR=$1

if [ -z $CTRDLOGDIR ] && [ -z "$GITHUB_RUN_ID" ] ; then
echo "[ERROR]: The log-directory argument is missing"
echo "USAGE: start_onenode_vhive_cluster.sh <Directory to store logs>"
exit -1
else
if [ -z "$CTRDLOGDIR" ]; then
CTRDLOGDIR=/tmp/ctrd-logs/$GITHUB_RUN_ID
fi
fi

sudo mkdir -p -m777 -p $CTRDLOGDIR
echo "using $CTRDLOGDIR for storing logs"

sudo mkdir -p -m777 -p $CTRDLOGDIR
sudo containerd 1>$CTRDLOGDIR/ctrd.out 2>$CTRDLOGDIR/ctrd.err &
sleep 1s
sudo /usr/local/bin/firecracker-containerd --config /etc/firecracker-containerd/config.toml 1>$CTRDLOGDIR/fccd.out 2>$CTRDLOGDIR/fccd.err &
Expand Down

0 comments on commit ae9f57e

Please sign in to comment.