abellina opened a new pull request #26078: SPARK-29151: Support fractional 
resources for task resource scheduling
URL: https://github.com/apache/spark/pull/26078
 
 
   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: 
https://spark.apache.org/contributing.html
     2. Ensure you have added or run the appropriate tests for your PR: 
https://spark.apache.org/developer-tools.html
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., 
'[WIP][SPARK-XXXX] Your PR title ...'.
     4. Be sure to keep the PR description updated to reflect all changes.
     5. Please write your PR title to summarize what this PR proposes.
     6. If possible, provide a concise example to reproduce the issue for a 
faster review.
   -->
   
   ### What changes were proposed in this pull request?
   This PR adds the ability for tasks to request fractional resources, in order 
to be able to execute more than 1 task per resource. For example, if you have 1 
GPU in the executor, and the task configuration is 0.5 GPU/task, the executor 
can schedule two tasks to run on that 1 GPU.
   
   ### Why are the changes needed?
   Currently there is no good way to share a resource such that multiple tasks 
can run on a single unit. This allows multiple tasks to share an executor 
resource.
   
   ### Does this PR introduce any user-facing change?
   Yes: There is a configuration change where `spark.task.resource.[resource 
type].amount` can now be fractional.
   
   ### How was this patch tested?
   Unit tests and manually on standalone mode, and yarn.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to