You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case of usage, 60 min is too long. We run wiremock in k8s with pretty narrow memory limits and we have memory leaks. I fixed my problem with deleteState but it would be great to have the ability to control state expiration.
I think 2 kinds of settings are needed:
Global setting (something like --state-expiration for run args)
By context name. Just a new property for the recordState action.
Both kinds of settings should use seconds as an input value
Of course, I would like to help with it. Let me know if I can open a PR
References
No response
The text was updated successfully, but these errors were encountered:
That's a good idea and any contribution is highly welcome.
WRT implementation: the extension has no internal knowledge about the characteristics of the store, and it should stay that way in order to make it replaceable. Thus having a context-specific expiration might be difficult - at least on stub-configuration level.
For the global configuration, I'm looking for a way to make this fit nicely into the architecture. Alternatively, as backup: with the latest update you can delete multiple contexts. So creating an artificial endpoint to remove all contexts might be a mitigation as well:
Proposal
In my case of usage, 60 min is too long. We run wiremock in k8s with pretty narrow memory limits and we have memory leaks. I fixed my problem with deleteState but it would be great to have the ability to control state expiration.
I think 2 kinds of settings are needed:
Both kinds of settings should use seconds as an input value
Of course, I would like to help with it. Let me know if I can open a PR
References
No response
The text was updated successfully, but these errors were encountered: