Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Heroku 上部署了一个简单的 Ruby 应用程序,它使用 WebSolr 插件来支持searchable索引。如果当 WebSolr 关闭时,应用程序将停止工作并出现 503 服务不可用错误。如果应用程序继续工作并且索引暂时不起作用,我不介意。是否可以忽略 Solr 中断,以便 ruby 应用程序继续运行?
searchable
您可以随时设置Sidekiq 之类的东西并将您的更新推送到队列中。然后,您可能会重试失败的请求,直到它们成功(或过期)。这样,当连接恢复时,所有排队的更新都会自动转储到 Solr。