此内容没有您所选择的语言版本。

9.2. Default Scaling Build Life Cycle


On the head gear, where the web proxy runs, the build phase for a scalable application is the same as the default build phase for a non-scaling application. The deploy phase for scalable applications is different.

Deploy Phase

  1. OpenShift Enterprise starts the secondary cartridges on the application's head gear.
  2. OpenShift Enterprise runs the web proxy's deploy hook on the head gear.
  3. The web proxy runs deployment steps on the application's secondary gears. For example, the default web proxy, HAProxy, preforms the following steps:
    1. It stops the secondary gears.
    2. It synchronizes the code and build artifacts from the head gear to the secondary gears.
    3. It runs the primary cartridge's control update-configuration command on the secondary gears.
    4. It starts all the secondary cartridges on the secondary gears.
    5. It runs the primary cartridge's control deploy command on the secondary gears.
    6. It runs the deploy user action hook, if present, on the secondary gears.
    7. It starts the primary cartridge on the secondary gears. The application is now running on the secondary gears.
    8. It runs the primary cartridge's control post-deploy command on the secondary gears.
    9. It runs the post-deploy user action hook, if present, on the secondary gears.
  4. OpenShift Enterprise runs the primary cartridge's control deploy command on the head gear.
  5. OpenShift Enterprise runs the deploy user action hook, if present, on the head gear.
  6. OpenShift Enterprise starts the primary cartridge on the head gear.
  7. OpenShift Enterprise runs the primary cartridge's control post-deploy command on the head gear.
  8. OpenShift Enterprise runs the post-deploy user action hook, if present, on the head gear.
The build is now complete, and the scaled application is running.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat