![]() ![]() Unicorn can be difficult to setup and configure, so we’ve provided configuration documentation to make it easier to get started. ![]() You need to choose your web server at the time of initial build of the application. Unicorn on Rails By running Unicorn in production, you can significantly increase throughput per dyno and avoid or reduce queuing when your app is under load. We focus on the usage of containers for production. Unicorn is a web server that uses forked processes to handle multiple incoming requests concurrently. RUN RAILS UNICORN HTTPS HOW TOThis guide shows some of the advantages of Kubernetes compared to other solutions and explains how to deploy a Rails application in production using Kubernetes. ![]() what I'm wondering is should I be worried about this behaviour? There are many ways to deploy a Ruby on Rails application: one of them is using Docker containers and Kubernetes for orchestration. My Ruby code does use memoizations and I'm assuming Ruby/Rails/Unicorn is keeping its own caches. If I drop my page caches using the linux command echo 1 > /proc/sys/vm/drop_caches, the available free memory shoots back up to what it was when I started the unicorns, and the memory loss pattern begins again over the hours. This is a linear slope for about 6 hours, then it appears to level out, but still maybe appear to lose about 10MB/hour. Under constant load (about 15 reqs/sec coming in from nginx), over the course of an hour, each server in the 3 server cluster loses about 100MB / hour. My question concerns memory usage, and what concerns I should have with what I am seeing. CPU never seems to get pinned, and I seem to be handling requests pretty nicely. It is an 8 core ec2 box, and I am running 15 workers. I am running unicorn on Ubuntu 11, Rails 3.0, and Ruby 1.8.7. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |