Created
November 23, 2018 10:19
-
-
Save maedoc/f6aa1693b3dc10be296dcc2c7afc5b76 to your computer and use it in GitHub Desktop.
testing pachyderm on minikube
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eux | |
minikube start --vm-driver kvm2 | |
sleep 5 | |
pachctl deploy local | |
sleep 5 | |
while kubectl get all | grep pachd | grep ContainerCreating; do sleep 5; done | |
export ADDRESS=$(minikube service list | grep pachd | column -t | cut -f11 -d' ' | cut -f3 -d/) | |
echo $ADDRESS | |
pachctl create-repo test | |
for n in 1 5 10 50 100 | |
do | |
dd if=/dev/urandom of=$n.dat bs=$((1024*1024)) count=$n &> /dev/null | |
tt=0.0 | |
for i in {1..10} | |
do | |
t=$(/usr/bin/time -f %e pachctl put-file test test -c -f $n.dat 2>&1 | tail -n 1) | |
tt=$(dc -e "$tt $t + p") | |
done | |
avg=$(dc -e "$tt 0.1 * p") | |
echo $n MB, $avg s avg | |
done | |
minikube delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment