Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Operability
-
Normal
-
All
-
None
-
Description
Currently the guava cache backing the various auth caches refreshes its data lazily; you won't get an update on cached credentials until you try and read them and they're expired. For the PasswordCache in particular, this not only gives us a window of async "serve the old while you fetch the new" which isn't ideal, but also causes the cache to be invalidated and thus not adding value / perf after expiration period (24h I believe by default).
The expected behavior after this change is for the caches to auto-refresh themselves on an interval so you a) don't have stale data sitting around waiting to be served, and b) getting invalidated so having effectively a dead cache for intermittent users assuming you have the backing resources to serve them proactively.
Attachments
Issue Links
- is depended upon by
-
CASSANDRA-16958 Prewarm role and credentials caches to avoid timeouts at startup
- Resolved
- is related to
-
CASSANDRA-17063 Make capacity/validity/updateinterval/activeupdate for Auth Caches configurable via nodetool
- Resolved