Skip to content

Commit

Permalink
Adjust memory configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Katz committed Aug 10, 2021
1 parent 49a33be commit 9d1d5c7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
13 changes: 6 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ services:
deploy:
resources:
limits:
cpus: 1
memory: 1G
cpus: 0.5
memory: 500M
postgres:
image: postgres:latest
environment:
Expand All @@ -26,8 +26,8 @@ services:
deploy:
resources:
limits:
cpus: 1
memory: 1G
cpus: 0.5
memory: 500M
minio:
image: minio/minio:latest
ports:
Expand Down Expand Up @@ -58,7 +58,7 @@ services:
resources:
limits:
cpus: 2
memory: 4G
memory: 3G

trino-worker:
image: "trinodb/trino:latest"
Expand All @@ -72,7 +72,7 @@ services:
resources:
limits:
cpus: 2
memory: 4G
memory: 6G

superset:
build: ./superset
Expand All @@ -85,7 +85,6 @@ services:
limits:
cpus: 1
memory: 1G

volumes:
minio-data:
driver: local
Expand Down
7 changes: 4 additions & 3 deletions trino/coordinator/etc/config.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
coordinator=true
node-scheduler.include-coordinator=false
http-server.http.port=8080
query.max-memory=20GB
query.max-memory-per-node=3GB
query.max-total-memory-per-node=4GB
query.max-memory=10GB
query.max-memory-per-node=4.75GB
query.max-total-memory-per-node=5GB
memory.heap-headroom-per-node=0.25GB
discovery.uri=http://trino-coordinator:8080
7 changes: 4 additions & 3 deletions trino/worker/etc/config.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coordinator=false
http-server.http.port=8080
query.max-memory=20GB
query.max-memory-per-node=3GB
query.max-total-memory-per-node=4GB
query.max-memory=10GB
query.max-memory-per-node=4.75GB
query.max-total-memory-per-node=5GB
memory.heap-headroom-per-node=0.25GB
discovery.uri=http://trino-coordinator:8080
2 changes: 1 addition & 1 deletion trino/worker/etc/jvm.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-server
-Xmx16G
-Xmx5500M
-XX:-UseBiasedLocking
-XX:+UseG1GC
-XX:G1HeapRegionSize=32M
Expand Down

0 comments on commit 9d1d5c7

Please sign in to comment.