-
Notifications
You must be signed in to change notification settings - Fork 105
support kafka 2.0.0 #1053
Comments
@woodsaj in order to avoid duplicate work, please clarify whether you're interested in testing of the new sarama and the new kafka (i believe that's what you said in todays meeting) or do you want someone else to take this on (which i believe we concluded in yesterdays meeting) |
I am building new raintank/kafka docker images, so once someone else updates metrictank, it can be tested easily against the new kafka version using our docker stacks. |
@Dieterbe i have pushed 2 new docker images to dockerhub raintank/kafka:v1.1.1 |
no, we use sarama v1.16.0 as of #906 i see that in all our prod and ops clusters we still use kafka 0.10.2.1, which was deprecated between sarama v1.16 and v1.17, and also 1.1.0 was introduced in between those two. i see that a kafka cluster can be upgraded from 0.10 straight to 2.0 (http://kafka.apache.org/20/documentation.html#upgrade_2_0_0) but if we do it that way, we do it in a way that's not officially supported by sarama:
2 seems super risky, 1 seems somewhat risky. note: IBM/sarama#1101, want to redo some of these tests |
for the record, can you describe these bugs? or link to them? |
in a team meeting we decided to try solution 1. note that in the meantime 1.19 has come out, bringing some minor changes (https://github.com/Shopify/sarama/releases/tag/v1.19.0) so we should verify that:
in addition we have to measure performance of:
|
I tried to run the benchmarks from #1032. For cpu they worked quite well, but each run would grow the -benchmem alloc results. I didn't have time to further investigate. I will look into it soon and post results here. Setup: Kafka: Kafka: Kafka:
MT - https://snapshot.raintank.io/dashboard/snapshot/viCbVVoQZB9IysKcf8oMksnZ28Igay46 Kafka: Kafka: Kafka: I should results verifying live upgrade on a local docker-cluster tomorrow. I will post them here. EDIT with new information for Testing with Kafka: Kafka: |
This is great @robert-milan
Key takeaways for me are:
One question, how many partitions was MT consuming from? While we are at it, i would like to get an idea of how the number of partitions affects performance numbers. |
see issue: #1053 from https://github.com/Shopify/sarama/blob/v1.19.0/config.go#L324-L330 ``` The version of Kafka that Sarama will assume it is running against. Defaults to the oldest supported stable version. Since Kafka provides backwards-compatibility, setting it to a version older than you have will not break anything, although it may prevent you from using the latest features. Setting it to a version greater than you are actually running may lead to random breakage. ```
see issue: #1053 from https://github.com/Shopify/sarama/blob/v1.19.0/config.go#L324-L330 ``` The version of Kafka that Sarama will assume it is running against. Defaults to the oldest supported stable version. Since Kafka provides backwards-compatibility, setting it to a version older than you have will not break anything, although it may prevent you from using the latest features. Setting it to a version greater than you are actually running may lead to random breakage. ```
what is this 1.10.1 ? re kafka version, @woodsaj how do you know 0.10.0.1 was used? that would be our raintank/kafka:v1 image. @robert-milan can you clarify the kafka version for those where it is currently not mentioned.
oof. and it looks like it doesn't work with V0_10_2_1 either which is the version we need. does it work when using an older kafka version? because you mentioned "with kafka v2" another interesting observation is that when going from the first to the last tests, GC frequency and CPU spent on GC goes down @robert-milan some more benchmarking tips:
|
yes, the raintank/kafka:v1 uses 0.10.0.1 version of kafka.
The "raintank/kafka" image will use "raintank/kafka:latest" which is "raintank/kafka:v1"
this doesnt matter. Just update sarama to v1.19, it works correctly with kafka2.0 and kafka0.10 with clientVersion set to V0_10_0_0 |
This is required as part of the workflow to upgrade Kafka to v2.0.0 See also: #1053
@robert-milan seems me this ticket can be closed now? |
We have seen a few bugs in production that have been fixed in kafka 2.0.0
Kafka 2.0.0 is supported in Sarama from v1.18.0, we are currently using v1.10.0
The text was updated successfully, but these errors were encountered: