Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

fix: #188 use separate sarama clients for producer and consumer #193

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

k-wall
Copy link
Contributor

@k-wall k-wall commented Jun 23, 2022

Sharing a client meant that the client's await for FetchResponse could skew the latency measurement. This change means that the producer and consumer services create their own clients. This will increase the number of connections consumed by the canary on the kafka cluster (by 33%).

Signed-off-by: Keith Wall kwall@apache.org

@k-wall
Copy link
Contributor Author

k-wall commented Jun 23, 2022

@ppatierno could you please review? I still need to verify the latency improvement is as expected. I'll post charts (before and after) once this is done.

@k-wall k-wall force-pushed the issue-188 branch 2 times, most recently from cbe15db to c8e8ec0 Compare June 23, 2022 14:09
@ppatierno ppatierno added this to the 0.4.0 milestone Jun 23, 2022
@ppatierno ppatierno requested a review from a team June 23, 2022 14:52
Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks! Before merging I will wait anyway the results about latency tests even if anyway I think it's a good improvement and it works much better.

@ppatierno
Copy link
Member

@k-wall other than posting your results about latency before merging, could you push a line on the CHANGELOG mentioning this change please?

@k-wall
Copy link
Contributor Author

k-wall commented Jun 26, 2022

Latency results showing the end to end latency for both Strimzi 0.3.0 and Strimzi main + the PR. I believe this demonstrates that the change is effective with the 99.5% percentile being 20-50ms. One thing the test did highlight is that the canary's default buckets are no longer appropriate. I'll suggest new values as a separate PR.

Screenshot 2022-06-26 at 19 47 59

Sharing a client meant that the client's await for FetchResponse could skew the latency measurement. This change means that the producer and consumer services create their own clients.

Signed-off-by: Keith Wall <kwall@apache.org>
@ppatierno ppatierno merged commit 07a6ce3 into strimzi:main Jun 29, 2022
@k-wall k-wall deleted the issue-188 branch June 29, 2022 08:54
melchiormoulin pushed a commit to melchiormoulin/strimzi-canary that referenced this pull request Jun 29, 2022
strimzi#193)

Sharing a client meant that the client's await for FetchResponse could skew the latency measurement. This change means that the producer and consumer services create their own clients.

Signed-off-by: Keith Wall <kwall@apache.org>
Signed-off-by: Melchior Moulin <melchior.moulin@gmail.com>
melchiormoulin pushed a commit to melchiormoulin/strimzi-canary that referenced this pull request Jul 3, 2022
strimzi#193)

Sharing a client meant that the client's await for FetchResponse could skew the latency measurement. This change means that the producer and consumer services create their own clients.

Signed-off-by: Keith Wall <kwall@apache.org>
Signed-off-by: Melchior Moulin <melchior.moulin@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants