You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "t0mpere (via GitHub)" <gi...@apache.org> on 2023/08/07 14:32:41 UTC
[GitHub] [pinot] t0mpere opened a new issue, #11282: Minion Batch ingestion scheduling bottleneck
t0mpere opened a new issue, #11282:
URL: https://github.com/apache/pinot/issues/11282
Hello, I've tried to debug why scheduling `SegmentGenerationAndTarPush` Minion jobs take so long to schedule and I've narrowed it down the problem to this part of the code.
https://github.com/apache/pinot/blob/78308da90debe5b2fc958750a9a11acc3b9a9e8e/pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/minion/PinotHelixTaskResourceManager.java#L297-L309
I'm currently use `POST /tasks/execute` API to schedule the job.
The culprit seems to be the while loop waiting for the task to get a state. I'm not familiar on how helix handles this in the background. Do you think it would be possible to avoid looping on `synchronized getTaskState()` and maybe implement a callback to get the result of a job scheduling.
This is a big deal for us since scheduling takes more than ingestion and doesn't allow to keep up with new data and scale.
It might also be a misconfiguration problem but in this case I will need your help to find it.
Current configuration:
GKE
version 0.12.1
GCS for deep storage
3 ZK - 8 CPU and 18GB ram
6 Servers - 16CPU and 32 64GB ram 1.45TB SSD
2 Controllers - 16 CPU and 32GB ram
2 Brokers - 5 CPU 16.25GB ram
32 Minions - 2 CPU and 2GB of ram
1M Segments 4TB of data
--
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@pinot.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[GitHub] [pinot] Jackie-Jiang closed issue #11282: Minion Batch ingestion scheduling bottleneck
Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang closed issue #11282: Minion Batch ingestion scheduling bottleneck
URL: https://github.com/apache/pinot/issues/11282
--
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@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[GitHub] [pinot] t0mpere commented on issue #11282: Minion Batch ingestion scheduling bottleneck
Posted by "t0mpere (via GitHub)" <gi...@apache.org>.
t0mpere commented on issue #11282:
URL: https://github.com/apache/pinot/issues/11282#issuecomment-1670431417
Ok so these are the logs from a job scheduling. As you can see the task generation is very quick and the scheduling seems to be the bottleneck. 19 seconds passed between generation and the response. Let me know if you need any more info.
```
2023-08-04 16:50:00.118 BST Trying to create tasks of type: SegmentGenerationAndPushTask, table: TABLE
2023-08-04 16:50:00.434 BST Submitting ad-hoc task for task type: SegmentGenerationAndPushTask with task configs: [...]
2023-08-04 16:50:00.452 BST Submitting parent task: Task_SegmentGenerationAndPushTask_TABLE_c826881f-a0c5-48d0-bb58-8a43b3037b60 of type: SegmentGenerationAndPushTask with 1 child task configs
2023-08-04 16:50:00.456 BST Add job configuration TaskQueue_SegmentGenerationAndPushTask_Task_SegmentGenerationAndPushTask_TABLE_c826881f-a0c5-48d0-bb58-8a43b3037b60
2023-08-04 16:50:19.144 BST Handled request from 10.33.98.12 POST http://prod.host:80/tasks/execute, content-type application/json status code 200 OK
2023-08-04 16:50:19.376 BST Trying to create tasks of type: SegmentGenerationAndPushTask, table: TABLE
```
--
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@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[GitHub] [pinot] t0mpere commented on issue #11282: Minion Batch ingestion scheduling bottleneck
Posted by "t0mpere (via GitHub)" <gi...@apache.org>.
t0mpere commented on issue #11282:
URL: https://github.com/apache/pinot/issues/11282#issuecomment-1672859111
Thanks this will help a lot 🚀
--
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@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[GitHub] [pinot] Jackie-Jiang commented on issue #11282: Minion Batch ingestion scheduling bottleneck
Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on issue #11282:
URL: https://github.com/apache/pinot/issues/11282#issuecomment-1670421646
cc @snleee
Do you see the log of `Submitting parent task...` before the scheduling returns? Usually the task state should be available very soon, so we need to figure out whether creating the tasks (in `SegmentGenerationAndPushTaskGenerator`) takes the time or scheduling.
--
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@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[GitHub] [pinot] Jackie-Jiang commented on issue #11282: Minion Batch ingestion scheduling bottleneck
Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on issue #11282:
URL: https://github.com/apache/pinot/issues/11282#issuecomment-1672666638
19 seconds is normal for Helix to create the task state after a task is submitted because several steps are ZK watcher callback based.
We shouldn't need to wait for the task state to show up though. Seems it is a workaround for a Helix bug introduced in #1894. Since we already upgraded to higher Helix version, let me see if we can remove the workaround.
--
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@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org