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

Use the new workload generator

parent f2bdab43
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!85Introduce new Benchmark class and Patcher,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
...@@ -9,9 +9,9 @@ class TheodoliteYamlExecutor { ...@@ -9,9 +9,9 @@ class TheodoliteYamlExecutor {
// load the BenchmarkExecution and the BenchmarkType // load the BenchmarkExecution and the BenchmarkType
val parser = YamlParser() val parser = YamlParser()
val benchmarkExecution = val benchmarkExecution =
parser.parse("./../../../resources/main/yaml/testBenchmarkExecution.yaml", BenchmarkExecution::class.java)!! parser.parse("./../../../resources/main/yaml/BenchmarkExecution.yaml", BenchmarkExecution::class.java)!!
val benchmark = val benchmark =
parser.parse("./../../../resources/main/yaml/testBenchmarkType.yaml", KubernetesBenchmark::class.java)!! parser.parse("./../../../resources/main/yaml/BenchmarkType.yaml", KubernetesBenchmark::class.java)!!
val executor = TheodoliteExecutor(benchmarkExecution, benchmark) val executor = TheodoliteExecutor(benchmarkExecution, benchmark)
executor.run() executor.run()
......
...@@ -5,6 +5,7 @@ appResource: ...@@ -5,6 +5,7 @@ appResource:
- "jmx-configmap.yaml" - "jmx-configmap.yaml"
loadGenResource: loadGenResource:
- "uc1-load-generator-deployment.yaml" - "uc1-load-generator-deployment.yaml"
- "uc1-load-generator-service.yaml"
resourceTypes: resourceTypes:
- typeName: "Instances" - typeName: "Instances"
patchers: patchers:
......
...@@ -15,20 +15,22 @@ spec: ...@@ -15,20 +15,22 @@ spec:
terminationGracePeriodSeconds: 0 terminationGracePeriodSeconds: 0
containers: containers:
- name: workload-generator - name: workload-generator
image: ghcr.io/cau-se/theodolite-uc1-workload-generator:theodolite-kotlin-latest image: ghcr.io/cau-se/theodolite-uc1-workload-generator:latest
ports:
- containerPort: 5701
name: coordination
env: env:
# Order need to be preserved for run_uc.py
- name: NUM_SENSORS - name: NUM_SENSORS
value: "25000" value: "25000"
- name: INSTANCES
value: "1"
- name: NUM_NESTED_GROUPS - name: NUM_NESTED_GROUPS
value: "5" value: "5"
- name: ZK_HOST - name: KUBERNETES_NAMESPACE
value: "my-confluent-cp-zookeeper" valueFrom:
- name: ZK_PORT fieldRef:
value: "2181" fieldPath: metadata.namespace
- name: KUBERNETES_DNS_NAME
value: "titan-ccp-load-generator.$(KUBERNETES_NAMESPACE).svc.cluster.local"
- name: KAFKA_BOOTSTRAP_SERVERS - name: KAFKA_BOOTSTRAP_SERVERS
value: "my-confluent-cp-kafka:9092" value: "my-confluent-cp-kafka:9092"
- name: SCHEMA_REGISTRY_URL - name: SCHEMA_REGISTRY_URL
value: "http://my-confluent-cp-schema-registry:8081" value: "http://my-confluent-cp-schema-registry:8081"
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: titan-ccp-load-generator
labels:
app: titan-ccp-load-generator
spec:
type: ClusterIP
clusterIP: None
selector:
app: titan-ccp-load-generator
ports:
- name: coordination
port: 5701
targetPort: 5701
protocol: TCP
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