Skip to content

Commit

Permalink
mem/cpu resources for HSDS (sn/dn) and account/combine/simulator APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Sep 29, 2023
1 parent e44af1e commit 0bbd8c2
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 8 deletions.
7 changes: 7 additions & 0 deletions base/apps/account-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ spec:
- name: account-api
image: ghcr.io/biosimulations/account-api
imagePullPolicy: "Always"
resources:
requests:
memory: "500Mi"
cpu: "200m"
limits:
memory: "1Gi"
cpu: "500m"
volumeMounts:
- name: config
mountPath: "/app/config"
Expand Down
6 changes: 3 additions & 3 deletions base/apps/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ spec:
imagePullPolicy: "Always"
resources:
requests:
memory: "500Mi"
memory: "1500Mi"
cpu: "500m"
limits:
memory: "4Gi"
cpu: "2000m"
memory: "2500Mi"
cpu: "1000m"
livenessProbe:
httpGet:
path: /health
Expand Down
2 changes: 1 addition & 1 deletion base/apps/combine-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
resources:
requests:
memory: "1Gi"
cpu: "25m"
cpu: "500m"
limits:
memory: "2Gi"
cpu: "1000m"
Expand Down
14 changes: 14 additions & 0 deletions base/apps/hsds-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ spec:
- name: sn
image: hdfgroup/hsds:v0.7beta8
imagePullPolicy: Always
resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "500m"
ports:
- containerPort: 5101
env:
Expand Down Expand Up @@ -97,6 +104,13 @@ spec:
command: ["/sbin/killall5", "-15"]

imagePullPolicy: Always
resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "500m"
livenessProbe:
httpGet:
path: /info
Expand Down
7 changes: 7 additions & 0 deletions base/apps/simulators-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ spec:
- name: simulators-api
image: ghcr.io/biosimulations/simulators-api
imagePullPolicy: "Always"
resources:
requests:
memory: "500Mi"
cpu: "50m"
limits:
memory: "1Gi"
cpu: "200m"
volumeMounts:
- name: config
mountPath: "/app/config"
Expand Down
7 changes: 7 additions & 0 deletions base/resources/redis-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ spec:
containers:
- name: redis
image: redis
resources:
requests:
memory: "1Gi"
cpu: "100m"
limits:
memory: "2Gi"
cpu: "200m"
command:
- "redis-server"
args:
Expand Down
4 changes: 2 additions & 2 deletions config/dev/hsds/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ password_salt: null # salt value to generate password based on username. Not r
head_port: 5100 # port to use for head node
head_ram: 512m # memory for head container
dn_port: 6101 # Start dn ports at 6101
dn_ram: 3g # memory for DN container (per container)
dn_ram: 1g # memory for DN container (per container)
sn_port: 5101 # Start sn ports at 5101
sn_ram: 3g # memory for SN container
sn_ram: 1g # memory for SN container
rangeget_port: 6900 # singleton proxy at port 6900
rangeget_ram: 2g # memory for RANGEGET container
target_sn_count: 0 # desired number of SN containers
Expand Down
4 changes: 2 additions & 2 deletions config/prod/hsds/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ password_salt: null # salt value to generate password based on username. Not r
head_port: 5100 # port to use for head node
head_ram: 512m # memory for head container
dn_port: 6101 # Start dn ports at 6101
dn_ram: 3g # memory for DN container (per container)
dn_ram: 1g # memory for DN container (per container)
sn_port: 5101 # Start sn ports at 5101
sn_ram: 3g # memory for SN container
sn_ram: 1g # memory for SN container
rangeget_port: 6900 # singleton proxy at port 6900
rangeget_ram: 2g # memory for RANGEGET container
target_sn_count: 0 # desired number of SN containers
Expand Down

0 comments on commit 0bbd8c2

Please sign in to comment.