Hi Roy,
I created small rack middleware but it could not be perfect solution.
I cannot redirect to any controller to handle the exception. All
controllers are infected. No matter what they do. Even if they do not
call database at all, they are broken if database is off.
All I can do is redirect to static page, or to different server, or
exchange database connection with another one, e.g. SQLite3.
On the other side, Merb can propagate such exception up to controllers
so it can be handled. But not Rails. No matter what version you use.
All are broken. This is lame.
On 31 Lip, 02:35, Roy Wright <
r...@wright.org> wrote:
> Maybe handle exception with rack?
>
> Also maybe host on a high availability system (cluster) like pacemaker/corosync with hot (postgresql) database failover.
>
> A free society is a single class society where everyone has the same rights.
>
> On Jul 30, 2010, at 5:14 PM, hipertracker <
hipertrac...@gmail.com> wrote:
>
> > My want is to create fault-tolerant, self healing web application. It
> > means, situation when the application fails (with some weird errors on
> > the screen) should be *unacceptable*. Every exception should be
> > captured and handled by the application.
>
> > Everybody knows this is impossible in PHP (fatal errors cannot be
> > captured by any code). But not everybody aware that Rails is like PHP
> > here. If MySQL is down, Rails application raises exception which....
> > cannot be handled by any its controllers. This exception is not
> > propagated to them at all by the framework. I even created a ticket
> >
http://bit.ly/cIQRTythinking this was Rails 3.0RC only error. But