Help Center/ ServiceStage/ User Guide (ME-Abu Dhabi Region)/ User Guide/ Application O&M/ Configuring an Upgrade Policy of an Application Component Instance
Updated on 2023-06-25 GMT+08:00

Configuring an Upgrade Policy of an Application Component Instance

You can configure an upgrade policy during or after application component deployment.

Procedure

When the component type is Common and the runtime system is Docker, perform the following operations:

  1. Access the page for setting an upgrade policy of an application component instance.

    • To set an upgrade policy during component configuration in the application component deployment, go to 2.
    • To set an upgrade policy after an application component is deployed, go to 3.

  2. On the Configure Component page, configure the upgrade policy for the application component instance.

    1. Select an upgrade mode for the application component instance.

      The default upgrade mode is Rolling upgrade.

      • Rolling upgrade

        Install a new instance and then remove the old one. In this pattern, services are evenly distributed to new and old instances during the upgrade, so services are not interrupted.

      • In-place upgrade

        Delete the old instance and then create a new one. Services are interrupted during the upgrade.

    2. Click Next to complete the component deployment.

  3. Log in to ServiceStage and choose Application Management > Application List to view all applications.
  4. Click an application. The Overview page is displayed.
  5. On the Environment View tab, select an environment to view the application components that have been deployed in the environment.
  6. Click an application component. The Overview page is displayed.
  7. Choose Upgrade to configure the upgrade policy.

    1. Select an upgrade mode for the application component instance.

      The default upgrade mode is Rolling upgrade.

      • Rolling upgrade

        Install a new instance and then remove the old one. In this pattern, services are evenly distributed to new and old instances during the upgrade, so services are not interrupted.

      • In-place upgrade

        Delete the old instance and then create a new one. Services are interrupted during the upgrade.

    2. Click Re-deployment to complete the setting.

For other types of components, perform the following operations:

  1. Access the page for setting an upgrade policy of an application component instance.

    • To set an upgrade policy during component configuration in the application component deployment, go to 6.
    • To set an upgrade policy after an application component is deployed, go to 2.

  2. Log in to ServiceStage and choose Application Management > Application List to view all applications.
  3. Click an application. The Overview page is displayed.
  4. On the Environment View tab, select an environment to view the application components that have been deployed in the environment.
  5. Click an application component. The Overview page is displayed. Choose Upgrade.
  6. Choose Advanced Settings > Deployment Configuration. On the Upgrade Policy tab page, select the upgrade mode.

    The default upgrade mode is Rolling upgrade.

    • Rolling upgrade

      Install a new instance and then remove the old one. In this pattern, services are evenly distributed to new and old instances during the upgrade, so services are not interrupted.

    • In-place upgrade

      Delete the old instance and then create a new one. Services are interrupted during the upgrade.

  7. Complete the setting of the upgrade policy.

    • If the upgrade policy is set during component configuration, click Next.
    • If the upgrade policy is set after the application component is deployed, click Re-deployment.