You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What changed since 1.0.48
Kubernetes leaves a busy application running. A server that is slow under load keeps its pod: the probe counts any answer within 10 seconds, and a server that answered before is restarted only once it has not answered for its patience, 2 minutes by default. One that has stopped answering is still restarted, about 2 minutes later instead of about 30 seconds.
Image builds retry their downloads. A dropped connection no longer stops the dashboard's image, the PHP runtime's or the DDEV web build.
Upgrading from 1.0.48
Nothing to do for a new build. A Kubernetes project made before 1.0.49 keeps its old probes until its configuration is written again (ddev config in its folder).
Changed
Kubernetes probe timings (#971, #984): probe.sh counts any answer within 10 seconds (it was 5), a 500 too; the web container's liveness probe waits 15 seconds for it (it was 10) and restarts it after WEBSHIP_SERVE_PATIENCE seconds without an answer, 120 by default (12 failures, every 10 s; it was 3). A server that never answered keeps WEBSHIP_SERVE_GRACE (1800 s) from its container's start, as before. WEBSHIP_SERVE_PATIENCE is a setting of ddev config, kept in x-webship as serve_patience; a value under 30 or not a number is the default. The databases' readiness probes (PostgreSQL's and MariaDB's) wait 5 seconds (Kubernetes' default is 1). runtimes.md explains the three values.
Proven with Plane on kind: the step pack twice as the load with no pod restarted, and Plane's server frozen with kill -STOP restarted by Kubernetes after 136 s, the site answering again at once.
Fixed
Image builds stop on one dropped connection (#980, #981): every download in core/docker/Dockerfile, the PHP runtime's Dockerfile and the DDEV web build now retries (curl --retry 5 --retry-delay 3 --retry-all-errors, and code-server's wget --tries=5), after a reset connection from dl.k8s.io stopped a CI build of the dashboard's image.