You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "lhotari (via GitHub)" <gi...@apache.org> on 2026/10/21 08:06:31 UTC

[PR] [improve][test] Add IoT telemetry scenarios with partitioned topics to the performance tests [pulsar]

lhotari opened a new pull request, #27028:
URL: https://github.com/apache/pulsar/pull/27028

   ### Motivation
   
   Partitioned topics are among the most common ways to deploy Pulsar, but none of the IoT scenarios of the performance tests had consumers of partitioned topics at a moderate rate. In those deployments, each consumer is a multi-topics consumer of many partitions that each receive a few messages per second. The only scenario with partitioned topics, `iot-telemetry-failover-processors`, uses Failover subscriptions with one active consumer per partition.
   
   ### Modifications
   
   Two scenarios:
   - **`iot-telemetry-partitioned.yaml`:**
     - 50 gateways publish 5,000 batched 256-byte messages per second to 3 topics of 16 partitions.
     - 10 Key_Shared applications of 20 pods read them, each pod a multi-topics consumer of the 48 partitions.
     - It measures the clients' cost per message and the latency at a moderate rate.
   - **`iot-telemetry-partitioned-max-rate.yaml`:**
     - The high-rate scenario's 500 gateways publish 6 million batched messages, without a rate limit, to one topic of 16 partitions.
     - 2 applications of 2 pods read it, each pod a multi-topics consumer of the 16 partitions.
     - It measures the consumers' capacity. A change that serializes a consumer's partitions on fewer threads would show here first.
   
   Both are listed in the scenarios' README and described in `docs/iot-telemetry.md`.
   
   On the test host, an i9-9980HK with 8 cores and 16 threads, master (e97ceda83db6) ran them as follows:
   - **`iot-telemetry-partitioned`:** publish p99 36 ms, end-to-end p99 42 ms, broker 5.7 CPUs and applications 4.0 CPUs, with the host about 78 % busy.
   - **`iot-telemetry-partitioned-max-rate`:** 85–88k msg/s, with the host about 97 % busy.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   Each scenario ran 3 times on master and on a client change, with no duplicates, ordering violations or invalid messages.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If the box was checked, please highlight the changes*
   
   - [ ] Dependencies (add or upgrade a dependency)
   - [ ] The public API
   - [ ] The schema
   - [ ] The default values of configurations
   - [ ] The threading model
   - [ ] The binary protocol
   - [ ] The REST endpoints
   - [ ] The admin CLI options
   - [ ] The metrics
   - [ ] Anything that affects deployment
   
   ### Documentation
   
   - [ ] `doc`
   - [ ] `doc-required`
   - [x] `doc-not-needed`
   - [ ] `doc-complete`
   
   This change was made with the assistance of Claude Code.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve][test] Add IoT telemetry scenarios with partitioned topics to the performance tests [pulsar]

Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari merged PR #27028:
URL: https://github.com/apache/pulsar/pull/27028


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org