“ cf push”如何工作?

时间:2019-02-19 17:45:24

标签: cloudfoundry pivotal-cloud-foundry blue-green-deployment

在现有cf push应用程序上应用Running,使用新的工件停止并启动该应用程序实例。

此应用已分配了路由名称。


1)为了评估银行应用程序在cf push中的停机时间,从停止现有应用程序实例到启动新应用程序实例涉及哪些步骤?

2)蓝绿色部署是否可以减少停机时间?

1 个答案:

答案 0 :(得分:2)

  1. here所示的流程图中说明了在[LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "<NSLayoutConstraint:0x6000019d7d40 UIView:0x7fe66940aa30.height == UIScrollView:0x7fe66985b400.height (active)>", "<NSLayoutConstraint:0x6000019d7d90 V:|-(0)-[UIView:0x7fe66940aa30] (active, names: '|':UIScrollView:0x7fe66985b400 )>", "<NSLayoutConstraint:0x6000019d7de0 V:[UIView:0x7fe66940aa30]-(0)-| (active, names: '|':UIScrollView:0x7fe66985b400 )>", "<NSLayoutConstraint:0x6000019e4690 UILayoutGuide:0x6000003c81c0'UIViewSafeAreaLayoutGuide'.bottom == UIScrollView:0x7fe66985b400.bottom (active)>", "<NSLayoutConstraint:0x6000019e4730 UIScrollView:0x7fe66985b400.top == UILayoutGuide:0x6000003c81c0'UIViewSafeAreaLayoutGuide'.top (active)>", "<NSLayoutConstraint:0x6000019e11d0 _UIScrollViewLayoutGuide:0x6000003ac1c0'UIScrollView-contentLayoutGuide'.height == 1475 (active)>", "<NSLayoutConstraint:0x6000019e9540 'UIView-Encapsulated-Layout-Height' UIView:0x7fe66950bdb0.height == 667 (active)>", "<NSLayoutConstraint:0x6000019e45f0 'UIViewSafeAreaLayoutGuide-bottom' V:[UILayoutGuide:0x6000003c81c0'UIViewSafeAreaLayoutGuide']-(0)-| (active, names: '|':UIView:0x7fe66950bdb0 )>", "<NSLayoutConstraint:0x6000019e4550 'UIViewSafeAreaLayoutGuide-top' V:|-(20)-[UILayoutGuide:0x6000003c81c0'UIViewSafeAreaLayoutGuide'] (active, names: '|':UIView:0x7fe66950bdb0 )>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x6000019d7de0 V:[UIView:0x7fe66940aa30]-(0)-| (active, names: '|':UIScrollView:0x7fe66985b400 )> 中完成的步骤,其中包括
    • 创建应用
    • 上传
    • 登台
  2. 蓝绿色部署消除了由于推送新应用程序版本而导致的停机时间。 documentation中对基本工作流程进行了很好的描述。基本思想是将新版本并排部署到旧版本,将应用程序的路由分配给这两个版本,然后从旧版本中删除路由。这样,应用程序路由就不会不可用。 至少有CF CLI插件blue-green-deploy,它将帮助您自动执行此工作流程,因此您不必执行单个步骤。