feat(longhorn) — délai moteur→réplica de 8 à 20 s : un Pi lent ne doit plus faire abandonner son journal à ext4 (#59)
`defaultSettings.engineReplicaTimeout: 20` dans le HelmChart `longhorn-install` (dernier réplica à 40 s, sous le délai SCSI de 60 s), et tag `longhorn` pour rejouer la tâche seule. Refs arcodange-org/tools#52 Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Gabriel Radureau <[email protected]>
This commit was merged in pull request #59.
This commit is contained in:
@@ -20,7 +20,12 @@
|
|||||||
hosts: server
|
hosts: server
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
# Tag `longhorn` : rejouer CETTE tâche seule (`--tags longhorn`).
|
||||||
|
# ⚠ Sans tag, ce playbook exécute aussi « redeploy traefik » sur localhost,
|
||||||
|
# qui SUPPRIME le Deployment traefik dans le contexte kubectl COURANT —
|
||||||
|
# qui n'est pas forcément le homelab.
|
||||||
- name: setup longhorn for volumes https://docs.k3s.io/helm
|
- name: setup longhorn for volumes https://docs.k3s.io/helm
|
||||||
|
tags: [longhorn]
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: /var/lib/rancher/k3s/server/manifests/longhorn-install.yaml
|
dest: /var/lib/rancher/k3s/server/manifests/longhorn-install.yaml
|
||||||
@@ -45,6 +50,17 @@
|
|||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
defaultSettings:
|
defaultSettings:
|
||||||
defaultDataPath: /mnt/arcodange/longhorn
|
defaultDataPath: /mnt/arcodange/longhorn
|
||||||
|
# 8 s (défaut) → 20 s — incident arcodange-org/tools#49 et #52.
|
||||||
|
# Doc v1.9.1 : « The time in seconds a v1 engine will wait for a
|
||||||
|
# response from a replica before marking it as failed. Values
|
||||||
|
# between 8 and 30 are allowed. » Le DERNIER réplica n'est
|
||||||
|
# déclaré mort qu'au double (40 s), qui doit rester sous le
|
||||||
|
# délai SCSI des disques Longhorn (60 s, relevé sur les 3 Pi) :
|
||||||
|
# 30 s (60 s) le toucherait. Prix : une vraie panne de réplica
|
||||||
|
# met jusqu'à 20 s (40 s pour le dernier) à être constatée,
|
||||||
|
# écritures suspendues pendant ce temps. Ne vaut que pour les
|
||||||
|
# moteurs démarrés APRÈS (drapeau `--engine-replica-timeout`).
|
||||||
|
engineReplicaTimeout: 20
|
||||||
vars:
|
vars:
|
||||||
longhorn_helm_values: {} # https://github.com/longhorn/longhorn/blob/master/chart/values.yaml
|
longhorn_helm_values: {} # https://github.com/longhorn/longhorn/blob/master/chart/values.yaml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user