Upgrading the Game Application

Game requirements grow rapidly and versions change frequently. The upgrade efficiency and user experience during the upgrade are crucial for gaming services.

CCE provides a rolling upgrade policy to separately update pods one by one instead of updating all pods at the same time. This ensures that services are not interrupted during the upgrade.

This section uses wow-auth as an example to demonstrate the rolling upgrade of applications.

Prerequisites

Ensure that the workload to be upgraded has at least two pods. You are advised to manually scale the workload into two pods before performing the upgrade.

Procedure

  1. Log in to the CCE console.
  2. Choose Workloads > Deployments in the navigation pane, and click wow-auth to access its details page.
  3. Click the Upgrade tab. When the workload is being created, the rolling upgrade will be used by default.
  4. After containerization, you can easily upgrade the workload by replacing its image. Click Replace Image, select wowauth-5.1, and click OK.

    Figure 1 Replacing the image

  5. Click Submit in the lower right corner of the page. In the dialog box displayed, click OK.

    On the Pods tab page, you can view that one pod is being created and then the other is being stopped. This ensures that there is always a pod running and the service is not interrupted during the upgrade.

    Figure 2 Rolling upgrade

  6. Click on the right. If both pods are in the running state, the upgrade is successful.