<@U078Y59KC3B> I'm running the command, but the pr...
# ask-ai
m
@RunLLM I'm running the command, but the program is not able to consume messages that are present in the topic. How to fix it?
Copy code
pulsar-perf consume --service-url  <pulsar://localhost:6650> --subscription-type Shared --rate 10000 --num-subscriptions 10 --num-consumers 10 --subscription-position Earliest <persistent://public/default/my-topic>
r
If
pulsar-perf consume
is not receiving messages already present in the topic, check the
--subscription-position
flag. By default, consumers start at the latest position and only receive new messages. To consume existing messages, set
--subscription-position Earliest
(which you already did), but also ensure the subscription does not already exist and has not acknowledged messages before, as the initial position only applies to new subscriptions. If the subscription exists, it will resume from the last acknowledged message, not from the earliest. If you want to always consume all messages from the beginning, use a new, unique subscription name each time you run the command. For example, add
--subscriptions my-unique-sub
with a different value for each run. For more, see Pulsar Perf consume messages. Would you like more detail? Sources: - Pulsar Perf consume messages 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
m
@RunLLM it didn't help
r
Sure thing! I'm looking through the available data to answer your question. Hold on a second... ⏳