Upgrading Component Versions Using ELB Dark Launch
- Go to the ServiceStage console.
- Choose Application Management. The application list is displayed.
- Click the application created in Creating an Application (for example, springGuides). The Overview page is displayed.
- On the Component List tab, click the component created in Deploying and Accessing Spring Boot Applications (for example, spring-boot). The Overview page is displayed.
- In the upper right corner of the page, click Upgrade.
- Set Upgrade Type to Dark Launch and click Next.
- Set mandatory parameters for dark launch by referring to the following table. Retain the default values for other parameters.
Parameter
Description
Source Code/Image
The value is fixed to the GitHub source code repository selected during component creation and deployment.
- Click Modify.
- Authorization: Select the authorization information created when Setting GitHub Repository Authorization.
- Username/Organization: Select the GitHub account created when Registering a GitHub Account and Forking the Source Code.
- Repository: Select the Spring Boot source code repository that has been forked to your GitHub account when Registering a GitHub Account and Forking the Source Code. For example, gs-spring-boot-kubernetes.
- Branch: Select main.
Command
- Select Custom command.
- Enter the following command in the command text box:
cd ./complete/;mvn clean package
Component Version
Enter 1.0.1.
Deployment Architecture
- Click Select.
- Select Type 3: Connects the service to load balancer (microservice A implements dark launch).
- Click OK.
Dark Launch Policy
Select Traffic ratio-based.
Traffic Ratio
- Traffic Ratio: percentage of traffic directed to the new version. Set it to 50.
- Current Traffic Ratio: percentage of traffic directed to the current version. It is automatically set to 50.
Instances Deployed for Dark Launch
Select Canary (increase, then decrease instances).
First Batch of Dark Launch Instances
Set this parameter to 1.
Deployment Batch with Remaining Instances
Set this parameter to 1.
- Click Upgrade.
Wait until the component status changes from Upgrading/Rolling back the component to Releasing, indicating that the component is released in dark launch.
- Perform Accessing Spring Boot Applications multiple times. If "Greetings from Spring Boot!" and "Hello" are displayed alternately on the page, the dark launch version of ELB is released.
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