DEV Community

Fullstaq Ruby: First impressions, and how to migrate your Docker/Kubernetes Ruby apps today

Andrey Novikov on August 07, 2019

What is Fullstaq Ruby? Fullstaq Ruby is a custom build of standard MRI Ruby interpreter with memory allocator replaced, security patches...
Collapse
 
d4be4st profile image
štef

Love your grafana graphs. Do you maybe have a blog/repo where we can see how you setup those? :)

Collapse
 
envek profile image
Andrey Novikov Evil Martians

No, we don't have any manual for those. It's dashboard for Kubernetes pods built for us by our Ops team.

There is nothing complicated–standard Grafana graphs and standard Kubernetes metrics. So if you have K8s cluster, Prometheus and Grafana, you can build something similar yourself in matter of minutes by using queries like these:

  1. Memory limit indicator (type: “singlestat”)

    avg(container_spec_memory_limit_bytes{pod_name=~"^.*-sidekiq.*", namespace="$application", container_name=~".*sidekiq.*"}) by (container_name)
    
  2. Memory consumption graph:

    sum (container_memory_working_set_bytes{image!="", pod_name=~"^.*sidekiq.*", namespace="$application", container_name=~".*sidekiq.*"}) by (pod_name)
    
Collapse
 
archonic profile image
Archonic

Any chance of getting an Alpine based image with fullstaq?

Collapse
 
envek profile image
Andrey Novikov Evil Martians

Maybe when fullstaq labs will release their official Docker images ;-)

You can vote for this issue to show your support: github.com/fullstaq-labs/fullstaq-...

Collapse
 
jrafanie profile image
Joe Rafaniello

Interesting, I've only ever seen MALLOC_ARENA_MAX but not MALLOC_MAX_ARENA. Is it aliased but not documented?

gnu.org/software/libc/manual/html_...

Collapse
 
envek profile image
Andrey Novikov Evil Martians • Edited

No, I've just messed it up while writing the post. Sorry. Only MALLOC_ARENA_MAX is correct. Fixed.