This message was deleted.
# permit-saas
s
This message was deleted.
a
Hi @Ganesh Jadhav, I'm an AI assistant for Permit.io. I'll analyze available sources and get back to you shortly.
The "Service python 3 health check failed" error in your PDP sidecar setup is likely related to the PDP's internal service monitoring and startup timing issues. Based on the documentation, the PDP includes a Watchdog component that monitors and automatically restarts services (1) . The ServiceWatchdog monitors service health and restarts services that are unhealthy , with configurable health check intervals, failure thresholds, and startup delays . For your sidecar setup, this appears to be a known issue. In a similar case, the PDP showed connection errors to OPA (running on localhost:8181) during startup in a sidecar pattern (2) . The logs showed "Cannot connect to host localhost:8181" errors , and the issue was resolved after increasing the resources on the sidecar . Recommendations for stability: 1. ​*Increase startup delays*​: Configure the PDP with appropriate startup delays to allow services to initialize properly (1) . The ServiceWatchdog has an
initial_startup_delay
configuration (default 5 seconds) . 2. ​*Adjust health check configurations*​ (3) : • `PDP_HEALTHCHECK_TIMEOUT`: Default is 3 seconds • `PDP_OPA_CLIENT_FAILURE_THRESHOLD_PERCENTAGE`: Default is 10% • `PDP_OPA_CLIENT_FAILURE_THRESHOLD_INTERVAL`: Default is 60 seconds 3. ​*Configure readiness and liveness probes properly*​ (4) : • Use
/ready
for startup probe • Use
/healthy
for readiness probe • Use
/health
for liveness probe 4. ​*Increase resource allocation*​: As noted in the similar issue, increasing resources on the sidecar resolved the problem (2) . To help our engineers investigate further, could you please provide: 1. Which Workspace / Project / Env you are using 2. What calls you are performing (as SDK code or CURL) 3. Which specific PDP version you are running (the exact tag, not just "latest") 4. The relevant logs from your PDP, especially any errors before the health check failure
To learn more, see the sources I considered: [[1] Watchdog](https://github.com/permitio/PDP/blob/main/watchdog/README.md) [[2] Unable to push the policy data since OPA is not ready yet in sidecar pattern](https://github.com/permitio/PDP/issues/266) [[3] Configurations](https://docs.permit.io/concepts/pdp/configuration) [[4] Deploying PDP using raw Kubernetes YAMLs](https://docs.permit.io/how-to/deploy/cloud-hosts/kubernetes-raw)