During update and switch of your business version, to ensure that the business in the production environment is stable, we recommend you use grayscale release:
This document uses a deployed Express project as an example to describe how to perform grayscale release.
You have developed a project.
TENCENT_SECRET_ID=xxxxxxxxxx TENCENT_SECRET_KEY=xxxxxxxx STAGE=prod
$latestversion in the production environment and switch 10% traffic to it (90% traffic will be switched to the last published function version N):
sls deploy --inputs.traffic=0.1
$latestversion and switch 100% traffic to this version after it becomes stable:
sls deploy --inputs.traffic=1.0
sls deploy --inputs.publish --inputs.traffic=0