[MXS-4268] Add soft and hard TTL to schemarouter Created: 2022-08-31  Updated: 2023-06-14  Resolved: 2023-06-14

Status: Closed
Project: MariaDB MaxScale
Component/s: schemarouter
Affects Version/s: None
Fix Version/s: N/A

Type: New Feature Priority: Major
Reporter: markus makela Assignee: Todd Stoffel (Inactive)
Resolution: Duplicate Votes: 0
Labels: None


 Description   

The schemarouter shard cache only has a hard TTL value for refreshing the cache entry. Having both a soft TTL and a hard TTL would allow the entry to be refreshed without blocking other users if an old entry is available. This would also allow the cache to discard old entries completely that have exceeded the hard TTL value. This would free up the shard cache entries for users that are not in constant use.



 Comments   
Comment by markus makela [ 2023-06-14 ]

This is technically done now that max_staleness was added by MXS-4216.

Comment by markus makela [ 2023-06-14 ]

I'll close this as a duplicate of MXS-4216 since the implementation of it by necessity also implemented this.

Generated at Thu Feb 08 04:27:25 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.