#Swap cleanup mode:
# system - cleanup is performed in two stages:
#   - restart conatiners until the swap usage becomes <= MAX_TOTAL
#   - restart conatiners that use swap >= MAX_CONTAINER
# container - restart conatiners that use swap >= MAX_CONTAINER
#MODE=system

# Maximum allowed swap memory usage in %
#MAX_TOTAL=80

# Maximum allowed swap memory usage per container in KiB
#MAX_CONTAINER=100000

# Maximum allowed residential RAM for the LXD service in KiB
#MAX_LXD_RAM=512000

# Maximum allowed UDP leaked ports to be kept open by Asterisk
#MAX_AST_PORTS=200 

# Other advanced options that can include:
# -lxd-restart - restart the LXD service if it consumes residential RAM more than lxdResMax
# -ast-restart - restart Asterisk if it has more than MAX_AST_PORTS UDP leaked open ports
# -force      - restart container regardless the active calls or free storage numbers
# -verbose
# -dry-run 
#OPTIONS=""
OPTIONS="-lxd-restart -ast-restart"
