unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Laas Toom <laas@toom.ee>
To: mongrel-unicorn@rubyforge.org
Subject: Re: COW friendly GC and PostgreSQL
Date: Thu, 1 Dec 2011 17:32:15 +0200	[thread overview]
Message-ID: <DBEC3493-E084-42B8-BD2E-B54B1E819102@toom.ee> (raw)
In-Reply-To: <A735B08F-9B63-474B-A596-E8E71B512BB7@eenet.ee>

> If you didn't disconnect the database connection before forking, that
> could be the cause of the problem, though you should have issues
> regardless of whether the GC is CoW or not.  Did you just turn off
> CoW, or did you turn off preload_app as well?

Totally my mistake - I had copied the example config from web and because of mis-indenting (as seen in my conf) I misread it and interpreted it in my mind as:

preload_app(true) do
...
end

Taking it for 'before loading app'
And that is why I ignored the preload_app and blamed the COW, which of course did not have anything to do with my problem.

Plainly RTFM for me here!

> Looking at your config file, try adding a before_fork callback that
> disconnects the database connection and things may work fine.

Adding before_fork and after_fork as shown in example conf, the problem dissapeared.

Thank you and sorry for the disturbance.

Best,
Laas
_______________________________________________
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

      parent reply	other threads:[~2011-12-01 15:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-30 15:24 COW friendly GC and PostgreSQL Laas Toom
2011-11-30 20:54 ` Jeremy Evans
2011-12-01 15:32 ` Laas Toom [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DBEC3493-E084-42B8-BD2E-B54B1E819102@toom.ee \
    --to=laas@toom.ee \
    --cc=mongrel-unicorn@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).