Skip to content
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

Forsøk på å få færre restarter av app når skatt treffer oss #427

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

stigebil
Copy link
Collaborator

@stigebil stigebil commented Dec 7, 2023

No description provided.

@stigebil stigebil requested a review from a team as a code owner December 7, 2023 08:11
@@ -25,7 +25,6 @@ spec:
replicas: # Optional. Set min = max to disable autoscaling.
min: 2 # minimum number of replicas.
max: 2 # maximum number of replicas.
cpuThresholdPercentage: 50 # total cpu percentage threshold on deployment, at which point it will increase number of pods if current < max
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deprecated

@@ -38,7 +37,6 @@ spec:
enabled: false # Optional. When true, envoy-proxy sidecar will be injected into pod and https urls envvars will be rewritten
resources: # Optional. See: http://kubernetes.io/docs/user-guide/compute-resources/
limits:
cpu: 3000m # app will have its cpu usage throttled if exceeding this limit
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -5,6 +5,9 @@ metadata:
namespace: teamfamilie
labels:
team: teamfamilie
annotations:
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Øker default time out

@@ -10,7 +10,7 @@ class WarmupCacheService(val barnetrygdService: BarnetrygdService) {

private val logger = LoggerFactory.getLogger(WarmupCacheService::class.java)

@Scheduled(fixedDelay = 24 * 60 * 60 * 1000, initialDelay = 3 * 60 * 1000)
@Scheduled(fixedDelay = 24 * 60 * 60 * 1000, initialDelay = 10 * 60 * 1000)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Venter 10 min ved oppstart for å varme opp cache, så at den ikke begynner med cacheoppvarming når poddene restarter midt i når skatt treffer oss.

Copy link
Contributor

@tnarland tnarland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stigebil stigebil merged commit 6f3f625 into main Dec 7, 2023
1 check passed
@stigebil stigebil deleted the optimaliseringer branch December 7, 2023 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants