Skip to content
Snippets Groups Projects
Commit 541a3530 authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

introduce a results/ folder to make it possible to mount a volume for that

parent ddf59828
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!122Update Theodolite Kubernetes Job,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
......@@ -5,10 +5,10 @@ metadata:
spec:
template:
spec:
# volumes:
# - name: theodolite-pv-storage
# persistentVolumeClaim:
# claimName: theodolite-pv-claim
volumes:
- name: theodolite-pv-storage
persistentVolumeClaim:
claimName: theodolite-pv-claim
containers:
- name: lag-analysis
image: ghcr.io/cau-se/theodolite-slo-checker-lag-trend:theodolite-kotlin-latest
......@@ -16,7 +16,7 @@ spec:
- containerPort: 80
name: analysis
- name: theodolite
image: ghcr.io/cau-se/theodolite:theodolite-kotlin-latest
image: benediktwetzel/theodolite-test #ghcr.io/cau-se/theodolite:theodolite-kotlin-latest
imagePullPolicy: Always
env:
- name: NAMESPACE
......@@ -36,6 +36,8 @@ spec:
mountPath: /etc/benchmark
- name: execution
mountPath: /etc/execution
# - name: theodolite-pv-storage
# mountPath: "/deployments"
restartPolicy: Never
# Uncomment if RBAC is enabled and configured
serviceAccountName: theodolite
......
......@@ -33,6 +33,8 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
&& microdnf clean all \
&& mkdir /deployments \
&& chown 1001 /deployments \
&& mkdir deployments/results \
&& chown 1001 deployments/results \
&& chmod "g+rwX" /deployments \
&& chown 1001:root /deployments \
&& curl https://repo1.maven.org/maven2/io/fabric8/run-java-sh/${RUN_JAVA_VERSION}/run-java-sh-${RUN_JAVA_VERSION}-sh.sh -o /deployments/run-java.sh \
......
......@@ -15,12 +15,13 @@
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
WORKDIR /work/
RUN chown 1001 /work \
&& chmod "g+rwX" /work \
&& chown 1001:root /work
COPY --chown=1001:root build/*-runner /work/application
COPY config/ /work/config/
WORKDIR /deployments
RUN chown 1001 /deployments \
&& mkdir results \
&& chmod "g+rwX" /deployments \
&& chown 1001:root /deployments
COPY --chown=1001:root build/*-runner /deployments/application
COPY config/ /deployments/config/
EXPOSE 8080
USER 1001
......
......@@ -29,7 +29,7 @@ class AnalysisExecutor(
query = "sum by(group)(kafka_consumergroup_group_lag >= 0)"
)
CsvExporter().toCsv(name = "$executionId-${load.get()}-${res.get()}-${slo.sloType}", prom = prometheusData)
CsvExporter().toCsv(name = "results/$executionId-${load.get()}-${res.get()}-${slo.sloType}", prom = prometheusData)
val sloChecker = SloCheckerFactory().create(
slotype = slo.sloType,
externalSlopeURL = slo.externalSloUrl,
......
......@@ -75,8 +75,8 @@ class TheodoliteExecutor(
}
fun run() {
storeAsFile(this.config, "${this.config.executionId}-execution-configuration")
storeAsFile(kubernetesBenchmark, "${this.config.executionId}-benchmark-configuration")
storeAsFile(this.config, "results/${this.config.executionId}-execution-configuration")
storeAsFile(kubernetesBenchmark, "results/${this.config.executionId}-benchmark-configuration")
val config = buildConfig()
// execute benchmarks for each load
......@@ -85,7 +85,7 @@ class TheodoliteExecutor(
config.compositeStrategy.findSuitableResource(load, config.resources)
}
}
storeAsFile(config.compositeStrategy.benchmarkExecutor.results, "${this.config.executionId}-result")
storeAsFile(config.compositeStrategy.benchmarkExecutor.results, "results/${this.config.executionId}-result")
}
private fun <T> storeAsFile(saveObject: T, filename: String) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment