-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHRAS-3403 set docker containers resource limits (#4456)
* PHRAS-3403 set docker containers resource limits * PHRAS-3403 fix .env comments * PHRAS-3403 extend limits to all phraseanet containers * PHRAS-3403 extend limits to all containers and create a dedicated composer file * Update documentation in .env
- Loading branch information
1 parent
460a42d
commit f96a88e
Showing
2 changed files
with
221 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
version: "3.9" | ||
|
||
services: | ||
gateway: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${GATEWAY_CPU} | ||
memory: ${GATEWAY_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${GATEWAY_MEMORY_RESERVATION} | ||
gateway-traefik: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${GATEWAY_CPU} | ||
memory: ${GATEWAY_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${GATEWAY_MEMORY_RESERVATION} | ||
setup: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
phraseanet: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${FPM_CPU} | ||
memory: ${FPM_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${FPM_MEMORY_RESERVATION} | ||
worker: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-mainQueue: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-assetsIngest: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-createRecord: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-deleteRecord: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-editRecord: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-exportMail: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-downloadAsync: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-exposeUpload: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-exportftp: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-populateIndex: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-pullAssets: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-recordsActions: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-shareBasket: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-subdefCreation: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-subtitle: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-validationReminder: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-webhook: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
w-writeMetadatas: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
scheduler: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} | ||
cmd: | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: ${WORKER_CPU} | ||
memory: ${WORKER_MEMORY_LIMIT} | ||
reservations: | ||
memory: ${WORKER_MEMORY_RESERVATION} |