health-check-type属性的用途是什么

时间:2016-08-05 20:13:53

标签: ibm-cloud cloudfoundry pivotal-cloud-foundry

我已经在bluemix和pivotal中部署了一个应用程序。以下是清单文件

---
applications:
- name: test
  memory: 128M
  instances: 1
  no-route: true
  health-check-type: none //Why we have to use this?

在bluemix中,如果没有health-check-type属性,我的应用程序就开始了。但在关键时刻,由于应用程序崩溃,我不断收到以下消息。

0 of 1 instances starting
0 of 1 instances starting
0 of 1 instances starting
0 of 1 instances starting
0 of 1 instances starting
0 of 1 instances starting
0 of 1 instances starting
FAILED

在manifest.yml(关键)中传递了health-check-type:none之后,app开始没有任何问题。

有人可以告诉我,使用健康检查类型属性是强制性的吗?

1 个答案:

答案 0 :(得分:2)

IBM Bluemix是旧版" DEA"建筑,而Pivotal是目前的#Diego;迭戈"建筑。您可以看到两者在no-route选项here时的差异。