Help Center/ Cloud Application Engine/ Best Practices/ Health Check/ Using Readiness Probe to Ensure Normal Traffic During Upgrade
Updated on 2024-05-25 GMT+08:00

Using Readiness Probe to Ensure Normal Traffic During Upgrade

Prerequisites

Procedure

  1. Log in to CAE. Choose Component Configurations.
  2. Select the target component from the drop-down list in the upper part of the page.

    Figure 1 Selecting a component

  3. Configure the readiness probes by referring to Figure 2, and make the configurations take effect. For details, see Configuring Health Check.

    Figure 2 Configuring readiness probe

  4. Upgrade the component. For details, see Upgrading a Component.
  5. During upgrade, choose Components, click the IP address in the Access Address column of the component to view the application page. As shown in Figure 3, services are not interrupted.

    Figure 3 Application page

  6. As shown on the Component Events page, the instance has unhealthy requests. The probe detects that the new instance is not ready for traffic switchover and continues to use the old instance to provide services.

    Figure 4 Viewing component events