Webship Workspace 1.0.49 is out: Kubernetes leaves a busy application running, and the image builds retry their downloads.
- 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 configin its folder).
Changed
- Kubernetes probe timings (#971, #984):
probe.shcounts 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 afterWEBSHIP_SERVE_PATIENCEseconds without an answer, 120 by default (12 failures, every 10 s; it was 3). A server that never answered keepsWEBSHIP_SERVE_GRACE(1800 s) from its container's start, as before.WEBSHIP_SERVE_PATIENCEis a setting ofddev config, kept inx-webshipasserve_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 -STOPrestarted by Kubernetes after 136 s, the site answering again at once.
- Proven with Plane on kind: the step pack twice as the load with no pod restarted, and Plane's server frozen with
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'swget --tries=5), after a reset connection from dl.k8s.io stopped a CI build of the dashboard's image.