[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 |
| Comment by markus makela [ 2023-06-14 ] |
|
I'll close this as a duplicate of |