Files
onyx/deployment/docker_compose/docker-compose.resources.yml
T
Chris Weaver 6f8176092e S3 like file store (#4897)
* Move to an S3-like file store

* Add non-mocked test

* Add S3 tests

* Improve migration / add auto-running tests

* Refactor

* Fix mypy

* Small fixes

* Improve migration to handle downgrades

* fix file store tests

* Fix file store tests again

* Fix file store tests again

* Fix mypy

* Fix default values

* Add MinIO to other compose files

* Working helm w/ minio

* Fix test

* Address greptile comments

* Harden migration

* Fix README

* Fix it

* Address more greptile comments

* Fix it

* Rebase

* Handle multi-tenant case

* Fix mypy

* Fix test

* fix test

* Improve migration

* Fix test
2025-06-20 14:22:05 -07:00

87 lines
2.5 KiB
YAML

# Docker service resource limits. Most are commented out by default.
# 'background' service has preset (override-able) limits due to variable resource needs.
# Uncomment and set env vars for specific service limits.
# See: https://docs.danswer.dev/deployment/resource-sizing for details.
services:
background:
deploy:
resources:
limits:
# 6 CPUs, 10GB of memory. Very generous, primarily to prevent OOM crashing the host machine.
cpus: ${BACKGROUND_CPU_LIMIT:-6}
memory: ${BACKGROUND_MEM_LIMIT:-10g}
# reservations:
# cpus: ${BACKGROUND_CPU_RESERVATION}
# memory: ${BACKGROUND_MEM_RESERVATION}
#
nginx:
deploy:
resources:
limits:
cpus: ${NGINX_CPU_LIMIT:-1}
memory: ${NGINX_MEM_LIMIT:-1g}
# reservations:
# cpus: ${NGINX_CPU_RESERVATION:}
# memory: ${NGINX_MEM_RESERVATION}
#
api_server:
deploy:
resources:
limits:
cpus: ${API_SERVER_CPU_LIMIT:-2}
memory: ${API_SERVER_MEM_LIMIT:-4g}
# reservations:
# cpus: ${API_SERVER_CPU_RESERVATION}
# memory: ${API_SERVER_MEM_RESERVATION}
#
# index:
# deploy:
# resources:
# limits:
# cpus: ${VESPA_CPU_LIMIT}
# memory: ${VESPA_MEM_LIMIT}
# reservations:
# cpus: ${VESPA_CPU_RESERVATION}
# memory: ${VESPA_MEM_RESERVATION}
#
inference_model_server:
deploy:
resources:
limits:
# cpus: ${INFERENCE_CPU_LIMIT}
memory: ${INFERENCE_MEM_LIMIT:-5g}
# reservations:
# cpus: ${INFERENCE_CPU_RESERVATION}
# memory: ${INFERENCE_MEM_RESERVATION}
#
indexing_model_server:
deploy:
resources:
limits:
# cpus: ${INDEXING_CPU_LIMIT}
memory: ${INDEXING_MEM_LIMIT:-5g}
# reservations:
# cpus: ${INDEXING_CPU_RESERVATION}
# memory: ${INDEXING_MEM_RESERVATION}
#
relational_db:
deploy:
resources:
limits:
cpus: ${POSTGRES_CPU_LIMIT:-2}
memory: ${POSTGRES_MEM_LIMIT:-4g}
# reservations:
# cpus: ${POSTGRES_CPU_RESERVATION}
# memory: ${POSTGRES_MEM_RESERVATION}
# minio:
# deploy:
# resources:
# limits:
# cpus: ${MINIO_CPU_LIMIT:-1}
# memory: ${MINIO_MEM_LIMIT:-1g}
# reservations:
# cpus: ${MINIO_CPU_RESERVATION}
# memory: ${MINIO_MEM_RESERVATION}