On Tue, Dec 10, 2013 at 10:44 PM, Petteri Räty betelge...@gentoo.org wrote:
At least for pid based monitoring tools it is (I do agree with others
that you should also be monitoring http though). For example monit
requires that you give it a pid file. Why is it wrong for them to point
to the
On 26.11.2013 3.20, Eric Wong wrote:
I think the way 4.6.2 worked is better. There should be a pid file for
the new master process the moment it's created.
What do you think?
How about having the old process create a hard link to .oldbin,
and having the new one override the pid if
Petteri Räty betelge...@gentoo.org wrote:
On 26.11.2013 3.20, Eric Wong wrote:
How about having the old process create a hard link to .oldbin,
and having the new one override the pid if Process.ppid == pid file?
The check is still racy, but that's what pid files are :
Isn't it possible
On 10.12.2013 21.52, Eric Wong wrote:
Petteri Räty betelge...@gentoo.org wrote:
On 26.11.2013 3.20, Eric Wong wrote:
How about having the old process create a hard link to .oldbin,
and having the new one override the pid if Process.ppid == pid file?
The check is still racy, but that's what
Signaling using normal kill(2) is preserved, but the master now
prefers to signal workers using a pipe rather than kill(2).
Non-graceful signals (:TERM/:KILL) are still sent using kill(2),
as they ask for immediate shutdown.
This change is necessary to avoid triggering the ubf (unblocking
Changes since 4.7.0:
Eric Wong (6):
tests: fix SO_REUSEPORT tests for old Linux and non-Linux
stream_input: avoid IO#close on client disconnect
t0300: kill off stray processes in test
always write PID file early for compatibility
doc: clarify SIGNALS and reference
Sam Saffron sam.saff...@gmail.com wrote:
Bottom line is that your change is not really required.
OK. However, the other benefit of the change is that master process
death can be detected much sooner. (The per-process open file limit
issue doesn't really bother me with my change, since the
Сделайте бесценный вклад В состояние своих глаз http://goo.gl/sQwdEH
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
require 'pg'
conn = PG.connect(dbname: 'meta')
trap 'USR1' do
puts YAY
end
Thread.new do
sleep 0.1
Process.kill(USR1, Process.pid)
end
sleep 1
puts HERE
Thread.new do
sleep 0.1
Process.kill(USR1, Process.pid)
end
conn.exec(select pg_sleep(10))
sam@ubuntu:~/Source$ ruby test2.rb
Sam Saffron sam.saff...@gmail.com wrote:
1. Is this a pg bug? How could they even implement a ubf in such a way
that it does not stop queries when signals are sent? The main issue is
that without this Thread.kill will have to wait for queries to finish.
No, not a pg bug. pg needs to account
yeah, mysql appears to be using the default ubf which simply forces
your thread to be scheduled
https://github.com/brianmario/mysql2/blob/a9787cbb88f18d12f0b5c370c519d077ad68c862/ext/mysql2/result.c#L203
I think it would be cool to change unicorn to perform all the master /
worker coordination
Oy,
On Tue, Nov 26, 2013 at 8:14 PM, Michael Fischer mfisc...@zendesk.com wrote:
On Tue, Nov 26, 2013 at 10:35 AM, Rodrigo Rosenfeld Rosas
rr.ro...@gmail.com wrote:
I'd provide one if I could figure out some good way to automate this.
Currently I perform all steps manually in production for
до недавнего по времени это находилось невыполнимой мечтой. http://goo.gl/0BfPSc
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when
For a long time I struggle to understand this part:
http://unicorn.bogomips.org/SIGNALS.html
3. You can now send WINCH to the old master process so only the new
workers serve requests. If your unicorn process is bound to an
interactive terminal, you can skip this step.
I asked a teammate
Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote:
For a long time I struggle to understand this part:
http://unicorn.bogomips.org/SIGNALS.html
3. You can now send WINCH to the old master process so only the new
workers serve requests. If your unicorn process is bound to an
interactive
Em 26-11-2013 16:04, Eric Wong escreveu:
Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote:
For a long time I struggle to understand this part:
http://unicorn.bogomips.org/SIGNALS.html
3. You can now send WINCH to the old master process so only the new
workers serve requests. If your unicorn
On Tue, Nov 26, 2013 at 10:35 AM, Rodrigo Rosenfeld Rosas
rr.ro...@gmail.com wrote:
I'd provide one if I could figure out some good way to automate this.
Currently I perform all steps manually in production for zero downtime and
only manage the other environments with Capistrano, except when I
Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote:
I see. If I understood correctly this only happens in foreground
mode, so something like that would help me to understand the
sentence:
...If your unicorn process is bound to an interactive terminal
(running in the foreground), you can skip
Hi Eric,
Since we upgraded from 4.6.2 to 4.7.0 we're regularly having issues
where one or more unicorn master processes would not upgrade
correctly, resulting in an (old) master process.
What I notice is the following: when upgrading with 4.6.2 the file
unicorn.pid is copied to
Jimmy Soho jimmy.s...@gmail.com wrote:
Hi Eric,
Since we upgraded from 4.6.2 to 4.7.0 we're regularly having issues
where one or more unicorn master processes would not upgrade
correctly, resulting in an (old) master process.
What I notice is the following: when upgrading with 4.6.2 the
On Mon, Nov 25, 2013 at 5:20 PM, Eric Wong normalper...@yhbt.net wrote:
What I notice is the following: when upgrading with 4.6.2 the file
unicorn.pid is copied to unicorn.pid.oldbin and the unicorn.pid file
is updated (the (new) master process). After a while the worker pid
files are updated
On Mon, Nov 25, 2013 at 5:00 PM, Jimmy Soho jimmy.s...@gmail.com wrote:
I think the problem for us is caused by monit, our process monitor,
which monitors the unicorn.pid file:
check process unicorn with pidfile
/srv/app.itrp-staging.com/shared/pids/unicorn.pid
start program =
Hello,
Thank you very much for Unicorn. I'm working on packaging the gem for
Fedora [1]. Our rpmlint tool found that the permissions of the
ChangeLog and NEWS files were set to 0600 (instead of something more
liberal like 0644).
I see this is fixed upstream in wrongdoc [2], and released in
Ken Dreyer ktdre...@ktdreyer.com wrote:
Would you mind using the newer version of wrongdoc when you release
the next version of Unicorn?
Oops, will do. Just upgraded the build/release machine :x
Thanks for the catch.
___
Unicorn mailing list -
та или другая дама будет от Вас в экстазе http://goo.gl/8HZBDX
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
Вернуть зрение – для многих поистине мечта! Но наука здесь не стоит на месте.
Есть различные варианты восстановления зрения, но многие из них, как бы страшно
это ни звучало, постепенно УБИВАЮТ НАШЕ ЗРЕНИЕ… Это нельзя назвать лечением.
Очки и линзы являются лишь заменителями идеального зрения!
Любая дама будет от Вас в фуроре http://goo.gl/MlFrRy
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
Hello!
I have a Rails monolith and have identified a few parts which can be chipped
off and deployed as self-contained services, called by the monolith.
Each service will be a rack app presenting an API over HTTP. For now
everything will run on the same box. The services shouldn't be exposed
Andrew Stewart b...@airbladesoftware.com wrote:
Hello!
I have a Rails monolith and have identified a few parts which can be
chipped off and deployed as self-contained services, called by the
monolith.
Each service will be a rack app presenting an API over HTTP. For now
everything will
Eric Wong normalper...@yhbt.net wrote:
Joe Van Dyk j...@tanga.com wrote:
Just sent this via gmail. Any ideas why I got this error?
It contained an HTML portion which Mailman couldn't strip or handle.
Forwarding to the list for now[1]
[1] - I forgot the footnote from the earlier email:
Ваша жизнь будет достойнее. жизнь может сделаться намного позанятнее. Хотите
иметься Зрячим? http://goo.gl/RGfnWH
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures
xMzRIPfB0yDSwdPQwcjO1dTT0SDuxc/C2d7O2cUgzc/ewSDUwcsg1sUsIMEg1MHLINbFIMLPzMXF
IM7FIMLVxMXUINDPzcXIISBodHRwOi8vZ29vLmdsL3BhNU16Vw0K
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote
(Please don't cull Cc:, I'm assuming you're not subscribed to the
mailing list since we don't require subscriptions)
Andrew Hobson ahob...@gmail.com wrote:
Eric Wong normalper...@yhbt.net writes:
Those clients should really be hitting nginx, first.
I apologize for not being clear. They
Andrew Hobson ahob...@gmail.com wrote:
Eric Wong normalper...@yhbt.net writes:
(Please don't cull Cc:, I'm assuming you're not subscribed to the
mailing list since we don't require subscriptions)
Sorry, that was unintentional.
No worries, and it is good to also send a copy to each
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
Andrew Hobson ahob...@gmail.com wrote:
On both my machines, it is commit 7c125886b5862bf20711bae22e6697ad46141434
that breaks the tests.
: Finished tests in 0.041678s, 263.9282 tests/s, 1943.4714 assertions/s.
:
: 1) Failure:
: test_reuseport(TestSocketHelper)
On Monday, November 4, 2013 at 1:37 PM, Eric Wong wrote:
I can't use .bool for Ruby 1.8, unfortunately.
I've just use assert_operator in my proposed patch below.
Thank you! Your patch fixes the problem on both systems.
--drew
___
Unicorn mailing
http://school.phatthalung1.go.th/bantungchumpol/blog-song/?uid6308531
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
* git://bogomips.org/unicorn.git
* http://unicorn.bogomips.org/NEWS.atom.xml
Changes:
* support SO_REUSEPORT on new listeners (:reuseport)
This allows users to start an independent instance of unicorn on
a the same port as a running unicorn (as long as both instances
use :reuseport).
ref:
On Fri, Nov 1, 2013 at 12:50 PM, Eric Wong normalper...@yhbt.net wrote:
Ernest W. Durbin III ewdur...@gmail.com wrote:
This renables the ability for Ruby 1.8 environments to perform reexecs
Is this for Ruby 1.8.6? I've only tested on 1.8.7,
I haven't had a 1.8.6 installation in a while.
Ernest W. Durbin III ewdur...@gmail.com wrote:
On Fri, Nov 1, 2013 at 12:50 PM, Eric Wong normalper...@yhbt.net wrote:
Ernest W. Durbin III ewdur...@gmail.com wrote:
This renables the ability for Ruby 1.8 environments to perform reexecs
Is this for Ruby 1.8.6? I've only tested on 1.8.7,
On Fri, Nov 1, 2013 at 2:54 PM, Eric Wong normalper...@yhbt.net wrote:
Ernest W. Durbin III ewdur...@gmail.com wrote:
On Fri, Nov 1, 2013 at 12:50 PM, Eric Wong normalper...@yhbt.net wrote:
Ernest W. Durbin III ewdur...@gmail.com wrote:
This renables the ability for Ruby 1.8 environments to
Ernest W. Durbin III ewdur...@gmail.com wrote:
Gist containing configs and logs:
https://gist.github.com/ewdurbin/1d9d2ea14a4231a5e7cc
I was stumped until I saw your command-line:
-p, /var/run/marketing-staging/unicorn.pid
PID file path is '-P' (but we recommend using the config file for
On Fri, Nov 1, 2013 at 4:07 PM, Eric Wong normalper...@yhbt.net wrote:
Ernest W. Durbin III ewdur...@gmail.com wrote:
Gist containing configs and logs:
https://gist.github.com/ewdurbin/1d9d2ea14a4231a5e7cc
I was stumped until I saw your command-line:
-p,
In case we (and Linux) supports other values in the future,
we can update it then. Until now, ensure users only set
true or false for this option.
---
lib/unicorn/configurator.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/unicorn/configurator.rb
Hongli Lai hon...@phusion.nl wrote:
On Sat, Oct 26, 2013 at 9:58 AM, Eric Wong normalper...@yhbt.net wrote:
There is currently no GPLv4, so this change has no effect at the
moment.
In case the GPLv4 arrives and I am not alive to approve/review it,
the lesser of evils is have give
The only reason for this level of crazy is to get the 30% memory
saving you do when forking off a master in Ruby 2.0s CoW friendly GC.
I understand this is less traditional, but perfectly acceptable for
low cost VPS hosting.
The unicorn master does reap/terminate the child fork on startup, so
you
This allows users to start an independent instance of unicorn on
a the same port as a running unicorn (as long as both instances
use :reuseport).
ref: https://lwn.net/Articles/542629/
---
lib/unicorn/configurator.rb | 19 +++
lib/unicorn/socket_helper.rb| 30
Nice, will try this out, thank you
On Sat, Oct 26, 2013 at 7:44 AM, Eric Wong normalper...@yhbt.net wrote:
Sam Saffron sam.saff...@gmail.com wrote:
The only reason for this level of crazy is to get the 30% memory
saving you do when forking off a master in Ruby 2.0s CoW friendly GC.
I
это поприличнее безразлично какого учителя
http://thesteelunicorn.com/wp-content/plugins/wp_sed/yvftb.htm
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this
Hi Eric,
I have been trying to get unicorn to allow me to fork off non-web
processes like sidekiq/resque.
I got this working, except that I am constantly fighting with the
unicorn reaper. Any chance we can add some sort of api to fork off non
web processes? It helps save memory and cut down on
Sam Saffron sam.saff...@gmail.com wrote:
Hi Eric,
I have been trying to get unicorn to allow me to fork off non-web
processes like sidekiq/resque.
I got this working, except that I am constantly fighting with the
unicorn reaper. Any chance we can add some sort of api to fork off non
web
On Thu, Oct 24, 2013 at 9:17 AM, Eric Wong normalper...@yhbt.net wrote:
I'm also wondering why... sidekiq/resque are standalone daemons
themselves. Shouldn't that be done as part of the deploy/init process?
(unicorn isn't going to become init/upstart/systemd)
Agree with Eric here. You
On Wed, Oct 23, 2013 at 7:03 PM, Eric Wong normalper...@yhbt.net wrote:
I read and stash the value of the pid file before issuing any USR2.
Later, you can issue kill -0 $old_pid after sending SIGQUIT
to ensure it's dead.
That's inherently racy; another process can claim the old PID in the
Michael Fischer mfisc...@zendesk.com wrote:
On Wed, Oct 23, 2013 at 7:03 PM, Eric Wong normalper...@yhbt.net wrote:
I read and stash the value of the pid file before issuing any USR2.
Later, you can issue kill -0 $old_pid after sending SIGQUIT
to ensure it's dead.
That's inherently
On Thu, Oct 24, 2013 at 11:21 AM, Eric Wong normalper...@yhbt.net wrote:
Right, we looked at using rename last year but I didn't think it's possible
given we need to write the pid file before binding new listen sockets
http://mid.gmane.org/20121127215146.ga23...@dcvr.yhbt.net
But perhaps
Hi.
I'm having an issue using unicorn with bundler on a rails ap deployed by
capistrano
Im using bundler 1.3.5 (tried 1.4rc0 also) I'm deploying with
capistrano, version is irrelevant, the issue hit me when keep releases
is reached and 'current' symlink where bundle unicorn process was
initially
Carlos Peñas theist...@gmx.com wrote:
Hi.
I'm having an issue using unicorn with bundler on a rails ap deployed by
capistrano
Im using bundler 1.3.5 (tried 1.4rc0 also) I'm deploying with
capistrano, version is irrelevant, the issue hit me when keep releases
is reached and 'current'
Michael Fischer mfisc...@zendesk.com wrote:
Hi everyone,
While writing a script to determine the success or failure of a
Unicorn reload attempt (without having to parse a log), I noticed that
Unicorn doesn't preserve the timestamp of its pid file. In other
words, instead of renaming
Michael Fischer mfisc...@zendesk.com wrote:
On Wed, Oct 23, 2013 at 5:53 PM, Eric Wong normalper...@yhbt.net wrote:
I read and stash the value of the pid file before issuing any USR2.
Later, you can issue kill -0 $old_pid after sending SIGQUIT
to ensure it's dead.
That's inherently
In multithreaded apps, we must use dup2/dup3 with a temporary
descriptor to reopen log files atomically. This is the only way
to protect all concurrent userspace access to a file when reopening.
ref: http://bugs.ruby-lang.org/issues/9036
ref: yahns commit bcb10abe53cfb1d6a8ef7daef59eb10ced397c8a
hello,
i recently set up a new server upon which i installed nginx to try it out (and
which i have been quite happy with since).
my website is mostly static with some small cgi areas, and i like to use ruby
for the cgi. when i did my research for the best ruby cgi handler for nginx,
unicorn
nomad Bellcam damonswir...@hotmail.com wrote:
my website is mostly static with some small cgi areas, and i like to
use ruby for the cgi. when i did my research for the best ruby cgi
handler for nginx, unicorn figured prominently in my results, and so i
became interested in trying it. i spent
69LFxMnUIMTFztjHwc3JIM3Hzs/Xxc7OzyDBINTByyDWxSDQ0s/T1M8gaHR0cDovL3lvbW90by5y
dS9lbmdpbmUvcmVkaXJlY3QucGhwP3VybD1odHRwOi8vaGlqdy5jb20vYzE3ODg0DQo=
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
n...@auger.net wrote:
We're still suffering from unexplained workers timing out. We
recently upgraded to the latest unicorn 4.6.3 (while still on REE
1.8.7) in the hopes that it would solve our issues. Unfortunately,
this seemed to exacerbate the problem, with timeouts happening more
http://hotindienews.com/images/_flashgames/?v1891464
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
Do you have anything in your Rack app which does background processing
of rack.input after the response is written?
That would be the most likely explanation...
Not that I'm aware of, and I can't find any references to rack.input
in our codebase aside from the monkeypatch.
If varnish is
Hi all, I'm wondering if folks find per-worker listeners useful for
unicorn.
When I started unicorn back in 2009, I thought it would be a very useful
feature, but really haven't used it since 2009...
The main problem is the necessity of the :tries/:delay parameters
when restarting workers, and
On Sep 25, 2013, at 3:46 PM, Eric Wong normalper...@yhbt.net wrote:
Hi all, I'm wondering if folks find per-worker listeners useful for
unicorn.
One time, I made a few inspection calls for individual workers, to collect
statistics on memory usage and object allocation and in-memory cache and
I'm getting IOError: closed stream from inside Unicorn occasionally
and I don't know what to make of it. The stack trace looks like this:
unicorn (4.5.0) lib/unicorn/stream_input.rb:129:in `kgio_read' unicorn
(4.5.0) lib/unicorn/stream_input.rb:129:in `read_all' unicorn (4.5.0)
David Judd da...@academia.edu wrote:
I'm getting IOError: closed stream from inside Unicorn occasionally
and I don't know what to make of it. The stack trace looks like this:
unicorn (4.5.0) lib/unicorn/stream_input.rb:129:in `kgio_read' unicorn
(4.5.0) lib/unicorn/stream_input.rb:129:in
посодействует Вам неизменно пребывать красивой каждый период, целый год
http://uco.me/933447
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top
Aman Gupta a...@tmm1.net wrote:
Thanks for the patch!
I expect a commit message body to describe why it is useful.
In particular, what benefit does this have over putting the same
code in config.ru or config/initializer.rb (or similar?)
For user-visible config changes like these, it can be
In particular, what benefit does this have over putting the same
code in config.ru or config/initializer.rb (or similar?)
With my patch, preload_app yields a rack app object which includes the
middleware stack. AFAIK there's no way to do this in the context of
config.ru, since the app is still
Натуральное снадобье для похудания http://goo.gl/Qx3YDr
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
Dear Partner,
Good day to you, I am Lasha Morchiladze the personal assistant to Georgian
president Mikheil Saakashvili. Our regime is about to over and the new Prime
Minister Bidzina Ivanishvili planed to jail us for causing 2008 war of which we
stole a lot of money.
I want to send all my
All tests seem to pass.
---
0c2213dfe23f177c91d76c0c70aec5a01f5a7f55 in master of
git://bogomips.org/unicorn.git
script/isolate_for_tests | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/script/isolate_for_tests b/script/isolate_for_tests
index d6f5913..63df48e 100755
Eric Wong normalperson at yhbt.net writes:
OK, this is really strange; especially since you're only hitting this
on your legacy app and not a new one.
I certainly haven't hit this with Ruby 2.0.0 anywhere (neither unicorn
nor Rainbows!). I'm fairly certain enough folks are using Ruby 2.0.0
Eric Chapweske e...@zendesk.com wrote:
We ran into the same issue. For us, it was because we were executing the
process using bundle exec. Bundler doesn't preserve the 1.9 behavior around
FD inheritance. https://github.com/bundler/bundler/issues/2628
Thanks Eric! I just pushed out the
Eric Wong normalperson at yhbt.net writes:
Did you upgrade to Ruby 2.0.0 before upgrading to unicorn 4.1+?
we've been running a unicorn 4.6.3 setup on ruby 1.9.3 for quite a while
with no similar issues. i'll keep digging through our lifecycle config
to see if i can get closer to the cause.
port port.himmerl...@icloud.com wrote:
Eric Wong normalperson at yhbt.net writes:
Did you upgrade to Ruby 2.0.0 before upgrading to unicorn 4.1+?
we've been running a unicorn 4.6.3 setup on ruby 1.9.3 for quite a while
with no similar issues. i'll keep digging through our lifecycle config
Eric Wong normalper...@yhbt.net said:
Jimmy Soho jimmy.s...@gmail.com wrote:
fwiw, we experience this too irregularly, about once a week or 2 weeks
for a few seconds, and sometimes up to a minute or 2 minutes long. for
no apparent reasons indeed. and at random times.
Wait, based on what
Thank you for your answer Eric.
Using Rack::Timeout with Rainbows! instead of unicorn is probably a
better idea.
99% of the requests are fast and can be served far below 300 ms. Only
a few type of requests need to stream lots of data. Do you really think that
unicorn isn't a good choice in
Maybe you can use a combination. Use Nginx location blocks to forward
most requests to Unicorn, and forward the streaming URLs to Passenger
Enterprise/Rainbows/Puma/etc.
On Thu, Aug 22, 2013 at 5:26 PM, Nokan Emiro uzleep...@gmail.com wrote:
Thank you for your answer Eric.
Using Rack::Timeout
Nokan Emiro uzleep...@gmail.com wrote:
Thank you for your answer Eric.
Using Rack::Timeout with Rainbows! instead of unicorn is probably a
better idea.
99% of the requests are fast and can be served far below 300 ms. Only
a few type of requests need to stream lots of data. Do you
n...@auger.net wrote:
Eric Wong normalper...@yhbt.net said:
Jimmy Soho jimmy.s...@gmail.com wrote:
Is a response send back by rails / unicorn fully buffered by nginx? Or
is a unicorn worker blocked until the response is confirmed to have
been successfully received by the client?
hi. i've been trying to upgrade my stack to ruby 2.0 but keep getting this on
ubuntu (not on my local os x):
/hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:746:in
`for_fd': Bad file descriptor (Errno::EBADF)
from
Port Himmerland port.himmerl...@icloud.com wrote:
hi. i've been trying to upgrade my stack to ruby 2.0 but keep getting this on
ubuntu (not on my local os x):
/hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:746:in
`for_fd': Bad file descriptor (Errno::EBADF)
Nokan Emiro uzleep...@gmail.com wrote:
Hi guys,
I am working on a Rails app that needs to stream some data to the user and
I have just found out that Unicorn's timeout feature doesn't respect
streaming.
Content generation is interrupted by Unicorn after the timeout is over. I
had to
Jimmy Soho jimmy.s...@gmail.com wrote:
fwiw, we experience this too irregularly, about once a week or 2 weeks
for a few seconds, and sometimes up to a minute or 2 minutes long. for
no apparent reasons indeed. and at random times.
Wait, based on what you say below, is this happening to unicorn
We've been running unicorn-3.6.2 on REE 1.8.7 2011.12 in production for quite
some time and we use monit to monitor each unicorn worker. Occasionally, I'll
get a notification that a worker has timed-out and has been re-spawned. In all
these cases, when I look at the rails logs, I can see the
Eric Wong normalper...@yhbt.net said:
Can you take a look at the nginx error and access logs? From what
you're saying, there's a chance a request never even got to the Rails
layer. However, nginx should be logging failed/long-running requests to
unicorn.
The nginx access logs show frequent
n...@auger.net wrote:
Eric Wong normalper...@yhbt.net said:
Can you take a look at the nginx error and access logs? From what
you're saying, there's a chance a request never even got to the Rails
layer. However, nginx should be logging failed/long-running requests to
unicorn.
The
n...@auger.net wrote:
Eric Wong normalper...@yhbt.net said:
Do you have any other requests in your logs which could be taking
a long time and hogging workers, but not high enough to trigger the
unicorn kill timeout.
I don't *think* so. Most requests finish 300ms. We do have some
n...@auger.net wrote:
Eric Wong normalper...@yhbt.net said:
This is really strange. This was only really bad for a 7s period?
It was a 7 minute period. All of the workers would become busy and
exceed their 120s timeout. Master would kill and re-spawn them,
they'd start to respond to a
Eric Wong normalper...@yhbt.net said:
n...@auger.net wrote:
Eric Wong normalper...@yhbt.net said:
This is really strange. This was only really bad for a 7s period?
It was a 7 minute period. All of the workers would become busy and
exceed their 120s timeout. Master would kill and
n...@auger.net wrote:
Eric Wong normalper...@yhbt.net said:
n...@auger.net wrote:
Eric Wong normalper...@yhbt.net said:
I'm stumped :
I was afraid you'd say that :(.
Actually, another potential issue is DNS lookups timing out. But they
shouldn't take *that* long...
Do you have any
откорректируйте зрение без операционным рецептом http://2.ht/xvr2
___
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
The following changes since commit 2f5174d4ca9764313d6be4c092e9e6c2e4f9d1e1:
unicorn 4.6.3 - fix --no-default-middleware option (2013-06-21 08:00:09 +)
are available in the git repository at:
git://bogomips.org/unicorn.git master
for you to fetch changes up to
As of r40610 in ruby trunk, internal encoding is ignored if
external coding is ASCII-8BIT (binary)
ref: r40610 http://svn.ruby-lang.org/repos/ruby/trunk
---
test/unit/test_util.rb | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/test/unit/test_util.rb
101 - 200 of 1098 matches
Mail list logo