diff --git a/src/main/k8s/dev/base_eks.cue b/src/main/k8s/dev/base_eks.cue index db21fd9bea9..f43cc4eee77 100644 --- a/src/main/k8s/dev/base_eks.cue +++ b/src/main/k8s/dev/base_eks.cue @@ -44,6 +44,6 @@ package k8s } #JavaOptions: { - initialHeapSize: _ | *"64M" + initialHeapSize: _ | *maxHeapSize maxHeapSize: _ | *"64M" } diff --git a/src/main/k8s/dev/base_gke.cue b/src/main/k8s/dev/base_gke.cue index 17aa7166910..3a1b08216dd 100644 --- a/src/main/k8s/dev/base_gke.cue +++ b/src/main/k8s/dev/base_gke.cue @@ -85,7 +85,7 @@ package k8s } #JavaOptions: { - initialHeapSize: _ | *"64M" + initialHeapSize: _ | *maxHeapSize maxHeapSize: _ | *"64M" loggingConfigFile: "/etc/java/logging.properties" } diff --git a/src/main/k8s/dev/duchy_eks.cue b/src/main/k8s/dev/duchy_eks.cue index 495baf4aa92..874ba2b0831 100644 --- a/src/main/k8s/dev/duchy_eks.cue +++ b/src/main/k8s/dev/duchy_eks.cue @@ -44,8 +44,9 @@ _duchyCertName: "duchies/\(_duchyName)/certificates/\(_certificateId)" memory: ResourceRequirements.requests.memory } } -#MillMaxHeapSize: "1G" -#MillReplicas: 1 +#MillMaxHeapSize: "1G" +#MillReplicas: 1 +#FulfillmentMaxHeapSize: "96M" objectSets: [ default_deny_ingress_and_egress, @@ -124,6 +125,9 @@ duchy: #PostgresDuchy & { } } "requisition-fulfillment-server-deployment": { + _container: { + _javaOptions: maxHeapSize: #FulfillmentMaxHeapSize + } spec: template: spec: #ServiceAccountPodSpec & { serviceAccountName: #StorageServiceAccount } diff --git a/src/main/k8s/dev/duchy_gke.cue b/src/main/k8s/dev/duchy_gke.cue index 40c031db22d..a7cd43f79c7 100644 --- a/src/main/k8s/dev/duchy_gke.cue +++ b/src/main/k8s/dev/duchy_gke.cue @@ -46,6 +46,7 @@ _duchy_cert_name: "duchies/\(_duchy_name)/certificates/\(_certificateId)" } #MillMaxHeapSize: "1G" #MillReplicas: 1 +#FulfillmentMaxHeapSize: "96M" objectSets: [ default_deny_ingress_and_egress, @@ -123,6 +124,9 @@ duchy: #SpannerDuchy & { } } "requisition-fulfillment-server-deployment": { + _container: { + _javaOptions: maxHeapSize: #FulfillmentMaxHeapSize + } spec: template: spec: #ServiceAccountPodSpec & { serviceAccountName: #StorageServiceAccount }