Replies: 3 comments
-
|
This is working as designed right now. evcc is only healthy when it's up and running- which it isn't until chargers are connected. What would be your suggestion for an alternative solution? Having something listening on a port to claim "healty" independently from application actually running does not seem like value added. |
Beta Was this translation helpful? Give feedback.
-
|
couldn't you script your probe to |
Beta Was this translation helpful? Give feedback.
-
|
Claude meint: Hier ist das Liveness-Probe-Script für EVCC. Das Script funktioniert folgendermaßen: Erste 5 Minuten: Prüft ob Port 8887 (OCPP) erreichbar ist Verwendung: Als ausführbare Datei speichern: In Kubernetes/Docker als Liveness Probe: Manual testen: Anpassungen möglich: STARTUP_TIME=300 - Ändern Sie die 300 Sekunden (5 Minuten) nach Bedarf Das Script verwendet nc (netcat) für die Portprüfung und curl für den HTTP-Check. Stellen Sie sicher, dass beide Tools in Ihrem Container/System verfügbar sind. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
It appears that the issue pointed out in #4821 is still present in the latest 0.207.4 release. The UI won't listen on port 7070 until after the OCPP chargers in my configuration have connected to the OCPP service, or the timeout for connectiontimeout is reached. Because Kubernetes routes traffic based on health of a pod (container), it won't permit OCPP connections to reach a new (or upgraded) instance of evcc because it is unable to ping the container on /api/health. As you can see, this creates a circular dependency that cannot be resolved: K8s won't route traffic to the new container because the health probe is unreachable, and the health probe is contingent to the OCPP chargers checking in or timing out before it will be responsive.
Steps to reproduce
Expected: Pod becomes healthy as soon as "UI listening at :7070" appears in container
Actual: Pod recycles due to liveness probe never coming online
Configuration details
Log details
What type of operating system or environment does evcc run on?
Linux
External automation
Nightly build
Version
0.207.4
Beta Was this translation helpful? Give feedback.
All reactions