My rails app connects to 2 databases a local one and a remote one. No
problems there… The problem is that the remote database may or may not
available at any given time. My problem: when the remote db is
any time my code tries to query the remote database it hangs for a few
minutes until it times-out. I would very much like to change the
value to something lower so my rails app can continue to operate at
semi-normally while the remote db is unavailable.
i tried using verification_timeout, not sure if i did something wrong
didn’t work… tried Mysql::OPT_CONNECT_TIMEOUT (or something like that)
that didn’t seem to do much either, again not sure if i used it right
have slim to none documentation)… lastly i tried wrapping different
in a Timeout::timeout block (establish_connection, connect code in
connection_adapter code, etc etc) NO DICE…
can anybody help me with this issue?