This folder contains scripts and instructions for setting up the environment for running the experiments.
Considering a fresh Ubuntu install with image ubuntu:24.04, connect to the machine (e.g. using SSH or lxc shell <VM id>) and run the following procedure:
-
Create a logs folder:
mkdir -p /mnt/logs/client
-
Set the environment variables that describe the current environment setup, e.g.:
export SE_LABEL_cni=calico export SE_LABEL_service_mesh=none export SE_LABEL_optimization=disabled
-
(Optional if Baseline) Run eSeMeshA in another shell terminal:
mesh-fastpath
-
Run the workload
-
ping-echoexport SE_INSTANCE=ping-echo #sed -i 's/#istio-injection: enabled/istio-injection: enabled/' eztunnel/workloads/ping-echo/manifest.yml kubectl apply -f eztunnel/workloads/ping-echo/manifest.yml statexec -f "statexec_metrics_${SE_INSTANCE}_${SE_LABEL_service_mesh}_${SE_LABEL_optimization}_$(date -u -Iseconds).prom" -dac 2 -- kubectl wait --for=condition=completed --timeout=30m -n workload-ping-echo job.batch/ping kubectl delete -f eztunnel/workloads/ping-echo/manifest.yml
-
file-transferexport SE_INSTANCE=file-transfer #sed -i 's/#istio-injection: enabled/istio-injection: enabled/' eztunnel/workloads/file-transfer/manifest.yml kubectl apply -f eztunnel/workloads/file-transfer/manifest.yml statexec -f "statexec_metrics_${SE_INSTANCE}_${SE_LABEL_service_mesh}_${SE_LABEL_optimization}_$(date -u -Iseconds).prom" -dac 2 -- kubectl wait --for=condition=completed --timeout=30m -n workload-file-transfer job.batch/client kubectl logs -n workload-file-transfer job.batch/client > /mnt/logs/client/log.txt kubectl delete -f eztunnel/workloads/file-transfer/manifest.yml
-
redisexport SE_INSTANCE=redis #sed -i 's/#istio-injection: enabled/istio-injection: enabled/' eztunnel/workloads/redis/manifest.yml kubectl apply -f eztunnel/workloads/redis/manifest.yml statexec -f "statexec_metrics_${SE_INSTANCE}_${SE_LABEL_service_mesh}_${SE_LABEL_optimization}_$(date -u -Iseconds).prom" -dac 2 -- kubectl wait --for=condition=completed --timeout=30m -n workload-redis job.batch/memtier kubectl logs -n workload-redis job.batch/memtier > /mnt/logs/memtier/log.txt kubectl delete -f eztunnel/workloads/redis/manifest.yml
-
-
Collect the logs:
mv statexec_metrics* /mnt/logs/ zip -r /mnt/logs_${SE_LABEL_cni}_${SE_LABEL_service_mesh}_${SE_LABEL_optimization}.zip /mnt/logs
Exit the machine and copy the logs to the host machine:
lxc file pull <VM id>/mnt/logs_${SE_LABEL_cni}_${SE_LABEL_service_mesh}_${SE_LABEL_optimization}.zip .
-
Teardown the VM and repeat the process for the next environment setup