spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oz Ben-Ami (JIRA)" <>
Subject [jira] [Created] (SPARK-24122) Allow automatic driver restarts on K8s
Date Mon, 30 Apr 2018 16:03:00 GMT
Oz Ben-Ami created SPARK-24122:

             Summary: Allow automatic driver restarts on K8s
                 Key: SPARK-24122
             Project: Spark
          Issue Type: Improvement
          Components: Kubernetes
    Affects Versions: 2.3.0
            Reporter: Oz Ben-Ami


Right now SparkSubmit creates the driver as a bare pod, rather than a managed controller like
a Deployment or a StatefulSet. This means there is no way to guarantee automatic restarts,
eg in case a node has an issue. Note Pod RestartPolicy does not apply if a node fails. A StatefulSet
would allow us to guarantee that, and keep the ability for executors to find the driver using

This is particularly helpful for long-running streaming workloads, where we currently use
{{}} with YARN. I can confirm that Spark Streaming and
Structured Streaming applications can be made to recover from such a restart, with the help
of checkpointing. The executors will have to be started again by the driver, but this should
not be a problem.

For batch processing, we could alternatively use Kubernetes {{Job}} objects, which restart
pods on failure but not success. For example, note the semantics provided by the {{kubectl
run}} [command|]
 * {{--restart=Never}}: bare Pod
 * {{--restart=Always}}: Deployment
 * {{--restart=OnFailure}}: Job

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message