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

    https://github.com/apache/spark/pull/21366#discussion_r195512219
  
    --- Diff: 
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/KubernetesClusterManager.scala
 ---
    @@ -56,17 +58,44 @@ private[spark] class KubernetesClusterManager extends 
ExternalClusterManager wit
           Some(new File(Config.KUBERNETES_SERVICE_ACCOUNT_TOKEN_PATH)),
           Some(new File(Config.KUBERNETES_SERVICE_ACCOUNT_CA_CRT_PATH)))
     
    -    val allocatorExecutor = ThreadUtils
    -      .newDaemonSingleThreadScheduledExecutor("kubernetes-pod-allocator")
         val requestExecutorsService = ThreadUtils.newDaemonCachedThreadPool(
           "kubernetes-executor-requests")
    +
    +    val bufferSnapshotsExecutor = ThreadUtils
    +      
.newDaemonSingleThreadScheduledExecutor("kubernetes-executor-snapshots-buffer")
    +    val snapshotsStore = new 
ExecutorPodsSnapshotsStoreImpl(bufferSnapshotsExecutor)
    +    val removedExecutorsCache = CacheBuilder.newBuilder()
    +      .expireAfterWrite(3, TimeUnit.MINUTES)
    --- End diff --
    
    DOn't think it has to be configurable. Basically we should only receive the 
removed executor events multiple times for a short period of time, then we 
should settle into steady state.


---

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

Reply via email to