DevOps/Docker/docker compose/Version 3 resource limitation
Appearance
Reference: https://docs.docker.com/compose/compose-file/#resources
version: "3.7" services: redis: image: redis:alpine deploy: resources: limits: cpus: '0.50' memory: 50M reservations: cpus: '0.25' memory: 20M
Activities
[edit | edit source]- Migrate your docker compose files from v2 to v3 using new version resource definition.
- Learn about differences between JVM memory limitation capabilities and docker options.
- Learn about Linux cgroups
- Read about Java and Memory Limits in Containers: https://dzone.com/articles/java-and-memory-limits-in-containers-lxc-docker-an
See also
[edit | edit source]- DevOps/Docker/docker compose/Docker compose file: docker-compose.yml
nice
andionice
linux commands