Repository navigation
Commit 52c5927
fix(velero): exempt the node-agent from a memory limit
The 2Gi ceiling was sized from the wrong number, as the comment beside
it admitted: 121Mi is the 14-day peak at idle, and node-agent only
consumes real memory while it is moving data, when kopia/restic walk,
hash and index the volume's file tree. Demand there scales with file
count and volume size on that node rather than with cluster size, so no
measurement a 3-node dev cluster can produce bounds the case the limit
has to cover.
A guessed ceiling is worse than none on this workload. The kill it
prevents happens only when the node is genuinely short of memory; the
kill it introduces happens on a healthy node in the middle of a backup,
the one moment the agent has to survive, and it lands on clusters whose
large backups completed fine while node-agent was unlimited. Raising
2Gi to a larger guess moves the threshold without removing the failure
mode or acquiring the evidence.
So node-agent now carries requests and no limit, the same call
linstor-controller and the satellite make. The ceiling is not dropped,
it moves: the default LimitRange the operator maintains in every system
namespace defaults container memory in cozy-velero, so the pod still
gets memory.max and the number is tunable once, centrally, on a cluster
whose backups need more. Before that LimitRange exists node-agent is
limit-free and stays in the OOM handler's victim set, which is what it
does today.
Settling a fitted limit instead needs a peak measured under a
PodVolumeBackup of a large, many-file volume on a real cluster.
velero_test.yaml pins the exemption with notExists so a ceiling cannot
come back quietly, and pins the cpu request that carried no assertion.
Assisted-by: LLM
Signed-off-by: Myasnikov Daniil <[email protected]>1 parent 9b6ed66 commit 52c5927
2 files changed
Lines changed: 37 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
133 | 152 | | |
134 | 153 | | |
135 | 154 | | |
136 | 155 | | |
137 | 156 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | 157 | | |
142 | 158 | | |
143 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
| |||
0 commit comments