Grace
09/18/2025, 8:25 PMRunLLM
09/18/2025, 8:25 PMGrace
09/18/2025, 8:27 PMRunLLM
09/18/2025, 8:27 PMGrace
09/18/2025, 8:28 PMRunLLM
09/18/2025, 8:28 PMBatcherBuilderType: pulsar.KeyBasedBatchBuilder), a high BatchingMaxMessages (800), and a short BatchingMaxPublishDelay (~33ms). Key-based batching increases memory usage, especially with many unique keys, and a high MaxPendingMessages (1000) can further increase memory pressure. ZSTD compression is efficient, but may add CPU overhead.
To reduce memory usage, consider lowering BatchingMaxMessages and/or MaxPendingMessages, and only use key-based batching if strict key ordering is required. If not, use the default batcher. For more, see Pulsar Go Producer configs.
Would you like a step-by-step tuning guide for your workload?
Sources:
- Pulsar Go Producer configs π 0 button π 0 button π‘ Hint: Mention @runllm in the thread for followups.Grace
09/18/2025, 8:35 PMRunLLM
09/18/2025, 8:36 PMBatchingMaxMessages and MaxPendingMessages do not directly cause data to be stored after producers stop. Instead, data remains stored if consumers have not acknowledged all messages, as Pulsar retains unacknowledged messages in the backlog until they are acknowledged or expired by retention/TTL policies. If consumers are slow or not acknowledging, backlog grows and storage is not freed, even if no new messages are produced. See Message retention and expiry.
Would you like more detail on how consumer acknowledgments and backlog affect storage?
Sources:
- Message retention and expiry π 0 button π 0 button π‘ Hint: Mention @runllm in the thread for followups.Grace
09/18/2025, 8:40 PMRunLLM
09/18/2025, 8:40 PMBatchingMaxMessages and/or MaxPendingMessages, and only use key-based batching if strict key ordering is required. If not, switch to default batching. Also, monitor and possibly lower the number of unique keys if possible, as more keys mean more batch buffers and higher memory usage. See Batching and memory tuning and Go client memory limits.
Would you like a step-by-step tuning checklist for your scenario?
Sources:
- Batching and memory tuning π 0 button π 0 button π‘ Hint: Mention @runllm in the thread for followups.