We had massive issues running Elixir in a container until we tweaked the vm settings. This is in our vm.args.eex
## Enable kernel poll
+K true
## Aysnc threads
+A 128
## Increase number of concurrent ports/sockets
## Same as setting: -env ERL_MAX_PORTS 65536
+Q 65536
## Something about scheduling
## https://stressgrid.com/blog/beam_cpu_usage/
+sbwt none
+sbwtdcpu none
+sbwtdio none