Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmarks: create new topics for producers tests #917

Merged
merged 1 commit into from
Sep 30, 2019

Conversation

ennru
Copy link
Member

@ennru ennru commented Sep 30, 2019

Purpose

Try if topic name reuse causes the benchmarks to show the unexpected drop in Raw Kafka performance since build 550.

image

References

This drop must be connected to #902

Changes

Use a fresh topic name for producer benchmarks so they do not interfere with consumer benchmarks.

@seglo seglo self-requested a review September 30, 2019 18:44
Copy link
Contributor

@seglo seglo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how that would affect the benchmarks, but let's see what happens. I think it's a good practice to always use new topics anyway, because topic deletions are asynchronous. Unless we block and poll until a topic no longer exists anymore, it's possible to have a race condition where we begin a test against a topic that's not deleted yet, it gets deleted, and then recreated with automatic topic creation. That would be bad because the automatically created topic would have the default settings for replicas, partitions, and topic-level config.

runPerfTest(cmd, KafkaProducerFixtures.initializedProducer(cmd), KafkaProducerBenchmarks.plainFlow)
}

it should "bench with normal messages written to 8 partitions" in {
val cmd =
RunTestCommand(prefix + "-normal-msg-8-partitions", bootstrapServers, topic_2000_5000_8)
RunTestCommand(prefix + "-normal-msg-8-partitions", bootstrapServers, topic_2000_5000_8.freshTopic)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see what changed here between #902 and here. If it was reusing the same topic, it was doing that before as well. The new benchmark for 500b messages would have had its own random topic id.

@seglo seglo merged commit e54f767 into akka:master Sep 30, 2019
@ennru ennru deleted the benchmark-producer-topics branch October 1, 2019 06:17
@ennru
Copy link
Member Author

ennru commented Oct 1, 2019

I agree this is weird. It didn't have the effect I hoped for, but suddenly the Plain Consumer hopped back to where it was earlier?! https://jenkins.akka.io:8498/job/alpakka-kafka-perf-master/plot/#1446559666.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants