This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Commit 6c4d2df
committed
improve client's lease monitoring
we monitor lease status too frequently (every 5s) which doesn't correspond to the default grpc keepalive which we just made longer.
Let's lighten the load a bit and poll less frequent, once in 30s.
Changed the info message about lease expiring son to more friendly "ending in 5 minutes".
Also, once controller starts providing end time this will use the controller's timestamp. Until then fall back to the locally calculated begin time + duration.1 parent 39131d7 commit 6c4d2df
1 file changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
251 | 252 | | |
252 | 253 | | |
253 | | - | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
256 | 260 | | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
260 | 264 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
268 | 270 | | |
269 | 271 | | |
270 | 272 | | |
| |||
0 commit comments