Skip to content

Try to leave 1GB RAM free of Unicorn workers

If we keep adding Unicorn workers as CPU cores go up we can run out of memory. After this change:

  • the minimum number of Unicorn worker processes is 2
  • if there is enough RAM, we get ncores+1 worker processes
  • assuming 250MB/Unicorn, leave 1GB RAM free for other services. (1.5GB RAM: max 2 Unicorns, 2GB: max 4 Unicorns, 4GB: max 12 Unicorns, etc.)

Merge request reports