app/matrix: adjust resources configuration for prod changes

Change-Id: Ib81847bd65e254cbd650d60456185e681e2b1e88
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1390
Reviewed-by: informatic <informatic@hackerspace.pl>
changes/90/1390/4
informatic 2022-09-13 20:37:33 +02:00 committed by informatic
parent 3f0bc2083b
commit a8bb615464
1 changed files with 12 additions and 5 deletions

View File

@ -115,6 +115,11 @@ local kube = import "../../../kube/kube.libsonnet";
# Mount app.dataVolume in /data
mountData: false,
resources: {
requests: { cpu: "300m", memory: "1Gi" },
limits: { cpu: "1500m", memory: "2Gi" },
},
},
spec+: {
@ -141,10 +146,7 @@ local kube = import "../../../kube/kube.libsonnet";
exec python -m ${SYNAPSE_WORKER} --config-path /conf/homeserver.yaml --config-path /tmp/secrets.yaml --config-path /tmp/local.yaml
|||
],
resources: {
requests: { cpu: "300m", memory: "1Gi" },
limits: { cpu: "1500m", memory: "2Gi" },
},
resources: worker.cfg.resources,
ports_: {
http: { containerPort: 8008 },
metrics: { containerPort: 9092 },
@ -212,7 +214,12 @@ local kube = import "../../../kube/kube.libsonnet";
notify_appservices: app.config.notify_appservices,
# send_federation: app.config.send_federation,
# federation_sender_instances: app.config.federation_sender_instances,
}
},
resources+: {
limits+: { memory: "4Gi" },
requests+: { memory: "2Gi" },
},
},
spec+: {
strategy+: {