-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing HelixManager ExecutorService #2849
Comments
@9aman is this for programming purpose? The log already contains the info. |
Yes, I want to access the queue size. I couldn't find a way to see the queue size to gauge the current load or state transition requests waiting to be processed. |
@junkaixue is there a way to access this information? |
Yeah. Unfortunately, we did not expose these info. We can have this ticket to track the work to expose the stats. But not feel comfortable to give user accessing of the map. |
@junkaixue what other ways are there for accessing such information if we don't want to expose this field to the user? Is there a better way of achieving this? |
Yeah. There is another way that Helix accept user passed in executor service. If you would like to have the fully control, you can define your own executor service as set the corresponding state transition for the executor service registered in Helix. Then you can get the stats or anything at any time. @9aman |
Context
This is about the use of Helix in Apache Pinot. I want to infer the queue size of the executor service that handles state transitions.
Above are the logs emitted by Helix. These logs contain the details of the executor service used for the state transition messages.
On analysis of the code, I found that the following line in the HelixTaskExecutor class provides the above details:
LOG.info("Submit task: " + taskId + " to pool: " + exeSvc);
Is your feature request related to a problem? Please describe.
_executorMap
inside HelixTaskExecutor cannot be accessed.Is there a way to get the queue size?
Describe the solution you'd like
Ability to fetch the queue size of the executor service that handles state transition requests inside HelixTaskExecutor.
The text was updated successfully, but these errors were encountered: