mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
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>
This commit is contained in:
parent
63747bc0c0
commit
87408ee755
@ -7,7 +7,7 @@ services:
|
||||
- ALL
|
||||
security_opt:
|
||||
- apparmor:unconfined
|
||||
mem_limit: 1610612736
|
||||
mem_limit: 1900m
|
||||
volumes:
|
||||
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
|
||||
- ./ipa-test-config.yaml:/root/.ipa/ipa-test-config.yaml:ro
|
||||
@ -23,7 +23,7 @@ services:
|
||||
- ALL
|
||||
security_opt:
|
||||
- apparmor:unconfined
|
||||
mem_limit: 1610612736
|
||||
mem_limit: 1900m
|
||||
volumes:
|
||||
- /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
|
||||
networks:
|
||||
|
@ -92,5 +92,14 @@ tar --ignore-failed-read --remove-files -czf var_log.tar.gz \
|
||||
"$BIND_DATADIR" \
|
||||
systemd_journal.log
|
||||
|
||||
echo "Report memory statistics"
|
||||
cat /sys/fs/cgroup/memory/memory.memsw.failcnt
|
||||
cat /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes
|
||||
cat /sys/fs/cgroup/memory/memory.memsw.max_usage_in_bytes
|
||||
cat /sys/fs/cgroup/memory/memory.failcnt
|
||||
cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes
|
||||
cat /sys/fs/cgroup/memory/memory.limit_in_bytes
|
||||
cat /proc/sys/vm/swappiness
|
||||
|
||||
# Final result depends on the exit code of the ipa-run-tests
|
||||
test "$tests_result" -eq 0 -a "$install_result" -eq 0
|
||||
|
@ -26,4 +26,13 @@ chmod -R o+rX "$IPA_TESTS_LOGSDIR"
|
||||
find "$IPA_TESTS_LOGSDIR" -mindepth 1 -maxdepth 1 -not -name '.*' -type d \
|
||||
-exec tar --remove-files -czf {}.tar.gz {} \;
|
||||
|
||||
echo "Report memory statistics"
|
||||
cat /sys/fs/cgroup/memory/memory.memsw.failcnt
|
||||
cat /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes
|
||||
cat /sys/fs/cgroup/memory/memory.memsw.max_usage_in_bytes
|
||||
cat /sys/fs/cgroup/memory/memory.failcnt
|
||||
cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes
|
||||
cat /sys/fs/cgroup/memory/memory.limit_in_bytes
|
||||
cat /proc/sys/vm/swappiness
|
||||
|
||||
exit $tests_result
|
||||
|
@ -44,6 +44,15 @@ steps:
|
||||
|
||||
- template: run-test.yml
|
||||
|
||||
- script: |
|
||||
set -eux
|
||||
free -m
|
||||
cat /sys/fs/cgroup/memory/memory.memsw.max_usage_in_bytes
|
||||
cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes
|
||||
cat /proc/sys/vm/swappiness
|
||||
condition: succeededOrFailed()
|
||||
displayName: Host's memory statistics
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFiles: 'ipa_envs/*/$(CI_RUNNER_LOGS_DIR)/nosetests.xml'
|
||||
|
Loading…
Reference in New Issue
Block a user