Skip to content

Commit

Permalink
added cluster restart script
Browse files Browse the repository at this point in the history
Signed-off-by: shyam Jesal <s.jesalpura@gmail.com>
  • Loading branch information
shyamjesal committed Apr 12, 2021
1 parent 752127b commit f8f227c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions scripts/cloudlab/start_vhive_cluster.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash

# MIT License
#
# Copyright (c) 2020 Dmitrii Ustiugov, Plamen Petrov and EASE lab
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT="$( cd $DIR && cd .. && cd .. && pwd)"
SCRIPTS=$ROOT/scripts

$SCRIPTS/github_runner/clean_cri_runner.sh

if [ ! -d "$HOME/ctrd-logs" ]; then
$SCRIPTS/cloudlab/setup_node.sh
mkdir -p ~/ctrd-logs
fi

sudo containerd 1>~/ctrd-logs/ctrd.out 2>~/ctrd-logs/ctrd.err &
sudo firecracker-containerd --config /etc/firecracker-containerd/config.toml 1>~/ctrd-logs/fccd.out 2>~/ctrd-logs/fccd.err &
source /etc/profile && cd $ROOT && go build && sudo ./vhive 1>~/ctrd-logs/orch.out 2>~/ctrd-logs/orch.err &
$SCRIPTS/cluster/create_one_node_cluster.sh


1 change: 1 addition & 0 deletions scripts/setup_system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ sudo apt-get -y install \
dmsetup \
gnupg-agent \
software-properties-common \
iproute2 \
skopeo >> /dev/null

# stack size, # of open files, # of pids
Expand Down

0 comments on commit f8f227c

Please sign in to comment.