87408ee Azure: Increase memory limit

4 files Authored by slev 3 years ago, Committed by cheimes 3 years ago,
    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>