Skip to content

Commit

Permalink
Merge pull request #568 from accorvin/hms-mem
Browse files Browse the repository at this point in the history
Increase memory for production trino HMS
  • Loading branch information
accorvin authored Oct 2, 2023
2 parents b7487f8 + b9a5c77 commit 5d01042
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions kfdefs/overlays/prod/dh-prod-trino/hive-metastore-statefulset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
kind: StatefulSet
apiVersion: apps/v1
metadata:
name: hive-metastore
spec:
template:
spec:
containers:
- name: metastore
resources:
limits:
cpu: '4'
memory: '8Gi'
requests:
cpu: '1'
memory: '2Gi'
5 changes: 3 additions & 2 deletions kfdefs/overlays/prod/dh-prod-trino/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ generators:

patchesStrategicMerge:
- trino-db-pvc.yaml
- hive-metastore-statefulset.yaml

replicas:
- name: trino-worker
Expand Down Expand Up @@ -87,15 +88,15 @@ patchesJson6902:
- patch: |
- op: replace
path: /data/hive_metastore_memory_request
value: '1Gi'
value: '4Gi'
target:
kind: ConfigMap
name: trino-config
version: v1
- patch: |
- op: replace
path: /data/hive_metastore_memory_limit
value: '2Gi'
value: '8Gi'
target:
kind: ConfigMap
name: trino-config
Expand Down

0 comments on commit 5d01042

Please sign in to comment.