spark-operator icon indicating copy to clipboard operation
spark-operator copied to clipboard

Add support for livenessProbe and ReadinessProbe of driver and executor pods

Open giangnd1999 opened this issue 1 year ago • 4 comments

giangnd1999 avatar May 22 '24 09:05 giangnd1999

Any updates on this issue? We need this support as well As per the organization policy every pod needs livenessProbe and ReadinessProbe

Meghana-Naik-Nice avatar Jun 13 '24 05:06 Meghana-Naik-Nice

Functionality wise, this would be easy enough to add to the operator, but I'm curious what would you want to set the probes to?

jacobsalway avatar Jun 13 '24 22:06 jacobsalway

Set the probes to driver and executor pods which are launched after spark-submit

Meghana-Naik-Nice avatar Jun 14 '24 05:06 Meghana-Naik-Nice

@Meghana-Naik-Nice I mean what would you set the probe values to be? You might be able to use the Spark UI with a HTTP check on the driver but I'm not sure what you'd check on the executors

jacobsalway avatar Jun 14 '24 05:06 jacobsalway

Sorry to jump in, but for example, if we want to run a Spark Connect server, we might need to check whether the gRPC service is functioning correctly.

In this case, a gRPC probe would be appropriate, as described in the Kubernetes documentation: Define a gRPC liveness probe.

yassan avatar Dec 27 '24 09:12 yassan

I think livenessProbe and readinessProbe can be configured by using the pod template feature, see pod template example here.

ChenYi015 avatar Mar 18 '25 12:03 ChenYi015