Skip to content

Commit 1e8e1cd

Browse files
authored
Merge pull request #942 from hubmapconsortium/yuanzhou/tuning
VM resource management
2 parents aff8eed + 905f2fe commit 1e8e1cd

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.2
1+
2.6.3

docker/docker-compose.deployment.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,15 @@ services:
33
entity-api:
44
# Use the published image and tag from DockerHub
55
image: hubmap/entity-api:${ENTITY_API_VERSION:?err}
6+
# Setting CPU and Memory Limits - Zhou 10/9/2025
7+
deploy:
8+
# PROD VM c5.4xlarge - 16 CPUs 32G RAM
9+
resources:
10+
limits:
11+
cpus: '8' # 50%
12+
memory: 19.2G # 60%
13+
reservations:
14+
cpus: '4' # 25%
15+
memory: 12.8G # 40%
616

717

docker/docker-compose.development.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ services:
1212
# Build the image with name and tag
1313
# Exit with an error message containing err if unset or empty in the environment
1414
image: hubmap/entity-api:${ENTITY_API_VERSION:?err}
15+
# Setting CPU and Memory Limits - Zhou 10/9/2025
16+
deploy:
17+
# DEV/TEST VM t3.xlarge - 4 CPUs 16G RAM
18+
resources:
19+
limits:
20+
cpus: '2' # 50%
21+
memory: 9.6G # 60%
22+
reservations:
23+
cpus: '1' # 25%
24+
memory: 6.4G # 40%
1525
volumes:
1626
# Mount the VERSION file and BUILD file
1727
- "../VERSION:/usr/src/app/VERSION"

0 commit comments

Comments
 (0)