System and method for realizing seamless upgrading of sidecar based on addition of temporary container

A sidecar and container technology, applied in the field of seamless upgrade of sidecars, can solve problems such as large business impact, no business perception, limited scalability, etc., to achieve good compatibility, ensure stability, and reduce the probability of errors.

Active Publication Date: 2020-08-18
上海道客网络科技有限公司
View PDF11 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] At present, due to its own evolution and maintenance, the upgrade of the sidecar is inevitable. However, whether the current upgrade of the sidecar is through elastic expansion or front-end load balancing switching, it cannot be completely unaware of the business. Due to the sidecar takeover These upgrade plans have a great impact on the business. On the cloud platform, all customer applications run in the form of containers, and the sidecar is also in the form of containers. However, on the cloud platform, you cannot arbitrarily change the running The container in the operation;
[0014] The Chinese invention patent with patent application number 201710588136.2 is a method for uninterrupted business upgrade, nodes to be upgraded and readable storage media. Transformation to achieve uninterrupted upgrades, the main object is business; for the hot upgrade field, the patent application itself also has some flaws: first, it needs to transform the business in advance or follow a specific protocol, so that other programs can read its configuration Second, it also needs to rely on a distributed database ETCD, which limits its scalability; due to the above flaws, it is limited to a specific scenario, and requires special customization during execution to achieve adaptation to business scenarios , can be carried out, there are certain limitations
[0015] The Chinese invention patent with the patent application number 201911194147.8 is a container-based application data upgrade method, device, and computer storage medium. It is mainly aimed at upgrading containers with storage. It is to upgrade the container through data after the business is offline. To achieve the purpose of replacing data; it mainly describes a data migration scheme during the application update process, which has nothing to do with the sidecar, and it is only aimed at upgrading application data, which requires a specific data upgrade container, which also needs to be targeted at specific The scene is specially customized, with certain limitations

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • System and method for realizing seamless upgrading of sidecar based on addition of temporary container
  • System and method for realizing seamless upgrading of sidecar based on addition of temporary container
  • System and method for realizing seamless upgrading of sidecar based on addition of temporary container

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] In order to make the technical means, creative features, objectives and effects of the invention easy to understand, the present invention will be further elaborated below in conjunction with specific diagrams.

[0062] The first embodiment of the present invention is to provide a system for seamlessly upgrading sidecars based on adding temporary containers. The purpose is to use the system and method for seamlessly upgrading sidecars by adding temporary containers to completely achieve application-free upgrades. Carry out a full range of upgrades. After the upgrade, the old sidecar agent program is no longer running, including the old sidecar control program, which has better compatibility and better integrity, effectively reducing the probability of errors.

[0063] The first aspect, the first embodiment, such as Figure 1-3 Shown:

[0064] A system for seamlessly upgrading a sidecar based on adding a temporary container, which includes a container group 101, a share...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a system and a method for realizing seamless upgrading of a sidecar based on addition of a temporary container. The system comprises a shared storage volume which is stored ina shared memory and mounted on a container group, an mirror image storage controller which packages the new sidecar control program and the new sidecar agent program into a sidecar container mirror image transmitted to a hot upgrading controller, a hot upgrading controller which transmits the sidecar container mirror image to a temporary container controller according to the hot upgrading signal,and a temporary container controller which injects a temporary container into the container group through the sidecar container mirror image. The new sidecar control program in the temporary containeris connected with the old sidecar control program through the shared storage volume, and the new sidecar control program gives a new ID to the new sidecar agent program; and the new sidecar agent program acquires data information in the old sidecar agent program for hot update to complete flow takeover, an instruction is sent to the old sidecar agent program through the Unix domain socket after the new sidecar agent program is started, and the old sidecar agent program exits after receiving the instruction.

Description

technical field [0001] The present invention relates to the fields of sidecar, service grid, micro-service governance, cloud native technology, hot update of software, etc., and specifically relates to a system and method for seamlessly upgrading sidecar based on adding temporary containers. Background technique [0002] In the field of cloud native, service mesh (Service Mesh) is an emerging technology, which has received widespread attention in recent years. In the technical architecture of service mesh, in order to allow the traffic of each application to be controlled, The service grid will forward business traffic to a sidecar container through certain technologies, and control the traffic through the sidecar to achieve advanced features such as service discovery, fusing, current limiting, observability, etc., and has no perception of business; [0003] Sidecar: The so-called sidecar is also called Sidecar, just like the sidecar is connected to the motorcycle. Similar...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/65G06F8/61G06F9/455
CPCG06F8/63G06F8/65G06F9/45558G06F2009/4557G06F2009/45575
Inventor 刘齐均颜开周尧徐俊杰
Owner 上海道客网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products