Rails 如何解决数据库挂掉,其他不依赖数据库的功能依然可用?

mojidong · May 16, 2013 · Last by mojidong replied at May 17, 2013 · 2337 hits

controller 中

def search
      # 搜索服务,solr,sphinx之类
end

def login
     # 登陆,需要访问数据
end

数据库挂了,search 居然也不可用,这太不科学了,求解!

查资料没有发现能通过配置解决。。。难道要 hack

#1 楼 @mojidong 请问你数据库挂了,亲要从哪里 search?直接在你深深的脑海里搜索吗?

@Victor 从搜索引擎,这个和数据库没关系

You need to Sign in before reply, if you don't have an account, please Sign up first.