freeipa/ipatests/azure/Dockerfiles/docker-compose.yml
Stanislav Levin 87408ee755 Azure: Increase memory limit
Azure host has 6 GB of physical memory + 7 GB of swap.
FreeIPA CI runs at least 5 masters on each Azure's host.
Thus, swap is intensively used.

Based on the available *physical* memory 389-ds performs db tweaks
and in future may fail to start in case of memory shortage.

Current memory limit for Azure Docker containers(master/replica):
- Physical
$ cat /sys/fs/cgroup/memory/memory.limit_in_bytes
1610612736
- Physical + swap:
$ cat /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes
3221225472

In the meantime, installation of master + ca + kra + dnssec requires:
$ cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes
1856929792

Some test environments require more memory.
For example, 'ipatests.test_integration.test_commands.TestIPACommand':
$ cat /sys/fs/cgroup/memory/memory.memsw.max_usage_in_bytes
2232246272
$ cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes
2232246272

Fixes: https://pagure.io/freeipa/issue/8264
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2020-04-28 17:50:10 +02:00

56 lines
1.1 KiB
YAML

version: '2.1'
services:
master:
image: ${IPA_DOCKER_IMAGE}
build: .
cap_add:
- ALL
security_opt:
- apparmor:unconfined
mem_limit: 1900m
volumes:
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
- ./ipa-test-config.yaml:/root/.ipa/ipa-test-config.yaml:ro
- ${BUILD_REPOSITORY_LOCALPATH}:${IPA_TESTS_REPO_PATH}
networks:
- ${IPA_NETWORK}
replica:
image: ${IPA_DOCKER_IMAGE}
build: .
cap_add:
- ALL
security_opt:
- apparmor:unconfined
mem_limit: 1900m
volumes:
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
networks:
- ${IPA_NETWORK}
client:
image: ${IPA_DOCKER_IMAGE}
build: .
cap_add:
- ALL
security_opt:
- apparmor:unconfined
mem_limit: 536870912
volumes:
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
# nfs server
- ./exports:/exports
- /lib/modules:/lib/modules:ro
networks:
- ${IPA_NETWORK}
networks:
ipanet:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: ${IPA_IPV6_SUBNET}