Skip to content
Snippets Groups Projects
Commit c7238681 authored by Simon Ehrenstein's avatar Simon Ehrenstein
Browse files

Fix kafka connection string

parent eb635ffd
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus,!78Resolve "Implement Quarkus/Kotlin protype"
...@@ -5,10 +5,7 @@ import theodolite.k8s.UC1Benchmark ...@@ -5,10 +5,7 @@ import theodolite.k8s.UC1Benchmark
import theodolite.strategies.restriction.LowerBoundRestriction import theodolite.strategies.restriction.LowerBoundRestriction
import theodolite.strategies.searchstrategy.CompositeStrategy import theodolite.strategies.searchstrategy.CompositeStrategy
import theodolite.strategies.searchstrategy.LinearSearch import theodolite.strategies.searchstrategy.LinearSearch
import theodolite.util.Config import theodolite.util.*
import theodolite.util.LoadDimension
import theodolite.util.Resource
import theodolite.util.Results
import java.nio.file.Paths import java.nio.file.Paths
import java.time.Duration import java.time.Duration
...@@ -20,9 +17,9 @@ class TheodoliteExecutor() { ...@@ -20,9 +17,9 @@ class TheodoliteExecutor() {
private fun loadConfig(): Config { private fun loadConfig(): Config {
logger.info { resourcesPath } logger.info { resourcesPath }
val benchmark: UC1Benchmark = UC1Benchmark( val benchmark: UC1Benchmark = UC1Benchmark(
UC1Benchmark.UC1BenchmarkConfig( AbstractBenchmark.Config(
clusterZookeeperConnectionString = "my-confluent-cp-zookeeper:2181", clusterZookeeperConnectionString = "my-confluent-cp-zookeeper:2181",
clusterKafkaConnectionString = "localhost:9092", clusterKafkaConnectionString = "my-confluent-cp-kafka:9092",
externalZookeeperConnectionString = "localhost:2181", externalZookeeperConnectionString = "localhost:2181",
externalKafkaConnectionString = "localhost:9092", externalKafkaConnectionString = "localhost:9092",
schemaRegistryConnectionString = "http://my-confluent-cp-schema-registry:8081", schemaRegistryConnectionString = "http://my-confluent-cp-schema-registry:8081",
......
...@@ -12,7 +12,7 @@ import theodolite.util.Resource ...@@ -12,7 +12,7 @@ import theodolite.util.Resource
private val logger = KotlinLogging.logger {} private val logger = KotlinLogging.logger {}
class UC1Benchmark(config: AbstractBenchmarkConfig) : AbstractBenchmark(config) { class UC1Benchmark(config: Config) : AbstractBenchmark(config) {
private val workloadGeneratorStateCleaner: WorkloadGeneratorStateCleaner private val workloadGeneratorStateCleaner: WorkloadGeneratorStateCleaner
private val topicManager: TopicManager private val topicManager: TopicManager
......
package theodolite.util package theodolite.util
import theodolite.k8s.UC1Benchmark abstract class AbstractBenchmark(val config: Config): Benchmark {
abstract class AbstractBenchmark(val config: AbstractBenchmarkConfig): Benchmark {
override fun start(load: LoadDimension, resources: Resource) { override fun start(load: LoadDimension, resources: Resource) {
this.clearClusterEnvironment() this.clearClusterEnvironment()
this.initializeClusterEnvironment() this.initializeClusterEnvironment()
...@@ -10,7 +8,7 @@ abstract class AbstractBenchmark(val config: AbstractBenchmarkConfig): Benchmark ...@@ -10,7 +8,7 @@ abstract class AbstractBenchmark(val config: AbstractBenchmarkConfig): Benchmark
this.startWorkloadGenerator(load) this.startWorkloadGenerator(load)
} }
data class AbstractBenchmarkConfig( data class Config(
val clusterZookeeperConnectionString: String, val clusterZookeeperConnectionString: String,
val clusterKafkaConnectionString: String, val clusterKafkaConnectionString: String,
val externalZookeeperConnectionString: String, val externalZookeeperConnectionString: 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