หน้านี้ยังไม่พร้อมใช้งานในภาษาท้องถิ่นของคุณ เรากำลังพยายามอย่างหนักเพื่อเพิ่มเวอร์ชันภาษาอื่น ๆ เพิ่มเติม ขอบคุณสำหรับการสนับสนุนเสมอมา
- Service Overview
- Billing
- Getting Started
-
User Guide
- Overview
- Permissions Management
- Environment Management
- Application Management
- Component Management
- Instance Management
- Component Configurations
- Component O&M
- System Settings
- Key Operations Recorded by CTS
-
Best Practices
- CAE Best Practices
- Using CAE to Host Nginx Static File Servers
- Interconnecting GitLab with Jenkins for Automatic Build and Deployment on CAE
- Deploying Components Based on the Dependency Sequence Using the Jenkins Pipeline
- Deploying Spring Cloud Applications to CAE to Automatically Connect to the Nacos Engine
- Graceful Startup of a Spring Cloud Application
- Health Check
- Lifecycle Management
- Sending Event Alarms to WeCom
-
Connecting to the CodeArts Pipeline to Automatically Upgrade CAE Components
- Overview
- Upgrading a CAE Component After Uploading a Software Package Built Using the Pipeline to a CodeArts Release Repo
- Upgrading a CAE Component After Uploading a Software Package Built Using the Pipeline to the OBS Bucket
- Upgrading a CAE Component After Uploading an Image Built Using the Pipeline to the SWR Image Repository
- Configuring PromQL to Implement Custom Auto Scaling
- Configuring the Interconnection Between CAE and DEW to Help Applications Obtain Encrypted Secrets from DEW
- Deploying ASP.NET Core Applications to CAE
- Connecting the Network Through Enterprise Routes
- API Reference
-
FAQs
- Component Management FAQs
- Environment Management
-
Component Configuration FAQs
- Is Manual Scaling Still Effective When a Scaling Policy Is Configured?
- Can Components Be Scaled Without a Scaling Policy?
- Why Is My Instance Abnormal After Cloud Storage Is Configured?
- What Do I Do If a Component Becomes Not Ready?
- How Does CAE Support Dark Launch?
- How Do I Provide Prometheus Metrics for a Java Application?
- System Configuration FAQs
- Service Resources FAQs
- General Reference
Show all
Copied.
Upgrading a Component
If a component fails to be deployed, you can upgrade it for redeployment.
Procedure
- Log in to CAE.
- Choose Components.
- Select the target component and click Upgrade in the Operation column.
- Configure the component again by referring to the following table.
Parameter
Item
Description
Component
-
The value cannot be changed during upgrade.
Version
-
Component version.
The format is A.B.C or A.B.C.D. A. B, C, and D are natural numbers, for example, 1.0.0 or 1.0.0.0.
Specifications
-
Select the instance specifications, for example, 0.5 Core, 1 GiB; 1 Core, 1 GiB; 1 Core, 2 GiB; 2 Core, 4 GiB.
Code Source
NOTE:
During upgrade, the code source format is restricted. For example, components deployed using images, JAR, or WAR can only be upgraded using images, JAR, or WAR respectively.
Source code repository
- Select a code source. GitHub, GitCode, GitLab, and Bitbucket code can be identified.
- Only Branch can be modified during upgrade.
Branch: Select a branch to manage code.
- Build Type: Select Default or Custom.
NOTE:
The authorization mode varies depending on the code source.
- Default command or script: preferentially executes build.sh in the root directory. If build.sh does not exist, the code will be built using the common method of the selected language. Example: mvn clean package for Java.
- Custom command: Commands are customized using the selected language. Alternatively, the default command or script is used after build.sh is modified.
- Dockerfile: Set this parameter if the component source is Source code repository. You can select Custom or Default.
NOTE:
You can select Default to configure artifact files only when Language/Runtime System is set to Java.
- Dockerfile Address: Set this parameter if Dockerfile is set to Custom.
- Dockerfile Address is the directory where the Dockerfile is located relative to the root directory (./) of the project. The Dockerfile is used to build an image.
- The Docker program reads the Dockerfile file to generate a custom image.
- The Dockerfile address contains 1 to 255 characters, including letters, digits, periods (.), hyphens (-), underscores (_), and slashes (/).
- If the file name is Dockerfile, you can only enter a directory address and this address must end with a slash (/).
- Artifact File: Set this parameter if Dockerfile is set to Default.
Select and run the specified JAR package from multiple JAR packages generated during Maven build. The JAR package ends with .jar. Fuzzy match is supported. Examples: demo-1.0.jar and demo*.jar.
Image
- Upload the image package by Upload Through Client or Upload Through Page.
- On the My Images, Open Source Images, or Shared Images page, select an image package for deployment. You can search for an image by name.
- My Images: image packages uploaded by users.
- Open Source Images: images provided by SWR.
- Shared Images: image packages shared by different accounts.
- (Optional) You can also click the link next to Code Source to go to the SWR console and perform more image management operations.
NOTE:
When you select Upload Through Page, only one image package can be added at a time. The file size cannot exceed 2 GB (after decompression). The image package can be in .tar or .tar.gz format. Only the image package created by the container engine client of version 1.11.2 or later can be uploaded. For details, see Creating an Image Package. To upload a file larger than 2 GB, select Upload Through Client.
Software package
- Select CodeArts Release Repo or OBS where the software packages are located.
- If you select CodeArts Release Repo, upload the software package to the software release repository in advance. For details, see Uploading a Software Package.
- If you select OBS, upload the software package to the OBS bucket in advance. For details, see Uploading an Object.
- Build Type: Select System default or Custom Dockerfile.
- System default: Use the default Dockerfile based on the selected language or runtime system.
- Custom Dockerfile: Customize the Dockerfile based on the selected language.
Figure 1 Upgrading a component - Click Upgrade Now.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot