Skip to content

Conversation

@lvthanh03
Copy link
Member

@lvthanh03 lvthanh03 commented Oct 27, 2025

Record total number of available processes in the arroyo.strategies.run_task_with_multiprocessing.processes metric in __submit_batch alongside __batches_in_progress in order to be able to calculate utilization.

Refs STREAM-488

@lvthanh03 lvthanh03 marked this pull request as ready for review October 27, 2025 19:02
@lvthanh03 lvthanh03 requested review from a team as code owners October 27, 2025 19:02
@linear
Copy link

linear bot commented Oct 27, 2025

Comment on lines 605 to 616
self.__metrics.gauge(
"arroyo.strategies.run_task_with_multiprocessing.processes", num_processes
)
self.__metrics.gauge(
"arroyo.strategies.run_task_with_multiprocessing.pool_size", num_processes
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two are redundant.
Please keep only one. Also you do not need to record the metric here. Only below when you record the processes in use.

@lvthanh03 lvthanh03 merged commit c994ca5 into main Nov 4, 2025
15 checks passed
@lvthanh03 lvthanh03 deleted the tony/pool-size-metric branch November 4, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants