You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by HyukjinKwon <gi...@git.apache.org> on 2018/07/12 01:39:53 UTC

[GitHub] spark pull request #21589: [SPARK-24591][CORE] Number of cores and executors...

Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21589#discussion_r201887142
  
    --- Diff: python/pyspark/context.py ---
    @@ -406,6 +406,22 @@ def defaultMinPartitions(self):
             """
             return self._jsc.sc().defaultMinPartitions()
     
    +    @property
    +    def numCores(self):
    +        """
    +        Total number of CPU cores of all executors registered in the cluster at the moment.
    +        The number reflects current status of the cluster and can change in the future.
    --- End diff --
    
    We call it `.. note:: Experimental` though I believe.


---

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