Stanislaw Makarawec
08/18/2025, 9:58 AMRunLLM
08/18/2025, 9:58 AM--bundles 16) to allow topics to be distributed across multiple brokers. If you have only one bundle, all topics in that namespace will be handled by a single broker, causing imbalance.
If you already have a namespace, you can split existing bundles using the pulsar-admin namespaces split-bundle command to increase the number of bundles, which enables Pulsar to redistribute load to idle brokers. Automatic bundle splitting and load shedding are enabled by default, but you can tune thresholds in broker.conf for more aggressive balancing. For details, see Load balance across brokers and Bundle splitting.
Would you like more detail on bundle splitting or broker configuration?
Sources:
- Load balance across brokers
- Bundle splitting 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.Stanislaw Makarawec
08/18/2025, 10:16 AMRunLLM
08/18/2025, 10:16 AMpulsar-admin namespaces unload command. This releases the bundle from its current broker, allowing Pulsar to reassign it to another broker, which helps redistribute load. For example:
bin/pulsar-admin namespaces unload <tenant>/<namespace> -b <bundle-range> -d http://<broker-url>:8080
For step-by-step instructions and verification, see Unload bundles.
Would you like more detail on identifying which bundles to unload or how to check the results?
Sources:
- Unload bundles 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.Stanislaw Makarawec
08/18/2025, 6:27 PMRunLLM
08/18/2025, 6:27 PMStanislaw Makarawec
08/20/2025, 10:22 AMRunLLM
08/20/2025, 10:22 AMpulsar-admin namespaces split-bundle to increase it if needed. Also, ensure automatic bundle splitting and unloading are enabled in your broker.conf. For more, see Load balance across brokers and Bundle splitting.
Would you like more detail on how to check and split bundles?
Sources:
- Load balance across brokers
- Bundle splitting 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.Stanislaw Makarawec
08/20/2025, 1:38 PMRunLLM
08/20/2025, 1:38 PMloadBalancerSheddingEnabled is true, and review your loadBalancerLoadSheddingStrategy and related thresholds in broker.conf. Also, ensure new brokers are not excluded from assignment due to configuration or recent changes. For troubleshooting, see Load balance across brokers and Bundle assignment.
Would you like more detail on which configuration parameters to check?
Sources:
- Load balance across brokers
- Bundle assignment 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.Stanislaw Makarawec
08/20/2025, 1:53 PMRunLLM
08/20/2025, 1:53 PMThresholdShedder strategy for load shedding and LeastLongTermMessageRate for bundle placement, with thresholds set to trigger unloading when a broker's usage exceeds the cluster average by 10%. This setup should work for most cases, but if a broker remains idle, it may be due to the placement strategy not considering resource usage weights, or the thresholds being too high for your cluster's load variance. Consider switching loadBalancerLoadPlacementStrategy to LeastResourceUsageWithWeight for better resource-based distribution, and ensure loadBalancerSheddingEnabled is true.
For more on these parameters and their effects, see ThresholdShedder and Bundle placement strategies.
Would you like a step-by-step guide to tuning these settings?
Sources:
- ThresholdShedder
- Bundle placement strategies 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.