Ganesh Jadhav
09/10/2025, 8:27 AMAsk Inkeep
09/10/2025, 8:27 AMAsk Inkeep
09/10/2025, 8:28 AMPDP_HORIZON_STARTUP_DELAY defaults to 5 seconds . The Horizon service health check has a failure threshold of 12 consecutive failures by default before attempting a restart .
​*2. Could your sidecar setup be causing it?*​
Yes, there's a known issue with sidecar deployments where the PDP tries to push policy data before OPA is ready (2) . This was resolved by increasing resources on the sidecar container . The PDP runs both a Horizon service (Python) and OPA process, which need adequate resources to initialize properly.
​*3. Recommended deployment tweaks for stability:*​
• ​*Increase resource allocation*​: Based on the resolved issue, increasing CPU/memory resources helps
• ​*Adjust health check timings*​ (1) :
• `PDP_HORIZON_HEALTH_CHECK_TIMEOUT`: Default 1 second
• `PDP_HORIZON_HEALTH_CHECK_INTERVAL`: Default 5 seconds
• `PDP_HORIZON_HEALTH_CHECK_FAILURE_THRESHOLD`: Default 12 failures
• `PDP_HORIZON_STARTUP_DELAY`: Default 5 seconds
• ​*Configure proper probes*​ (3) :
• Use /ready for startup probe
• Use /healthy for readiness probe
• Use /health for liveness probe
For debugging this issue, please provide:
1. Which Workspace / Project / Env you are using
2. What calls are you performing (as SDK code or CURL)
3. Which PDP version you are running (you mentioned latest, but specific version helps)
4. Relevant logs from your PDP, especially around the restart events
This will help our engineers investigate the specific cause of your restart loops.Ask Inkeep
09/10/2025, 8:28 AMAlon Boshi
09/10/2025, 8:46 AMGanesh Jadhav
09/10/2025, 8:51 AMAlon Boshi
09/10/2025, 8:55 AMGanesh Jadhav
09/10/2025, 8:57 AMOmer Zuarets
09/10/2025, 9:09 AMOmer Zuarets
09/10/2025, 9:11 AMGanesh Jadhav
09/10/2025, 9:27 AMGanesh Jadhav
09/11/2025, 8:10 AMNAME CPU(cores) MEMORY(bytes)
permitio-pdp-696f64dc64-qq8hq 86m 114Mi
• Have you tried raising the resources requests ( especially the CPU one )?
=> No, as it is default and is coming from pdp helm chart
• Also it seems like the PDP fails with it’s initial startup of getting the remote config from the control plane ( our servers ). Can you verify the PDP can “interact” with outside servers ?
=> Yes, regular ping to <http://google.com|google.com> works without any issuesAlon Boshi
09/11/2025, 8:12 AMRaz Co
09/11/2025, 8:17 AMkubectl describe …) and the PDP logs as a file ?Omer Zuarets
09/11/2025, 8:17 AMGanesh Jadhav
09/11/2025, 9:12 AMbackend permitio-pdp-696f64dc64-qq8hq 1/1 Running 1 (5h11m ago) 5h12m
LOGS:
[2025-09-11T03:43:38Z INFO pdp_server::api::health::handlers] Health check failed: horizon: Failed to connect to Horizon: error sending request for url (<http://0.0.0.0:7001/healthy>), opa: Failed to connect to OPA: error sending request for url (<http://localhost:8181/health>)
[2025-09-11T03:43:40Z INFO pdp_server::api::health::handlers] Health check failed: horizon: Failed to connect to Horizon: error sending request for url (<http://0.0.0.0:7001/healthy>), opa: Failed to connect to OPA: error sending request for url (<http://localhost:8181/health>)
[2025-09-11T03:43:48Z INFO pdp_server::api::health::handlers] Health check failed: horizon: Failed to connect to Horizon: error sending request for url (<http://0.0.0.0:7001/healthy>), opa: Failed to connect to OPA: error sending request for url (<http://localhost:8181/health>)
[2025-09-11T03:43:50Z INFO pdp_server::api::health::handlers] Health check failed: horizon: Failed to connect to Horizon: error sending request for url (<http://0.0.0.0:7001/healthy>), opa: Failed to connect to OPA: error sending request for url (<http://localhost:8181/health>)
[2025-09-11T03:43:58Z INFO pdp_server::api::health::handlers] Health check failed: horizon: Failed to connect to Horizon: error sending request for url (<http://0.0.0.0:7001/healthy>), opa: Failed to connect to OPA: error sending request for url (<http://localhost:8181/health>)
[2025-09-11T03:44:00Z INFO pdp_server::api::health::handlers] Health check failed: horizon: Failed to connect to Horizon: error sending request for url (<http://0.0.0.0:7001/healthy>), opa: Failed to connect to OPA: error sending request for url (<http://localhost:8181/health>)
[2025-09-11T03:44:00Z INFO pdp_server::api::health::handlers] Health check failed: horizon: Failed to connect to Horizon: error sending request for url (<http://0.0.0.0:7001/healthy>), opa: Failed to connect to OPA: error sending request for url (<http://localhost:8181/health>)Alon Boshi
09/11/2025, 12:20 PMOmer Zuarets
09/11/2025, 12:29 PMGanesh Jadhav
09/11/2025, 1:26 PMOmer Zuarets
09/11/2025, 1:29 PMOmer Zuarets
09/11/2025, 1:31 PMGanesh Jadhav
09/11/2025, 1:32 PMOmer Zuarets
09/11/2025, 1:33 PMGanesh Jadhav
09/11/2025, 1:34 PM