mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-16 14:29:09 +01:00
velero: run kopia maintenance daily and throttled
Each of the 15 kopia repositories ran maintenance every hour, and about once a day a full run of several minutes that writes its cache to the node's only SSD. Those runs line up with dqlite stalling for seconds and controllers losing their leases (vault 09:57-10:07, argocd and mbgwp 09:17-09:40 today). Make the default frequency 24h and cap the jobs at half a CPU, so a full run writes slower and longer instead of in one burst.
This commit is contained in:
1 parent
111a9ddcea
commit
9014898fc5
1 file changed
+16
@@ -42,6 +42,22 @@ spec:
|
|||||||
config:
|
config:
|
||||||
region: minio
|
region: minio
|
||||||
features: EnableCSI
|
features: EnableCSI
|
||||||
|
# Kopia maintenance ran every hour for each of the 15 repositories,
|
||||||
|
# and once a day as a full run of several minutes that writes its
|
||||||
|
# cache to the node's only SSD, which stalls dqlite and makes
|
||||||
|
# controllers lose their leases (docs/upgrade-k8s-1.33.md). Daily
|
||||||
|
# and throttled instead. Existing BackupRepositories keep their own
|
||||||
|
# maintenanceFrequency; they were patched to 24h by hand.
|
||||||
|
defaultRepoMaintainFrequency: 24h
|
||||||
|
repositoryMaintenanceJob:
|
||||||
|
repositoryConfigData:
|
||||||
|
global:
|
||||||
|
keepLatestMaintenanceJobs: 3
|
||||||
|
podResources:
|
||||||
|
cpuRequest: 100m
|
||||||
|
cpuLimit: 500m
|
||||||
|
memoryRequest: 256Mi
|
||||||
|
memoryLimit: 2Gi
|
||||||
credentials:
|
credentials:
|
||||||
# Use existing secret created by External Secrets Operator
|
# Use existing secret created by External Secrets Operator
|
||||||
# existingSecret: velero-minio-credentials
|
# existingSecret: velero-minio-credentials
|
||||||
|
|||||||
Reference in new issue
Block a user