【问题标题】:Bluemix Ruby app health check configurationBluemix Ruby 应用程序运行状况检查配置
【发布时间】:2017-12-09 13:48:29
【问题描述】:

我们有一个通过 Bluemix Ruby 服务部署到 Bluemix 的 Sinatra 应用程序。

但是,该应用程序在一段时间后变得不可用,我们怀疑 Bluemix 运行状况检查失败。我们可以看到从我们认为是 Bluemix 负载均衡器的东西定期调用根(即 / 路由)。但是,我们的根路由受到基本身份验证的保护。

我们如何更改负载均衡器为我们的应用程序调用的路由?

是否有任何关于健康检查功能的文档?

【问题讨论】:

标签: ruby ibm-cloud


【解决方案1】:

这似乎还不可能。 This recently updated documentation 在“暂存应用程序”下声明:

To validate the app health, Diego supports the same PORT-based checks that were used for DEA. However, Diego is also designed to be able to have more generic options like URL-based health checks, which might be enabled in the future.

旧的DEA architecture 似乎也不支持 url 健康检查。

【讨论】:

  • 小编辑,好像可以编辑了。如果您添加: health-check-type: http health-check-http-endpoint: / 那么 Bluemix 将在其 http 健康检查中使用给定的路由。默认的健康检查(如果您没有设置任何内容)是 TCP 端口检查。我不知道如何推荐将其用于生产,因为它似乎还没有记录在案。
猜你喜欢
  • 1970-01-01
  • 2013-11-13
  • 1970-01-01
  • 1970-01-01
  • 2016-01-25
  • 2019-08-26
  • 1970-01-01
  • 1970-01-01
  • 2016-06-12
相关资源
最近更新 更多