You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "void-ptr974 (via GitHub)" <gi...@apache.org> on 2026/10/17 03:40:28 UTC

[PR] [fix][proxy] Schedule proxy stats updates periodically [pulsar]

void-ptr974 opened a new pull request, #26961:
URL: https://github.com/apache/pulsar/pull/26961

   ### Motivation
   
   `ProxyService` schedules its connection and topic rate calculation with `ScheduledExecutorService.schedule`. As a result, the task runs only once, 60 seconds after startup. The rate values exposed by the proxy stats endpoints are not recalculated afterward and become stale.
   
   ### Modifications
   
   - Schedule proxy stats calculation at a fixed rate, retaining the existing 60-second initial delay and using a 60-second period.
   - Add a test-only configurable stats interval and a regression test that verifies stats are updated more than once.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change added tests and can be verified as follows:
   
   - `./gradlew :pulsar-proxy:test --tests 'org.apache.pulsar.proxy.server.ProxyStatsTest' -PtestRetryCount=0`
   - `./gradlew quickCheck`
   
   ### Does this pull request potentially affect one of the following parts:
   
   - [ ] 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
   - [x] The metrics
   - [ ] Anything that affects deployment
   


-- 
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] [fix][proxy] Fix connection and topic stats that stop updating after the initial update [pulsar]

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


-- 
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