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
- Log in to the CCE console.
- Choose Workloads > Deployments in the navigation pane, and click wow-auth to access its details page.
- Click the Upgrade tab. When the workload is being created, the rolling upgrade will be used by default.
- 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
- 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
- Click
on the right. If both pods are in the running state, the upgrade is successful.
Last Article: Scaling the Game Application
Next Article: Deleting Resources
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.