El Martes, 5 de Enero de 2010, Iñaki Baz Castillo escribió:
The second workaround is exactly what Unicorn does when calling to
stderr_path (redirect_io method). So, why doesn't work for me without
the hacks? do I miss something?
By running 'exec ls -l /proc/$$/fd' after 'stderr_path' I've
Iñaki Baz Castillo i...@aliax.net wrote:
El Martes, 5 de Enero de 2010, Iñaki Baz Castillo escribió:
The second workaround is exactly what Unicorn does when calling to
stderr_path (redirect_io method). So, why doesn't work for me without
the hacks? do I miss something?
By running
Hi,
I am running unicorn with rails and memcached. The combination usually
works flawlessly but sometimes when I retrieve an item from memcached i
get a different, unrelated item.
At the moment I'm more or less investigating in all directions and after
reading
Stefan Maier stefanma...@gmail.com wrote:
Hi,
I am running unicorn with rails and memcached. The combination usually
works flawlessly but sometimes when I retrieve an item from memcached i
get a different, unrelated item.
At the moment I'm more or less investigating in all directions and
Am 1/5/10 11:34 PM, schrieb Eric Wong:
Stefan Maier stefanma...@gmail.com wrote:
Hi,
I am running unicorn with rails and memcached. The combination usually
works flawlessly but sometimes when I retrieve an item from memcached i
get a different, unrelated item.
At the moment I'm more or
El Martes, 5 de Enero de 2010, Eric Wong escribió:
So I'm totally lost. However if I test my databases in before_fork then
I see N number of DB connections (N = workers num).
How are you testing the database? `` or via Ruby code?
I use Ruby Sequel ORM.
I've also added the following code
El Martes, 5 de Enero de 2010, Eric Wong escribió:
Iñaki Baz Castillo i...@aliax.net wrote:
El Martes, 5 de Enero de 2010, Iñaki Baz Castillo escribió:
The second workaround is exactly what Unicorn does when calling to
stderr_path (redirect_io method). So, why doesn't work for me
Iñaki Baz Castillo i...@aliax.net wrote:
El Martes, 5 de Enero de 2010, Eric Wong escribió:
So I'm totally lost. However if I test my databases in before_fork then
I see N number of DB connections (N = workers num).
How are you testing the database? `` or via Ruby code?
I use Ruby
El Martes, 5 de Enero de 2010, Iñaki Baz Castillo escribió:
I confirm that there are two lines printed in that file when Unicorn starts
(being 2 the number of workers). Is it the expected behavior?
Simpler example:
-
worker_processes 3
before_fork do |server, worker|
puts
El Martes, 5 de Enero de 2010, Eric Wong escribió:
Yes, before_fork and after_fork are both called for every worker forked.
So if I just want to test a DB connection then I do better wrtitting such code
out of before_fork in the config file, right? (at least it's the workaround
that works for
El Miércoles, 6 de Enero de 2010, Eric Wong escribió:
Iñaki Baz Castillo i...@aliax.net wrote:
El Martes, 5 de Enero de 2010, Eric Wong escribió:
Yes, before_fork and after_fork are both called for every worker
forked.
So if I just want to test a DB connection then I do better
Iñaki Baz Castillo i...@aliax.net wrote:
El Miércoles, 6 de Enero de 2010, Eric Wong escribió:
Iñaki Baz Castillo i...@aliax.net wrote:
El Martes, 5 de Enero de 2010, Eric Wong escribió:
Yes, before_fork and after_fork are both called for every worker
forked.
So if I just want
12 matches
Mail list logo