Skip to content

roachtest/cdc: add roachtest for per changefeed kafka quota config#118428

Closed
wenyihu6 wants to merge 5 commits intocockroachdb:masterfrom
wenyihu6:config
Closed

roachtest/cdc: add roachtest for per changefeed kafka quota config#118428
wenyihu6 wants to merge 5 commits intocockroachdb:masterfrom
wenyihu6:config

Conversation

@wenyihu6
Copy link
Copy Markdown
Contributor

@wenyihu6 wenyihu6 commented Jan 29, 2024

Splitting this PR out for adding a roachtest.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@wenyihu6 wenyihu6 force-pushed the config branch 4 times, most recently from cc44b3e to edd9e94 Compare January 30, 2024 15:40
@wenyihu6 wenyihu6 force-pushed the config branch 2 times, most recently from 62b30ff to 75c3be1 Compare February 1, 2024 04:02
Now that this patch has been merged, sarama now acknowledges and reacts to kafka
server's throttling messages by slowing down. To provide better observability
into sarama code, this patch adds a metrics registry interceptor and a new
metrics `changefeed.kafka_throttling_hist_nanos` which tracks time (in nanos)
spent in sarama's throttling when cockroachdb exceed the kafka quota.

Release note: changefeed.kafka_throttling_hist_nanos has now been added to
metrics to monitor sarama throttling behavior resulting from exceeding kafka
quota.

Fixes: cockroachdb#117618
This patch adds a new roachtest to observe kafka throttling behaviour. It's a
bit tricky to find the passing condition here since we are expecting throttling
behaviour and would like to assert that the latency is above the target.

Part of: cockroachdb#117618
Release note:none
@wenyihu6 wenyihu6 force-pushed the config branch 4 times, most recently from 0c8b4b7 to e6ff5ee Compare February 2, 2024 15:30
@wenyihu6 wenyihu6 changed the title changefeedccl: enable per changefeed quota configuration roachtest/cdc: add roachtest for per changefeed kafka quota config Feb 2, 2024
@wenyihu6 wenyihu6 closed this Feb 18, 2025
@wenyihu6 wenyihu6 deleted the config branch February 18, 2025 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants