[ 
https://issues.apache.org/jira/browse/SPARK-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14344480#comment-14344480
 ] 

Nicholas Chammas commented on SPARK-2095:
-----------------------------------------

cc [~pwendell], [~joshrosen]

This seems like a useful thing to have, though you can accomplish something 
similar (though not as explicitly) with {{sc.defaultParallelism}}, which 
defaults to the number of executor cores in your cluster.

> sc.getExecutorCPUCounts()
> -------------------------
>
>                 Key: SPARK-2095
>                 URL: https://issues.apache.org/jira/browse/SPARK-2095
>             Project: Spark
>          Issue Type: New Feature
>          Components: Spark Core
>            Reporter: Daniel Darabos
>            Priority: Minor
>
> We can get the amount of total and free memory (via getExecutorMemoryStatus) 
> and blocks stored (via getExecutorStorageStatus) on the executors. I would 
> also like to be able to query the available CPU per executor. This would be 
> useful in dynamically deciding the number of partitions at the start of an 
> operation. What do you think?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to