Skip to content

Release 0.2.1

Compare
Choose a tag to compare
@groldan groldan released this 25 Feb 22:16

Relase 0.2.1, February 25, 2021

v0.2.1 is a patch release adding support to configure CPU and Memory resource limits in the docker composition.

Need to run docker-compose with the --compatibility flag in order for deploy.resources.limits.* to be considered (otherwise they're only obeyed in a swarm deploy).

Change JAVA_OPTS to use -XX:MaxRAMPercentage=[0..100] -XX:MaxRAM=<size><M|G> and hence set the max heap size dynamically based on the available RAM.

The --MaxRAM is set in case docker-compose wasn't (accidentally?) run with --compatibility. Otherwise it's unnecessary
given the percentage set and the memory limit imposed to the container.

A log entry is printed when each service is ready to verify the memory and cpu limits are seen by the JVM.