Re: Issues with PID file renaming

2013-12-11 Thread Michael Fischer
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

Re: Issues with PID file renaming

2013-12-10 Thread Petteri Räty
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

Re: Issues with PID file renaming

2013-12-10 Thread Eric Wong
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

Re: Issues with PID file renaming

2013-12-10 Thread Petteri Räty
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

[PATCH] rework master-to-worker signaling to use a pipe

2013-12-09 Thread Eric Wong
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

[ANN] unicorn 4.8.0.pre1 prerelease gem

2013-12-09 Thread Eric Wong
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

Re: [PATCH] rework master-to-worker signaling to use a pipe

2013-12-09 Thread Eric Wong
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

Голубые, зеленые, светло-карие - Ваши глаза будут прекрасны и прекрасны

2013-12-07 Thread assistenza
Сделайте бесценный вклад В состояние своих глаз 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

unblock function in pg messes up with unicorn

2013-12-06 Thread Sam Saffron
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

Re: unblock function in pg messes up with unicorn

2013-12-06 Thread Eric Wong
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

Re: unblock function in pg messes up with unicorn

2013-12-06 Thread Sam Saffron
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

Re: What does it mean for the unicorn process to be bound to a terminal?

2013-11-28 Thread Pierre Baillet
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

Вы сумеете малозаметно для собеседника двигать его в угодное направленье

2013-11-26 Thread newsletter
до недавнего по времени это находилось невыполнимой мечтой. 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

What does it mean for the unicorn process to be bound to a terminal?

2013-11-26 Thread Rodrigo Rosenfeld Rosas
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

Re: What does it mean for the unicorn process to be bound to a terminal?

2013-11-26 Thread Eric Wong
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

Re: What does it mean for the unicorn process to be bound to a terminal?

2013-11-26 Thread Rodrigo Rosenfeld Rosas
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

Re: What does it mean for the unicorn process to be bound to a terminal?

2013-11-26 Thread Michael Fischer
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

Re: What does it mean for the unicorn process to be bound to a terminal?

2013-11-26 Thread Eric Wong
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

Issues with PID file renaming

2013-11-25 Thread Jimmy Soho
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

Re: Issues with PID file renaming

2013-11-25 Thread Eric Wong
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

Re: Issues with PID file renaming

2013-11-25 Thread Michael Fischer
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

Re: Issues with PID file renaming

2013-11-25 Thread Michael Fischer
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 =

permissions on ChangeLog and NEWS

2013-11-24 Thread Ken Dreyer
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

Re: permissions on ChangeLog and NEWS

2013-11-24 Thread Eric Wong
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 -

Экстаз У цыпочки гарантирован

2013-11-23 Thread jean-michel . rimbert
та или другая дама будет от Вас в экстазе 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

увидеть мир во всех его окрасках

2013-11-22 Thread laurencemc
Вернуть зрение – для многих поистине мечта! Но наука здесь не стоит на месте. Есть различные варианты восстановления зрения, но многие из них, как бы страшно это ни звучало, постепенно УБИВАЮТ НАШЕ ЗРЕНИЕ… Это нельзя назвать лечением. Очки и линзы являются лишь заменителями идеального зрения!

Наиболее Производительный метод доставить женщине удовлетворенье

2013-11-22 Thread gulia137
Любая дама будет от Вас в фуроре 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

Best way to deploy an internal Rack app?

2013-11-21 Thread Andrew Stewart
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

Re: Best way to deploy an internal Rack app?

2013-11-21 Thread Eric Wong
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

Re: Fwd: Zero-downtime deploys, signals, ruby-pg

2013-11-20 Thread Eric Wong
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:

Добрый день

2013-11-20 Thread vph
Ваша жизнь будет достойнее. жизнь может сделаться намного позанятнее. Хотите иметься Зрячим? http://goo.gl/RGfnWH ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures

для Вас объявятся Наиновейшие мочи, и больше не будет помех!

2013-11-12 Thread betik30
xMzRIPfB0yDSwdPQwcjO1dTT0SDuxc/C2d7O2cUgzc/ewSDUwcsg1sUsIMEg1MHLINbFIMLPzMXF IM7FIMLVxMXUINDPzcXIISBodHRwOi8vZ29vLmdsL3BhNU16Vw0K ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote

Re: Handling closed clients

2013-11-10 Thread Eric Wong
(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

Re: Handling closed clients

2013-11-10 Thread Eric Wong
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

Handling closed clients

2013-11-05 Thread Andrew Hobson
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

Re: Unicorn 4.7.0 tests fail on OSX 10.7.5 and debian squeeze

2013-11-04 Thread Eric Wong
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)

Re: Unicorn 4.7.0 tests fail on OSX 10.7.5 and debian squeeze

2013-11-04 Thread Andrew Hobson
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

ṿļᾌģṛᾌ

2013-11-03 Thread Terri Odum
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

[ANN] unicorn 4.7.0 - minor updates, license tweak

2013-11-03 Thread Eric Wong
* 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:

Re: [PATCH] construct listener_fds Hash in 1.8 compatible way

2013-11-01 Thread Ernest W. Durbin III
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.

Re: [PATCH] construct listener_fds Hash in 1.8 compatible way

2013-11-01 Thread Eric Wong
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,

Re: [PATCH] construct listener_fds Hash in 1.8 compatible way

2013-11-01 Thread Ernest W. Durbin III
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

Re: [ISSUE] Unicorn appears to be leaking TCP sockets

2013-11-01 Thread Eric Wong
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

Re: [ISSUE] Unicorn appears to be leaking TCP sockets

2013-11-01 Thread Ernest W. Durbin III
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,

[PATCH 2/1] configurator: validate :reuseport for boolean-ess

2013-10-28 Thread Eric Wong
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

Re: [PATCH] license: allow all future versions of the GNU GPL

2013-10-26 Thread Eric Wong
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

Re: Forking non web processes

2013-10-25 Thread Sam Saffron
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

[PATCH] support SO_REUSEPORT on new listeners (:reuseport)

2013-10-25 Thread Eric Wong
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

Re: Forking non web processes

2013-10-25 Thread Sam Saffron
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

Коль желателен устойчивейший эффект

2013-10-24 Thread katikstar
это поприличнее безразлично какого учителя 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

Forking non web processes

2013-10-24 Thread Sam Saffron
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

Re: Forking non web processes

2013-10-24 Thread Eric Wong
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

Re: Forking non web processes

2013-10-24 Thread Alex Sharp
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

Re: pid file handling issue

2013-10-24 Thread Michael Fischer
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

Re: pid file handling issue

2013-10-24 Thread Eric Wong
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

Re: pid file handling issue

2013-10-24 Thread Michael Fischer
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

Confused about restart/upgrade w. bundler and symlinks

2013-10-23 Thread Carlos Peñas
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

Re: Confused about restart/upgrade w. bundler and symlinks

2013-10-23 Thread Eric Wong
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'

Re: pid file handling issue

2013-10-23 Thread Eric Wong
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

Re: pid file handling issue

2013-10-23 Thread Eric Wong
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

[RFC] workaround reopen atomicity issues for stdio vs non-stdio

2013-10-19 Thread Eric Wong
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

unicorn simple cgi without rails

2013-10-10 Thread nomad Bellcam
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

Re: unicorn simple cgi without rails

2013-10-10 Thread Eric Wong
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

Кредит наличными мгновенно и просто

2013-10-02 Thread vmovekova
69LFxMnUIMTFztjHwc3JIM3Hzs/Xxc7OzyDBINTByyDWxSDQ0s/T1M8gaHR0cDovL3lvbW90by5y dS9lbmdpbmUvcmVkaXJlY3QucGhwP3VybD1odHRwOi8vaGlqdy5jb20vYzE3ODg0DQo= ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org

Re: More unexplained timeouts

2013-09-29 Thread Eric Wong
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

۷ῑḀɡṜḀ

2013-09-26 Thread Irvin Brigman
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

Re: IOError: closed stream

2013-09-26 Thread David Judd
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

usefulness of per-worker listeners?

2013-09-25 Thread Eric Wong
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

Re: usefulness of per-worker listeners?

2013-09-25 Thread Greg Hazel
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

IOError: closed stream

2013-09-24 Thread David Judd
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)

Re: IOError: closed stream

2013-09-24 Thread Eric Wong
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

Наиболее выигрышный лиф

2013-09-22 Thread iravav
посодействует Вам неизменно пребывать красивой каждый период, целый год 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

Re: [PATCH] preload_app can take an optional block for warmup

2013-09-21 Thread Eric Wong
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

Re: [PATCH] preload_app can take an optional block for warmup

2013-09-21 Thread Aman Gupta
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

подавляет чувствование голода

2013-09-15 Thread baldin-87
Натуральное снадобье для похудания 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

Re: Mistake in last email/my correct email

2013-09-14 Thread Mr. Lasha Morchiladze
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

[PATCH] tests: upgrade several gems (rack, kgio, raindrops)

2013-09-10 Thread Eric Wong
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

Re: Ruby 2.0 Bad file descriptor (Errno::EBADF)

2013-09-04 Thread Eric Chapweske
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

Re: Ruby 2.0 Bad file descriptor (Errno::EBADF)

2013-09-04 Thread Eric Wong
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

Re: Ruby 2.0 Bad file descriptor (Errno::EBADF)

2013-08-23 Thread port
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.

Re: Ruby 2.0 Bad file descriptor (Errno::EBADF)

2013-08-23 Thread Eric Wong
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

Re: A barrage of unexplained timeouts

2013-08-22 Thread nick
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

Re: HTTP streaming and Unicorn timeout

2013-08-22 Thread Nokan Emiro
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

Re: HTTP streaming and Unicorn timeout

2013-08-22 Thread Hongli Lai
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

Re: HTTP streaming and Unicorn timeout

2013-08-22 Thread Eric Wong
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

Re: A barrage of unexplained timeouts

2013-08-22 Thread Eric Wong
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?

Ruby 2.0 Bad file descriptor (Errno::EBADF)

2013-08-22 Thread Port Himmerland
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

Re: Ruby 2.0 Bad file descriptor (Errno::EBADF)

2013-08-22 Thread Eric Wong
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)

Re: HTTP streaming and Unicorn timeout

2013-08-21 Thread Eric Wong
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

Re: A barrage of unexplained timeouts

2013-08-21 Thread Eric Wong
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

A barrage of unexplained timeouts

2013-08-20 Thread nick
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

Re: A barrage of unexplained timeouts

2013-08-20 Thread nick
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

Re: A barrage of unexplained timeouts

2013-08-20 Thread Eric Wong
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

Re: A barrage of unexplained timeouts

2013-08-20 Thread Eric Wong
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

Re: A barrage of unexplained timeouts

2013-08-20 Thread Eric Wong
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

Re: A barrage of unexplained timeouts

2013-08-20 Thread nick
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

Re: A barrage of unexplained timeouts

2013-08-20 Thread Eric Wong
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

Безоперационное реанимирование зрения за |O дней

2013-08-17 Thread eva52180
откорректируйте зрение без операционным рецептом 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

[PATCH 0/2] minor improvements pushed to unicorn.git

2013-08-16 Thread Eric Wong
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

[PATCH 2/2] test_util: fix encoding test for Ruby trunk (2.1.0dev)

2013-08-16 Thread Eric Wong
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

<    1   2   3   4   5   6   7   8   9   10   >