mirror of
https://github.com/google/nomulus
synced 2025-12-23 06:15:42 +00:00
Make k8s adjustments (#2803)
This increases hikari fetch size to 40 from 20 in order to decrease the amount of round trips This also sets lower CPU as we seem to have overshot CPU consumtion This also set min replicas to 8 for EPP and max to 16 as we've been running on 8-10 for the last week
This commit is contained in:
@@ -255,7 +255,7 @@ hibernate:
|
|||||||
# The fetch size is the number of entities retrieved at a time from the
|
# The fetch size is the number of entities retrieved at a time from the
|
||||||
# database cursor. Here we set a small default geared toward Nomulus server
|
# database cursor. Here we set a small default geared toward Nomulus server
|
||||||
# transactions. Large queries can override the defaults on a per-query basis.
|
# transactions. Large queries can override the defaults on a per-query basis.
|
||||||
jdbcFetchSize: 20
|
jdbcFetchSize: 40
|
||||||
|
|
||||||
cloudSql:
|
cloudSql:
|
||||||
# jdbc url for the Cloud SQL database.
|
# jdbc url for the Cloud SQL database.
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ spec:
|
|||||||
memory: "1Gi"
|
memory: "1Gi"
|
||||||
limits:
|
limits:
|
||||||
cpu: "1000m"
|
cpu: "1000m"
|
||||||
memory: "1Gi"
|
memory: "1.5Gi"
|
||||||
args: [ENVIRONMENT]
|
args: [ENVIRONMENT]
|
||||||
env:
|
env:
|
||||||
- name: POD_ID
|
- name: POD_ID
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ spec:
|
|||||||
name: http
|
name: http
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "1000m"
|
cpu: "600m"
|
||||||
memory: "1Gi"
|
memory: "1Gi"
|
||||||
limits:
|
limits:
|
||||||
cpu: "1000m"
|
cpu: "1000m"
|
||||||
@@ -53,11 +53,11 @@ spec:
|
|||||||
name: epp
|
name: epp
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "1000m"
|
cpu: "600m"
|
||||||
memory: "512Mi"
|
memory: "512Mi"
|
||||||
limits:
|
limits:
|
||||||
cpu: "1000m"
|
cpu: "1000m"
|
||||||
memory: "512Mi"
|
memory: "1Gi"
|
||||||
args: [--env, PROXY_ENV, --log, --local]
|
args: [--env, PROXY_ENV, --log, --local]
|
||||||
env:
|
env:
|
||||||
- name: POD_ID
|
- name: POD_ID
|
||||||
@@ -88,8 +88,8 @@ spec:
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: frontend
|
name: frontend
|
||||||
minReplicas: 5
|
minReplicas: 8
|
||||||
maxReplicas: 20
|
maxReplicas: 16
|
||||||
metrics:
|
metrics:
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
|
|||||||
@@ -39,5 +39,5 @@ spec:
|
|||||||
name: cpu
|
name: cpu
|
||||||
target:
|
target:
|
||||||
type: Utilization
|
type: Utilization
|
||||||
averageUtilization: 100
|
averageUtilization: 80
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user