[ 
https://issues.apache.org/jira/browse/KNOX-2136?focusedWorklogId=358775&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-358775
 ]

ASF GitHub Bot logged work on KNOX-2136:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Dec/19 16:34
            Start Date: 12/Dec/19 16:34
    Worklog Time Spent: 10m 
      Work Description: smolnar82 commented on pull request #213: KNOX-2136 - 
Caching credentials in DefaultKeystoreService when an alias is being added 
(instead of the first time someone fetches) and using a different cache 
implementation
URL: https://github.com/apache/knox/pull/213#discussion_r357246508
 
 

 ##########
 File path: 
gateway-server/src/main/java/org/apache/knox/gateway/services/security/impl/DefaultKeystoreService.java
 ##########
 @@ -71,8 +74,9 @@
   private static GatewayMessages LOG = 
MessagesFactory.get(GatewayMessages.class);
   private static GatewayResources RES = 
ResourcesFactory.get(GatewayResources.class);
 
+  //let's configure the cache with hard-coded attributes now; we can introduce 
new gateway configuration later on if needed
+  private final Cache<String, Map<String, String>> cache = 
Caffeine.newBuilder().expireAfterWrite(10, 
TimeUnit.MINUTES).maximumSize(1000).build();
 
 Review comment:
   I believe it is possible. That rings the bell that we may want to keep the 
line which adds back an entry into the cache when the credential was loaded 
from the keystore.
   Is this you'd like to point out?
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 358775)
    Time Spent: 1h 10m  (was: 1h)

> Caching for keystore-based AliasService implementation
> ------------------------------------------------------
>
>                 Key: KNOX-2136
>                 URL: https://issues.apache.org/jira/browse/KNOX-2136
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: Server
>    Affects Versions: 1.3.0
>            Reporter: Philip Zampino
>            Assignee: Sandor Molnar
>            Priority: Major
>             Fix For: 1.4.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> Performance testing has revealed that as the number of keys increases, the 
> performance of keystores degrades significantly. We should investigate the 
> feasibility and potential benefit of adding in-memory caching of aliases in 
> the keystore(file)-based AliasService implementation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to