Questions tagged [rainbows]

Rainbows! is an HTTP server for sleepy Rack applications. It is based on Unicorn, but designed to handle applications that expect long request/response times and/or slow clients.

Rainbows! is an HTTP server for sleepy Rack applications. It is based on Unicorn, but designed to handle applications that expect long request/response times and/or slow clients. http://rainbows.rubyforge.org/

11 questions
6
votes
3 answers

Choosing application server for API backend

With so many choices for the application server (Passenger, Thin, Unicorn, Mongrel, Puma and Rainbows!), I'm wondering what would be appropriate for the following scenario: Rails is used purely for API backend (all assets are served with Nginx).…
randomguy
  • 12,042
  • 16
  • 71
  • 101
4
votes
3 answers

104: Connection reset by peer: nginx + rainbows + over 1 mb uploads

I am running ThreadPool rainbows + nginx (unix socket) On large file uploads I am getting the following in nginx error log (nothing in the application log): readv() failed (104: Connection reset by peer) while reading upstream The browser receives…
glebm
  • 20,282
  • 8
  • 51
  • 67
3
votes
1 answer

Rails 4 - Live, connection keeps going on even after refresh

I've made a application which use the Live method in Rails 4. However when I use it every refresh keeps taking one more connection until it reached the maximum of connections to the DB and then just hangs and loads forever. What can I do to ensure…
Philip
  • 6,827
  • 13
  • 75
  • 104
3
votes
1 answer

Ruby rainbows/unicorn start faye and rails

Is there a way i can start both faye and rails apps together in rainbows/unicorn. Right now i'm using rainbows to start faye/private_pub app but would like to start rails also with it
Arjun Ramesh
  • 189
  • 1
  • 12
2
votes
1 answer

Fibers and multiple http requests in Sinatra

I have problems understanding what is happening when calling external APIs using the fibers model with eventmachine. I have this code in Sinatra: get '/' do conn = Faraday.new 'http://slow-api-call' do |con| con.adapter :em_http end resp =…
Ron
  • 2,215
  • 3
  • 22
  • 30
1
vote
1 answer

How to simplify SASS rainbow background?

Is there a way I can compress this down a bit more so all I have to add in this line is: background: linear-gradient(left, $rainbow-colors); Will I have to nest something here? @mixin rainbow($colors...) { @each $color in $colors { .#{$color}…
cjones
  • 367
  • 1
  • 3
  • 19
1
vote
0 answers

NGINX with rainbows very slow performance

I have a Ubuntu server from Azure services which I want to run all of my ruby on rails applications. For that I'm using NGINX with UNICORN and RAINBOWS! I set ruby on rails project for production and try to run it. I can see the requests arriving…
Fred Novack
  • 727
  • 9
  • 27
1
vote
1 answer

Config issue in Private_pub and rainbows configuration

I have configured private_pub with rainbows like this rainbows.conf: Rainbows! do end private_pub.ru: require "bundler/setup" require "yaml" require "faye" require "private_pub" require…
Arjun Ramesh
  • 189
  • 1
  • 12
0
votes
2 answers

Why is everything rainbow-colored in Unity?

I'm using this on an older laptop which for some reason refuses to update to Service Pack 1 so I can't run the latest version of Unity. Right now I'm running an older version and I've tried almost every 2017 version, they all have this problem. All…
0
votes
2 answers

Why isn't unicorn+mysql2 gem showing latest version of model data on multi-worker prod setup?

My model doesn't seem to be updated correctly. Unicorn rainbows! on EventMachine mysql2 gem I can reproduce in the production environment with 1000 rpm on 8 workers. If I update my_model in the Rails console (with a call to reload!), all works…
gayavat
  • 18,910
  • 11
  • 45
  • 55
0
votes
1 answer

Rainbows worker is being killed after timeout even though it replied

I have a Sinatra app running on Rainbows. I log the following : before do logger.info("#{Process.pid} #{Time.now} #{request.ip} #{request.path_info} # {params.to_s}") end and after do logger.info("#{Process.pid} #{Time.now} #{request.ip}…
Such
  • 910
  • 1
  • 9
  • 20