feat: customizable ttl#426
Conversation
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
.github/workflows/ci.yml
Outdated
| # Common versions | ||
| GO_VERSION: '1.23.8' | ||
| GOLANGCI_VERSION: 'v1.62.0' | ||
| GO_VERSION: '1.24.1' |
There was a problem hiding this comment.
go1.24.3 was a security release so if updating to 1.24, it should be 1.24.3 (or .4 in a couple of days)
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
|
Is there a chance to get this PR reviewed, or in other words, is there anything utterly bad with it/some reason not to approve it? I can invest time resolving the conflicts but want to know first if it makes sense as is. 🙇 |
bobh66
left a comment
There was a problem hiding this comment.
Hi @fernandezcuesta - sorry for the delay. It looks like there are merge conflicts that need to be resolved.
Also I think it would be better to limit this PR to just the TTL changes and leave the other changes to separate PRs.
|
Sure I'll split them into two then (basically remove all bump ups in actions and golangcilint) |
ee735b8 to
f3d7c81
Compare
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
f3d7c81 to
fdb27f1
Compare
|
@bobh66 done |
|
Closing as this PR doesn't look to be of interest. |
|
Hi @fernandezcuesta , I'd like to ask you - how did you work around this problem in the end? We're facing performance issues with the TTL being its root cause - a huge spike in Crossplane operations after switching to realtime compositions - and came to very similar solution as you did here, just without the contribution due to ... well, inactivity of maintainers, that's how your contribution ended. :( |
|
Hi @Ata-NovacekJan once we enabled real-time compositions I guess this doesn't apply that much. My understanding is that a function that doesn't set a TTL is not affecting the pipeline overall in the sense that:
So my understanding is that setting a TTL would force the composition to reconcile periodically. In our case, the problem was a continous drift of arrays being sorted by crossplane-runtime. Nothing that TTL would help with. |
|
@fernandezcuesta would you be interested in bringing this PR up to date? I think it would be useful to have this feature. Thanks! |
|
@bobh66 sure, let me work on it later today |
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
Description of your changes
Add the ability to set a custom TTL for the function response.
It allows 3 ways to set it up besides the current (default), from lower to higher precedence:
Fixes #424
I have: