fix(claw): keep one daemon through a rollout
ci / test (push) Successful in 1m13s
ci / docker (push) Successful in 2m3s
android / debug (push) Successful in 2m32s
android / release (push) Successful in 2m35s
ci / checks (push) Successful in 3m4s
ci / chart (push) Successful in 6s
ci / web (push) Successful in 15s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 2m10s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 10s
ci / publish-edge-chart (push) Successful in 4s
ci / test (push) Successful in 1m13s
ci / docker (push) Successful in 2m3s
android / debug (push) Successful in 2m32s
android / release (push) Successful in 2m35s
ci / checks (push) Successful in 3m4s
ci / chart (push) Successful in 6s
ci / web (push) Successful in 15s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 2m10s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 10s
ci / publish-edge-chart (push) Successful in 4s
The chart asserts one replica and left the default RollingUpdate, which starts the new pod before the old one is gone. On this cluster both land on one node, where Longhorn lets the second mount the read-write-once volume, so an upgrade ran two daemons over one SQLite store for the seconds in between. Boot recovery reads the leases it finds as the turns a dead process left and releases them as superseded, which holds only while one daemon writes the file. A second daemon booting beside a live one would take its turns out from under it. Recreate ends the old pod first. The daemon handles SIGTERM now, so it cuts the turn in flight and writes it back before the next pod starts. helm lint --strict and the template render pass.
This commit is contained in:
1 parent
b5ecc1268c
commit
b9a633d0eb
1 file changed
+9
@@ -13,6 +13,15 @@ metadata:
|
|||||||
{{- include "rhema-claw.labels" . | nindent 4 }}
|
{{- include "rhema-claw.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
# One writer at a time. The default RollingUpdate starts the new pod
|
||||||
|
# before the old one is gone, and on this cluster both land on one
|
||||||
|
# node, where Longhorn lets the second mount the read-write-once
|
||||||
|
# volume: two daemons share the store for the seconds in between.
|
||||||
|
# Boot recovery assumes the leases it finds name a process that died,
|
||||||
|
# so the second daemon would take the first one's live turns out from
|
||||||
|
# under it. Recreate keeps that assumption true.
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "rhema-claw.selectorLabels" . | nindent 6 }}
|
{{- include "rhema-claw.selectorLabels" . | nindent 6 }}
|
||||||
|
|||||||
Reference in new issue
Block a user