Skip to content

Commit

Permalink
chore(application-system): hotfix resources and startup delay (#16919)
Browse files Browse the repository at this point in the history
* chore(application-system): Set initialDelay to 20 seconds (#16893)

* chore(application-system): Set initialDelay to 20 seconds

* chore: charts update dirty files

---------

Co-authored-by: andes-it <builders@andes.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* chore(application-system): Increase cpu and mem limit and request to avoid crashloops (#16792)

* chore(application-system): Increase cpu and mem limit and request to avoid crashloops

* chore: charts update dirty files

* Decrease cpu resources and return memory to original value

* chore: charts update dirty files

* chore: charts update dirty files

---------

Co-authored-by: andes-it <builders@andes.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>

* Remove charts

---------

Co-authored-by: andes-it <builders@andes.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 18, 2024
1 parent 3b4a5a6 commit 802f12f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions apps/application-system/api/infra/application-system-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,11 @@ export const serviceSetup = (services: {
})
.db()
.migrations()
.liveness('/liveness')
.readiness('/liveness')
.liveness({ path: '/liveness', initialDelaySeconds: 20 })
.readiness({ path: '/liveness', initialDelaySeconds: 20 })
.resources({
limits: { cpu: '400m', memory: '1024Mi' },
requests: { cpu: '75m', memory: '512Mi' },
limits: { cpu: '600m', memory: '1024Mi' },
requests: { cpu: '200m', memory: '512Mi' },
})
.replicaCount({
default: 2,
Expand Down
8 changes: 4 additions & 4 deletions charts/islandis/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -692,11 +692,11 @@ application-system-api:
grantNamespacesEnabled: true
healthCheck:
liveness:
initialDelaySeconds: 3
initialDelaySeconds: 20
path: '/liveness'
timeoutSeconds: 3
readiness:
initialDelaySeconds: 3
initialDelaySeconds: 20
path: '/liveness'
timeoutSeconds: 3
hpa:
Expand Down Expand Up @@ -760,10 +760,10 @@ application-system-api:
min: 2
resources:
limits:
cpu: '400m'
cpu: '600m'
memory: '1024Mi'
requests:
cpu: '75m'
cpu: '200m'
memory: '512Mi'
secrets:
ALTHINGI_OMBUDSMAN_XROAD_PASSWORD: '/k8s/api/ALTHINGI_OMBUDSMAN_XROAD_PASSWORD'
Expand Down
8 changes: 4 additions & 4 deletions charts/islandis/values.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,11 @@ application-system-api:
grantNamespacesEnabled: true
healthCheck:
liveness:
initialDelaySeconds: 3
initialDelaySeconds: 20
path: '/liveness'
timeoutSeconds: 3
readiness:
initialDelaySeconds: 3
initialDelaySeconds: 20
path: '/liveness'
timeoutSeconds: 3
hpa:
Expand Down Expand Up @@ -748,10 +748,10 @@ application-system-api:
min: 2
resources:
limits:
cpu: '400m'
cpu: '600m'
memory: '1024Mi'
requests:
cpu: '75m'
cpu: '200m'
memory: '512Mi'
secrets:
ALTHINGI_OMBUDSMAN_XROAD_PASSWORD: '/k8s/api/ALTHINGI_OMBUDSMAN_XROAD_PASSWORD'
Expand Down
8 changes: 4 additions & 4 deletions charts/islandis/values.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -689,11 +689,11 @@ application-system-api:
grantNamespacesEnabled: true
healthCheck:
liveness:
initialDelaySeconds: 3
initialDelaySeconds: 20
path: '/liveness'
timeoutSeconds: 3
readiness:
initialDelaySeconds: 3
initialDelaySeconds: 20
path: '/liveness'
timeoutSeconds: 3
hpa:
Expand Down Expand Up @@ -757,10 +757,10 @@ application-system-api:
min: 2
resources:
limits:
cpu: '400m'
cpu: '600m'
memory: '1024Mi'
requests:
cpu: '75m'
cpu: '200m'
memory: '512Mi'
secrets:
ALTHINGI_OMBUDSMAN_XROAD_PASSWORD: '/k8s/api/ALTHINGI_OMBUDSMAN_XROAD_PASSWORD'
Expand Down

0 comments on commit 802f12f

Please sign in to comment.