Skip to content

Commit

Permalink
Merge pull request bcgov#223 from i5okie/i5okie/agent-cpu-limit-adjust
Browse files Browse the repository at this point in the history
Adjust CPU limit to reduce throttling, workflow fix
  • Loading branch information
i5okie authored Jul 26, 2024
2 parents 312cf11 + 2db517d commit c90ac32
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 23 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/gitops_sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,8 @@ on:
workflow_dispatch:

jobs:
changed_files:
runs-on: ubuntu-latest
name: Check for file changes
outputs:
any_changed: ${{ steps.gitops-changes.outputs.any_changed }}
steps:
- uses: actions/checkout@v4
- name: Scan services directory
id: gitops-changes
uses: tj-actions/changed-files@v44
with:
files: services/*.*

sync_changes:
runs-on: ubuntu-latest
needs:
- changed_files
if: needs.changed_files.outputs.any_changed == 'true' && (github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch')
steps:
- uses: actions/checkout@v4

Expand Down
5 changes: 5 additions & 0 deletions helm-values/vc-authn-oidc/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,8 @@ mongodb:
livenessProbe:
enabled: true
timeoutSeconds: 10
postgresql:
primary:
resources:
limits:
cpu: 800m
11 changes: 10 additions & 1 deletion helm-values/vc-authn-oidc/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,23 @@ acapy:
mongodb:
resources:
limits:
cpu: 1
cpu: 1600
memory: 1000Mi
requests:
cpu: 400m
memory: 450Mi
metrics:
enabled: true
readinessProbe:
enabled: true
timeoutSeconds: 10
livenessProbe:
enabled: true
timeoutSeconds: 10

postgresql:
primary:
resources:
limits:
cpu: 700m
memory: 2600Mi
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ ACAPY_TAILS_SERVER_BASE_URL=https://tails-dev.vonx.io
MIN_REPLICAS=1
MAX_REPLICAS=2
CPU_REQUEST=10m
CPU_LIMIT=500m
CPU_LIMIT=800m
MEMORY_REQUEST=10Mi
MEMORY_LIMIT=512Mi
2 changes: 1 addition & 1 deletion services/traction/charts/dev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ traction:
network.openshift.io/policy-group: ingress
resources:
limits:
cpu: 500m
cpu: 800m
tenant_proxy:
image:
tag: sha-982815a
Expand Down
4 changes: 2 additions & 2 deletions services/traction/charts/prod/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ traction:
network.openshift.io/policy-group: ingress
resources:
limits:
cpu: 400m
cpu: 1
memory: 500Mi
requests:
cpu: 120m
cpu: 250m
memory: 250Mi
autoscaling:
enabled: true
Expand Down
3 changes: 3 additions & 0 deletions services/traction/charts/test/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ traction:
maxReplicas: 5
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
resources:
limits:
cpu: 800m
tenant_proxy:
image:
pullPolicy: Always
Expand Down
3 changes: 3 additions & 0 deletions services/vc-authn-oidc/charts/dev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,6 @@ vc-authn-oidc:
primary:
persistence:
size: 5Gi
resources:
limits:
cpu: 800m
8 changes: 7 additions & 1 deletion services/vc-authn-oidc/charts/prod/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ vc-authn-oidc:
existingSecret: "vc-authn-oidc-mongodb"
resources:
limits:
cpu: 1
cpu: 1600
memory: 1000Mi
requests:
cpu: 400m
memory: 450Mi
metrics:
enabled: true
readinessProbe:
enabled: true
timeoutSeconds: 10
Expand All @@ -130,3 +132,7 @@ vc-authn-oidc:
primary:
persistence:
size: 5Gi
resources:
limits:
cpu: 700m
memory: 2600Mi
4 changes: 3 additions & 1 deletion services/vc-authn-oidc/charts/test/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ vc-authn-oidc:
image:
repository: ghcr.io/bcgov/vc-authn-oidc
pullPolicy: IfNotPresent
tag: sha-46e31f6

acapyTenancyMode: single
setNonRevoked: true
Expand Down Expand Up @@ -137,6 +136,9 @@ vc-authn-oidc:
auth:
existingSecret: "vc-authn-oidc-postgresql"
primary:
resources:
limits:
cpu: 600m
persistence:
size: 5Gi
metrics:
Expand Down

0 comments on commit c90ac32

Please sign in to comment.