-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_vhive_invitro.sh
35 lines (30 loc) · 1.24 KB
/
install_vhive_invitro.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
git clone --depth=1 https://github.com/vhive-serverless/vhive.git
cd vhive
mkdir -p /tmp/vhive-logs
./scripts/install_go.sh; source /etc/profile
pushd scripts && go build -o setup_tool && popd
./scripts/setup_tool setup_node stock-only
sudo screen -d -m containerd
./scripts/setup_tool create_one_node_cluster stock-only
cd ..
git clone --branch=words_sosp23_tutorial https://github.com/vhive-serverless/invitro.git
kubectl patch configmap/config-autoscaler -n knative-serving -p '{"data":{"allow-zero-initial-scale":"true"}}'
kubectl patch configmap/config-autoscaler -n knative-serving -p '{"data":{"initial-scale":"0"}}'
kubectl patch configmap -n knative-serving config-features -p '{"data": {"kubernetes.podspec-affinity": "enabled"}}'
pushd invitro
git lfs install
git lfs fetch
git lfs checkout
sudo apt install -y pip
pip install -r requirements.txt
git checkout sesame25-tutorial
# wget https://azurecloudpublicdataset2.blob.core.windows.net/azurepublicdatasetv2/azurefunctions_dataset2019/azurefunctions-dataset2019.tar.xz -P ./data/azure
# pushd data/azure
# tar -xvf azurefunctions-dataset2019.tar.xz
popd
cd ~
git clone --depth=1 -b load-generator https://github.com/vhive-serverless/vSwarm.git
cd ~/vSwarm/tools/profiler/invoker
go mod tidy
go build
cd ~