Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Register
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Register
Commits
2153ebb4
Commit
2153ebb4
authored
3 years ago
by
Alok Joshi
Browse files
Options
Downloads
Patches
Plain Diff
add comment
parent
ace0e015
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!211
Updated topics.json - Replace common with osdu as common data partition is not a concept in OSDU.
,
!159
Add cache for Entitlements getGroups() call
Pipeline
#91279
failed
3 years ago
Stage: .pre
Stage: review
Stage: build
Stage: coverage
Stage: containerize
Stage: scan
Stage: deploy
Stage: integration
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
register-core/src/main/java/org/opengroup/osdu/register/di/GroupVmCache.java
+2
-1
2 additions, 1 deletion
...ain/java/org/opengroup/osdu/register/di/GroupVmCache.java
with
2 additions
and
1 deletion
register-core/src/main/java/org/opengroup/osdu/register/di/GroupVmCache.java
+
2
−
1
View file @
2153ebb4
...
...
@@ -25,6 +25,7 @@ import org.springframework.stereotype.Component;
@Component
public
class
GroupVmCache
extends
VmCache
<
String
,
AuthorizationResponse
>
{
public
GroupVmCache
(
@Value
(
"${app.maxExpireTime:60}"
)
int
maxExpireTime
,
@Value
(
"${app.maxCacheSize:1000}"
)
int
maxCacheSize
)
{
super
(
MathUtil
.
generateRandomNumberBetweenBounds
(
30
,
60
),
1000
);
//randomizing cache TTL will reduce sudden spikes on downstream service because cache in different pods expires at different times
super
(
MathUtil
.
generateRandomNumberBetweenBounds
(
maxExpireTime
/
2
,
maxExpireTime
),
maxCacheSize
);
}
}
This diff is collapsed.
Click to expand it.
Karina Cadette
@kcadette
mentioned in commit
689f69c5
·
3 years ago
mentioned in commit
689f69c5
mentioned in commit 689f69c50678f5537ae261a938aacab9338f58a3
Toggle commit list
Karina Cadette
@kcadette
mentioned in commit
6bb1738b
·
3 years ago
mentioned in commit
6bb1738b
mentioned in commit 6bb1738b1833d37d73a068185f63f7789f853be7
Toggle commit list
Morris Estepa
@estepamo
mentioned in commit
9b6eaa9c
·
2 years ago
mentioned in commit
9b6eaa9c
mentioned in commit 9b6eaa9cabc1af6538b17b6f76382473f6467c69
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment