search for: maintain_worker_count

Displaying 6 results from an estimated 6 matches for "maintain_worker_count".

2011 Sep 06
1
Workers getting broken after some time
...ib/ruby/gems/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:600:in `worker_loop'' /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:485:in `spawn_missing_workers'' /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:496:in `maintain_worker_count'' /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:270:in `join'' /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.1.1/bin/unicorn_rails:209:in `<top (required)>'' /usr/local/bin/unicorn_rails:19:in `load'' /usr/local/bin/unicorn_rail...
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
...issing'' unicorn (4.6.2) lib/unicorn/http_server.rb:552:in `process_client'' unicorn (4.6.2) lib/unicorn/http_server.rb:632:in `worker_loop'' unicorn (4.6.2) lib/unicorn/http_server.rb:500:in `spawn_missing_workers'' unicorn (4.6.2) lib/unicorn/http_server.rb:511:in `maintain_worker_count'' unicorn (4.6.2) lib/unicorn/http_server.rb:277:in `join'' unicorn (4.6.2) bin/unicorn_rails:209:in `<top (required)>'' /home/john/.rvm/gems/ruby-2.0.0-p0@rails-4/bin/unicorn_rails:23:in `load'' /home/john/.rvm/gems/ruby-2.0.0-p0@rails-4/bin/unicorn_rails:23:i...
2010 May 28
4
unicorn failing to start
...rs'' from /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-0.99.0/lib/unicorn.rb:598:in `each'' from /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-0.99.0/lib/unicorn.rb:598:in `spawn_missing_workers'' from /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-0.99.0/lib/unicorn.rb:612:in `maintain_worker_count'' from /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-0.99.0/lib/unicorn.rb:408:in `block in join'' from /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-0.99.0/lib/unicorn.rb:396:in `loop'' from /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-0.99.0/lib/unicorn.rb:396:in `join'&...
2013 Dec 09
2
[PATCH] rework master-to-worker signaling to use a pipe
...fork = nil @@ -517,6 +514,7 @@ class Unicorn::HttpServer before_fork.call(self, worker) if pid = fork WORKERS[pid] = worker + worker.atfork_parent else after_fork_internal worker_loop(worker) @@ -531,9 +529,7 @@ class Unicorn::HttpServer def maintain_worker_count (off = WORKERS.size - worker_processes) == 0 and return off < 0 and return spawn_missing_workers - WORKERS.dup.each_pair { |wpid,w| - w.nr >= worker_processes and kill_worker(:QUIT, wpid) rescue nil - } + WORKERS.each_value { |w| w.nr >= worker_processes and w.soft_...
2013 Nov 05
4
Handling closed clients
We have a service that clients use to upload files. We have a couple of clients that are on slow links and so their upload times out. We get errors in the logs that I''d like to get rid of. I was hoping that the recent commit 24b9f66dcdda44378b4053645333ce9ce336b413 would help us, but it does not. After digging in a bit, I have some ideas about why and a patch I''d like comments
2010 Jun 02
8
Read error: #<TypeError: can't modify frozen string> raised from HttpParser
...lib/unicorn.rb:602:in `spawn_missing_workers'' /usr/lib/ruby/gems/1.8/gems/unicorn-0.99.0/lib/unicorn.rb:598:in `each'' /usr/lib/ruby/gems/1.8/gems/unicorn-0.99.0/lib/unicorn.rb:598:in `spawn_missing_workers'' /usr/lib/ruby/gems/1.8/gems/unicorn-0.99.0/lib/unicorn.rb:612:in `maintain_worker_count'' /usr/lib/ruby/gems/1.8/gems/unicorn-0.99.0/lib/unicorn.rb:276:in `start'' /usr/lib/ruby/gems/1.8/gems/unicorn-0.99.0/lib/unicorn.rb:28:in `run'' /usr/lib/ruby/gems/1.8/gems/unicorn-0.99.0/bin/unicorn_rails:203 /usr/bin/unicorn_rails:26:in `load'' /usr/bin/unicorn_r...