The invention relates to the field of code
scrolling release, and discloses a semi-automatic
scrolling code release method based on batch traffic switching, which comprises the following steps: firstly, building a GitLab
server, creating a project warehouse, and configuring a CI / CD
assembly line; deploying a Harbor
mirror image warehouse, and setting access authority; the method comprises the following steps of: installing a Docker and a Docker Componse, and operating basic
middleware of the Docker and the Docker Componse; the developer submits the code to a GitLab warehouse; determining the number of instances of each batch according to the cluster scale; a Docker Com
pose is used for defining the deployment of the service, and the deployment of the service is configured to be docker-complex. Yml; deploying a monitoring script on the
server, regularly collecting operation state information of the service, and giving an alarm when the operation state information is abnormal; function testing and performance testing are carried out on the new version, and the whole publishing process is completed after normal operation of the service is ensured; the problems that in the prior art, the publishing efficiency is low, the cluster scale cannot be dynamically adapted, the fault
recovery rate is low, and new and old versions are not compatible are solved.