increase partition size, try making performance better
This commit is contained in:
parent
560a5d4172
commit
27776553ba
1 changed files with 2 additions and 3 deletions
|
|
@ -2,7 +2,6 @@ package dev.adamko.kafkatorio.admin
|
|||
|
||||
import dev.adamko.kafkatorio.events.schema.FactorioObjectData
|
||||
import dev.adamko.kafkatorio.events.schema.KafkatorioPacket
|
||||
import dev.adamko.kafkatorio.processor.KafkatorioTopology
|
||||
import java.util.concurrent.TimeUnit
|
||||
import mu.KotlinLogging
|
||||
import org.apache.kafka.clients.admin.Admin
|
||||
|
|
@ -68,8 +67,8 @@ object CreateTopics {
|
|||
}
|
||||
|
||||
private fun Admin.createTopics(
|
||||
numPartitions: Int = 1,
|
||||
replicationFactor: Short = 1,
|
||||
numPartitions: Int = 10,
|
||||
replicationFactor: Short = 5,
|
||||
topicNames: () -> Collection<String>,
|
||||
): CreateTopicsResult =
|
||||
createTopics(topicNames().distinct().map {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue