Sha256: 67a1d1849364c4e065d46b682fc5a311bf2f6c983bd626ff7d133a1abf6fdf3e
Contents?: true
Size: 1.67 KB
Versions: 1
Compression:
Stored size: 1.67 KB
Contents
# Unicorn::Standby [![Gem Version](https://badge.fury.io/rb/unicorn-standby.svg)](http://badge.fury.io/rb/unicorn-standby) [![Build Status](https://travis-ci.org/tsukasaoishi/unicorn-standby.svg?branch=master)](https://travis-ci.org/tsukasaoishi/unicorn-standby) [![Code Climate](https://codeclimate.com/github/tsukasaoishi/unicorn-standby/badges/gpa.svg)](https://codeclimate.com/github/tsukasaoishi/unicorn-standby) Unicorn standby is on standby until it accepts the request. If you use many rack applications (such as microservices) in development environments, Unicorn Standby saves memory consumption of your computer. For example of simple Rails app RSS: ``` # 1 master and 1 worker master 77288kb worker 108112kb sum 185400kb # 1 standby master standby 20648kb ``` ## Installation Add this line to your application's Gemfile: ```ruby group :development do gem 'unicorn-standby' end ``` And then execute: $ bundle ## Usage Use ```unicorn-stanby``` command insted of ```unicorn```. ``` bundle exec unicorn-standby -c config/unicorn.rb -D ``` unicorn-standby master process starts. ``` $ ps aux | grep unicorn name 1000 11.0 0.2 2477948 20648 ?? S 10:00AM 0:00.69 unicorn-standby master (standby) -c config/unicorn.rb -D ``` When the app is accessed, master and worker processed start. ``` $ ps aux | grep unicorn name 1001 0.0 1.3 2574060 105072 ?? S 10:02AM 0:00.96 unicorn-standby worker[0] -c config/unicorn.rb -D name 1000 0.0 1.0 2548444 81392 ?? S 10:00AM 0:03.96 unicorn-standby master -c config/unicorn.rb -D ``` ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unicorn-standby-0.1.1 | README.md |