Skip to content

Commit

Permalink
Increase heap size for dev requisition fulfillment server.
Browse files Browse the repository at this point in the history
This supports larger sketch sizes.
  • Loading branch information
SanjayVas committed Feb 26, 2024
1 parent ff5757c commit 456a1ca
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/k8s/dev/base_eks.cue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ package k8s
}

#JavaOptions: {
initialHeapSize: _ | *"64M"
initialHeapSize: _ | *maxHeapSize
maxHeapSize: _ | *"64M"
}
2 changes: 1 addition & 1 deletion src/main/k8s/dev/base_gke.cue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ package k8s
}

#JavaOptions: {
initialHeapSize: _ | *"64M"
initialHeapSize: _ | *maxHeapSize
maxHeapSize: _ | *"64M"
loggingConfigFile: "/etc/java/logging.properties"
}
Expand Down
8 changes: 6 additions & 2 deletions src/main/k8s/dev/duchy_eks.cue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -124,6 +125,9 @@ duchy: #PostgresDuchy & {
}
}
"requisition-fulfillment-server-deployment": {
_container: {
_javaOptions: maxHeapSize: #FulfillmentMaxHeapSize
}
spec: template: spec: #ServiceAccountPodSpec & {
serviceAccountName: #StorageServiceAccount
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/k8s/dev/duchy_gke.cue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ _duchy_cert_name: "duchies/\(_duchy_name)/certificates/\(_certificateId)"
}
#MillMaxHeapSize: "1G"
#MillReplicas: 1
#FulfillmentMaxHeapSize: "96M"

objectSets: [
default_deny_ingress_and_egress,
Expand Down Expand Up @@ -123,6 +124,9 @@ duchy: #SpannerDuchy & {
}
}
"requisition-fulfillment-server-deployment": {
_container: {
_javaOptions: maxHeapSize: #FulfillmentMaxHeapSize
}
spec: template: spec: #ServiceAccountPodSpec & {
serviceAccountName: #StorageServiceAccount
}
Expand Down

0 comments on commit 456a1ca

Please sign in to comment.