You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by jweaver-personal <gi...@git.apache.org> on 2018/08/24 02:15:42 UTC

[GitHub] spark pull request #22212: [SPARK-25220] Seperate kubernetes node selector c...

GitHub user jweaver-personal opened a pull request:

    https://github.com/apache/spark/pull/22212

    [SPARK-25220] Seperate kubernetes node selector config between driver and executors.

    Seperated node selector config option between executors and driver.
    
    This removes the spark.kubernetes.node.selector config option and seperates it to
    spark.kubernetes.driver.selector and spark.kubernetes.executor.selector
    
    to allow seperate node selectors on drivers and executors.
    
    My personal use case for this change is that on AWS we have cheap spotinstances that can terminate at any moment which is okay for executors but not the driver.
    With a single node selector option I am unable to use the spot instances to save costs on the executor nodes.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jweaver-personal/spark jweaver-dev

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/22212.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #22212
    
----
commit a6c6371f8d0ba5e7ff55e83f7c8c955bf24096aa
Author: ? <jo...@...>
Date:   2018-08-24T01:55:06Z

    KUBERNETES K8S
    Seperated node selector config option between executors and driver.
    
    This removes the spark.kubernetes.node.selector config option and seperates it to
    spark.kubernetes.driver.selector and spark.kubernetes.executor.selector
    
    to allow seperate node selectors on drivers and executors.
    
    My personal use case for this change is that on AWS we have cheap spotinstances that can terminate at any moment which is okay for executors but not the driver.
    With a single node selector option I am unable to use the spot instances to save costs on the executor nodes.

----


---

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


[GitHub] spark pull request #22212: [SPARK-25220] Seperate kubernetes node selector c...

Posted by liyinan926 <gi...@git.apache.org>.
Github user liyinan926 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22212#discussion_r212717486
  
    --- Diff: docs/running-on-kubernetes.md ---
    @@ -663,11 +663,21 @@ specific to Spark on Kubernetes.
       </td>
     </tr>
     <tr>
    -  <td><code>spark.kubernetes.node.selector.[labelKey]</code></td>
    +  <td><code>spark.kubernetes.driver.selector.[labelKey]</code></td>
    --- End diff --
    
    We should keep `spark.kubernetes.driver.selector.[labelKey]` for backward compatibility. `spark.kubernetes.driver.nodeSelector.[labelKey]` should default to `spark.kubernetes.driver.selector.[labelKey]` if not specified.


---

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


[GitHub] spark pull request #22212: [SPARK-25220] Seperate kubernetes node selector c...

Posted by liyinan926 <gi...@git.apache.org>.
Github user liyinan926 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22212#discussion_r212717021
  
    --- Diff: docs/running-on-kubernetes.md ---
    @@ -663,11 +663,21 @@ specific to Spark on Kubernetes.
       </td>
     </tr>
     <tr>
    -  <td><code>spark.kubernetes.node.selector.[labelKey]</code></td>
    +  <td><code>spark.kubernetes.driver.selector.[labelKey]</code></td>
    --- End diff --
    
    This should better be named `spark.kubernetes.driver.nodeSelector.[labelKey]`.


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark pull request #22212: [SPARK-25220] Seperate kubernetes node selector c...

Posted by erikerlandson <gi...@git.apache.org>.
Github user erikerlandson commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22212#discussion_r213127037
  
    --- Diff: docs/running-on-kubernetes.md ---
    @@ -663,11 +663,21 @@ specific to Spark on Kubernetes.
       </td>
     </tr>
     <tr>
    -  <td><code>spark.kubernetes.node.selector.[labelKey]</code></td>
    +  <td><code>spark.kubernetes.driver.selector.[labelKey]</code></td>
    --- End diff --
    
    agreed we should keep it, but recommend annotating it as deprecated


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by erikerlandson <gi...@git.apache.org>.
Github user erikerlandson commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    I agree there's an argument for keeping this, but an alternative would be to leave the original for backward compatability, deprecate it, and recommend people make use of custom pod templates (#22146)


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark pull request #22212: [SPARK-25220] Seperate kubernetes node selector c...

Posted by liyinan926 <gi...@git.apache.org>.
Github user liyinan926 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22212#discussion_r212717156
  
    --- Diff: docs/running-on-kubernetes.md ---
    @@ -663,11 +663,21 @@ specific to Spark on Kubernetes.
       </td>
     </tr>
     <tr>
    -  <td><code>spark.kubernetes.node.selector.[labelKey]</code></td>
    +  <td><code>spark.kubernetes.driver.selector.[labelKey]</code></td>
       <td>(none)</td>
       <td>
    -    Adds to the node selector of the driver pod and executor pods, with key <code>labelKey</code> and the value as the
    -    configuration's value. For example, setting <code>spark.kubernetes.node.selector.identifier</code> to <code>myIdentifier</code>
    +    Adds to the node selector of the driver pod, with key <code>labelKey</code> and the value as the
    +    configuration's value. For example, setting <code>spark.kubernetes.driver.selector.identifier</code> to <code>myIdentifier</code>
    +    will result in the driver pod and executors having a node selector with key <code>identifier</code> and value
    +     <code>myIdentifier</code>. Multiple node selector keys can be added by setting multiple configurations with this prefix.
    +  </td>
    +</tr>
    +<tr>
    +  <td><code>spark.kubernetes.executor.selector.[labelKey]</code></td>
    --- End diff --
    
    Ditto. `selector` -> `nodeSelector`.


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by liyinan926 <gi...@git.apache.org>.
Github user liyinan926 commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    > I agree there's an argument for keeping this, but an alternative would be to leave the original for backward compatability, deprecate it, and recommend people make use of custom pod templates (#22146)
    
    +1 on recommending users do this sort of customizations using the new pod template support.


---

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


[GitHub] spark issue #22212: [SPARK-25220] Seperate kubernetes node selector config b...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/22212
  
    Can one of the admins verify this patch?


---

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