Open
Description
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:
- Sending a batch of messages.
- Delaying consumption until messages have accumulated for a specified period.
- Observing consumption throughput and its impact on producers.
But currently, each test requires spending significant time to accumulate messages, which slows down the test.
Goal
Save testing time by allowing users to pre-specify topics or topic groups (via a prefix) for catch-up read testing.
Required Changes
- Add a parameter (e.g.,
--catchup-topic-prefix
) to specify a topic prefix for catch-up read testing. - If the prefix is provided, reuse existing topics matching the prefix instead of creating new ones.
- Ensure the script skips the message accumulation phase when using existing topics.