automq icon indicating copy to clipboard operation
automq copied to clipboard

[Good First Issue] Add Consumer Percentage Control for Catch-up Reading in Performance Test

Open Chillax-0v0 opened this issue 11 months ago • 5 comments

Background

AutoMQ provides the automq-perf-test.sh script to test performance under different scenarios. Currently, it supports testing "catch-up read" (cold read) scenarios by:

  1. Sending a batch of messages.
  2. Delaying consumption until messages have accumulated for a specified period.
  3. Observing consumption throughput and its impact on producers.

However, the current implementation starts all consumers simultaneously, which does not reflect real-world scenarios where only a subset of topics experience catch-up reads at the same time.

Required Changes

Add a new optional command-line argument (e.g., --consumers-during-catchup) to the automq-perf-test.sh script to control the num of consumers activated during catch-up read scenarios.

Chillax-0v0 avatar Mar 18 '25 09:03 Chillax-0v0

/assign

Dr-Maple avatar Mar 25 '25 11:03 Dr-Maple

/assign

harry-xiao-xin avatar Apr 12 '25 12:04 harry-xiao-xin

Link not working.

Add command-line argument here? Where is the logic for controlling the num of consumers activated?

MuhtasimTanmoy avatar Apr 14 '25 21:04 MuhtasimTanmoy

Link not working.

Add command-line argument here? Where is the logic for controlling the num of consumers activated?

The link has been updated.

You can check the logic related to consumers during performance testing in the org.apache.kafka.tools.automq.perf.ConsumerService.

Chillax-0v0 avatar Apr 15 '25 03:04 Chillax-0v0

/assign

yAnaM1-AnNaa avatar Apr 23 '25 09:04 yAnaM1-AnNaa

@Chillax-0v0 could you please check #2573 ?

sanks011 avatar May 17 '25 08:05 sanks011