talira

Fullstaq Ruby

A server-optimised Ruby distribution: precompiled MRI packages built with jemalloc and malloc_trim.

open sourceMITself-hostablefree

Fullstaq Ruby is an MRI-based Ruby distribution for production servers, shipped as native DEB and RPM packages from APT and YUM repositories, so you install and security-patch Ruby with the tools you already use instead of compiling it. Each Ruby version comes in three variants that install side by side: normal, jemalloc and malloc_trim. The jemalloc and malloc_trim builds patch the interpreter to fight Ruby's memory bloat; the project says they cut memory use by 30 to 50% and can improve performance. Multiple Ruby versions install in parallel and register with rbenv, so rbenv-based tooling such as capistrano-rbenv keeps working. It was created by Hongli Lai, author of Passenger and Ruby Enterprise Edition, with the Dutch company Fullstaq; the Server Edition is in beta, with container and Heroku editions planned.

Problems it solves

  • our Ruby app servers use far too much memory
  • Sidekiq workers keep growing in memory until they get killed
  • install Ruby on Ubuntu servers without compiling it
  • keep Ruby security-patched with apt or yum
  • run Ruby with jemalloc without patching or LD_PRELOAD
  • install several Ruby versions on a production server and switch with rbenv

Features

  • precompiled Ruby binaries as DEB and RPM packages
  • APT and YUM repositories for updates
  • normal, jemalloc and malloc_trim variants of each version
  • multiple Ruby versions installed in parallel
  • rbenv integration
  • no compiler needed on servers
  • Ubuntu, Debian and Enterprise Linux packages

Limitations

  • The Server Edition is in beta; the container and Heroku editions aren't available yet.1

What people say

  • Evil Martians tested it on web apps and background workers and found a drastic reduction in memory use and a slight performance gain. source

Alternatives

The same job

These do what Fullstaq Ruby does.

  1. ruby-build Download, compile, and install Ruby on Unix-like systems
  2. RVM Ruby Version Manager: install several Ruby interpreters side by side and switch between them, each with its own named gemsets.
  3. TruffleRuby A high performance implementation of the Ruby programming language, built on GraalVM

Compare Fullstaq Ruby with the top 3