-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable SPIRE Agent LRU cache by default #4773
Conversation
Signed-off-by: Prasad Borole <[email protected]>
@@ -468,6 +469,11 @@ func NewAgentConfig(c *Config, logOptions []log.Option, allowUnknownConfig bool) | |||
ac.UseSyncAuthorizedEntries = c.Agent.Experimental.UseSyncAuthorizedEntries | |||
ac.X509SVIDCacheMaxSize = c.Agent.Experimental.X509SVIDCacheMaxSize | |||
|
|||
if c.Agent.Experimental.DisableLRUCache && ac.X509SVIDCacheMaxSize != 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it really experimental disablig LRU cache?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may we add documentation about this configurable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the README.
Signed-off-by: Prasad Borole <[email protected]>
doc/spire_agent.md
Outdated
| `named_pipe_name` | Pipe name to bind the SPIRE Agent API named pipe (Windows only) | \spire-agent\public\api | | ||
| `sync_interval` | Sync interval with SPIRE server with exponential backoff | 5 sec | | ||
| `x509_svid_cache_max_size` | Soft limit of max number of SVIDs that would be stored in LRU cache | 1000 | | ||
| `disable_lru_cache` | Disables the SPIRE Agent LRU cache used for storing SVIDs | false | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doc looks good, but I'm worried if people will understand what is the difference disabling it, can you explan a little more about how it will affect? maybe telling that it go back to old approach?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the description to convey that it will use non lru cache. cc @azdagron
@prasadborole1 any chance you can fix up the documentation as suggested by Marcos? Let us know if this is something you don't have time for and we'll get someone else to do it. Thanks! |
Signed-off-by: Prasad Borole <[email protected]>
* Enable SPIRE Agent LRU cache by default Signed-off-by: Prasad Borole <[email protected]> Signed-off-by: Faisal Memon <[email protected]>
* Enable SPIRE Agent LRU cache by default Signed-off-by: Prasad Borole <[email protected]>
* Enable SPIRE Agent LRU cache by default Signed-off-by: Prasad Borole <[email protected]>
x509_svid_cache_max_size
.disable_lru_cache
to allow fallback to original cache.Addresses #4224