Cloud service system and application upgrading method
By using inspection strategies of inspection nodes and statistical data in the cloud service system, the control application upgrades from the first version to the second version, solving the problem that application upgrades in the cloud computing environment affect the existing network business, and achieving security and stability the application release.
Patent Information
- Application Number
- CN202310952347.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-08
- Filing Date
- 2023-07-31
- Publication Date
- 2024-11-08
AI Technical Summary
In a cloud computing environment, the upgrade of applications needs to be carried out without affecting the existing network service, and the prior art is difficult to effectively ensure the security and stability of the upgraded applications.
By setting the first version of the target application and the second version to be upgraded in the cloud service system, using the verification node to obtain statistical data from the server and the test node, perform data verification based on the preset verification strategy, and control the server to convert the application. Upgrading from the first version to the second version, rolling upgrade or grayscale release methods are adopted to ensure the security and stability of the upgrade process.
It realizes the release of new versions of applications safely and stably without affecting the current network business, ensuring the correctness and stability of the applications, and avoiding risks and failures during the upgrade process.
Smart Images

Figure CN118921272A_ABST
Abstract
Description
[0001] This application claims the priority of the Chinese patent application filed with the Intellectual Property Office of the People's Republic of China on May 8, 2023, with application number 202310511191.7 and application name "A verification method and device based on cloud technology", all contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of cloud technology, and in particular to a cloud service system and an application upgrade method. Background Art
[0003] Cloud computing is a type of distributed computing. It refers to breaking down huge data computing programs into countless small programs through the network "cloud". These small programs are then processed and analyzed through a system composed of multiple servers to obtain results and return them to users (including corporate users and individual users).
[0004] With the development of cloud computing, more and more users are migrating their businesses to the cloud. The agile development of cloud services requires frequent online upgrades of cloud services. In order to ensure that the upgrade does not affect or affects the existing network services as little as possible, it is necessary to design a reasonable test and verification solution to ensure the safe and stable release of new versions of applications. Summary of the invention
[0005] The embodiments of the present application provide a cloud service system and an application upgrade method for safely and stably releasing a new version of an application program without affecting or minimizing the impact on existing network services.
[0006] In a first aspect, an embodiment of the present application provides a cloud service system, which includes: at least one server, on which a first version of a target application is set, the target application is used to provide a target cloud service and provide first statistical data to a verification node; at least one test node, on which a second version of the target application to be upgraded is set, the second version is used to obtain second statistical data based on a first mirror traffic from the at least one server, and provide the second statistical data to the verification node; the verification node is used to obtain the first statistical data and the second statistical data, and when the verification results of the first statistical data and the second statistical data meet a preset verification policy, control the at least one server to upgrade the target application from the first version to the second version.
[0007] In combination with the first aspect, in one possible implementation, the operating environment of the first version of the target application in the server is the same as the operating environment of the second version of the target application in the test node, and the at least one test node is further used to: obtain an image file sent by the administrator through the controller, and the image file is used to build an operating environment at the test node that is the same as that of the server.
[0008] In combination with the first aspect, in a possible implementation manner, the inspection node is further used to: obtain first configuration information sent by a management user through a controller, wherein the first configuration information is used to indicate the inspection strategy.
[0009] In combination with the first aspect, in a possible implementation manner, the preset inspection strategy includes at least one of the following: at least one inspection indicator, a data inspection method corresponding to the same inspection indicator, or a data deviation range.
[0010] In combination with the first aspect, in a possible implementation, the at least one server is further used to: obtain second configuration information sent by the administrator through the controller, wherein the second configuration information includes the type of mirrored traffic and the sending port information of the mirrored traffic.
[0011] In combination with the first aspect, in a possible implementation manner, the at least one test node is further used to: obtain third configuration information sent by the administrator through the controller, wherein the third configuration information includes receiving port information of the mirrored traffic.
[0012] In combination with the first aspect, in a possible implementation manner, the controller includes a cloud management platform, and the managers include tenants.
[0013] In combination with the first aspect, in a possible implementation, controlling the at least one server to upgrade the target application from the first version to the second version includes: controlling the at least one server to upgrade the target application from the first version to the second version in any one of the following ways: a rolling upgrade method or a grayscale release method.
[0014] In combination with the first aspect, in a possible implementation, after a first server among the at least one server upgrades the target application from the first version to the second version, the server is further used to provide third statistical data to the verification node based on the second version, the test node is further used to set the first version of the target application, and provide fourth statistical data to the verification node based on the second mirror traffic from the first server, and the verification node is further used to verify the third statistical data based on the fourth statistical data.
[0015] In combination with the first aspect, in a possible implementation, if the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded; if the verification of the third statistical data fails, the verification node determines that the target application on the at least one server has failed to be upgraded.
[0016] In a second aspect, an embodiment of the present application provides an application upgrade method, which is applied to a verification node, and the method includes: receiving first statistical data from at least one server and second statistical data from at least one test node, wherein a first version of a target application is set on the server, and the target application is used to provide a target cloud service, and a second version of the target application to be upgraded is set on the test node, and the second version is used to obtain the second statistical data based on the mirrored traffic from the at least one server; when the verification results of the first statistical data and the second statistical data meet the preset verification strategy, controlling the at least one server to upgrade the target application from the first version to the second version.
[0017] In conjunction with the second aspect, in a possible implementation manner, the operating environment of the first version of the target application on the server is the same as the operating environment of the second version of the target application on the test node.
[0018] In combination with the second aspect, in a possible implementation manner, the method further includes: obtaining first configuration information sent by a management user through a controller, wherein the first configuration information is used to indicate the inspection strategy.
[0019] In combination with the second aspect, in a possible implementation, the preset inspection strategy includes at least one of the following: at least one inspection indicator, a data inspection method corresponding to the same inspection indicator, or a data deviation range.
[0020] In combination with the second aspect, in a possible implementation, after the first server among the at least one server upgrades the target application from the first version to the second version, the server is also used to provide third statistical data to the verification node based on the second version, and the test node is also used to set the first version of the target application and provide fourth statistical data to the verification node based on the second mirror traffic from the first server. The method also includes: verifying the third statistical data based on the fourth statistical data, wherein if the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded; if the verification of the third statistical data fails, the verification node determines that the upgrade of the target application on the at least one server has failed.
[0021] In a third aspect, an embodiment of the present application provides an application upgrade method, which is applied to a server, wherein a first version of a target application is set on the server, and the target application is used to provide a target cloud service. The method comprises: sending first statistical data to a verification node; sending first mirror traffic to at least one test node, wherein a second version of the target application to be upgraded is set on the test node, and the second version is used to obtain second statistical data based on the first mirror traffic, and the verification node is used to control the at least one server to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet a preset verification policy.
[0022] In conjunction with the third aspect, in a possible implementation manner, the operating environment of the first version of the target application on the server is the same as the operating environment of the second version of the target application on the test node.
[0023] In combination with the third aspect, in a possible implementation manner, the method further includes: obtaining second configuration information sent by the administrator through the controller, wherein the second configuration information includes the type of mirrored traffic and sending port information of the mirrored traffic.
[0024] In combination with the third aspect, in a possible implementation, the server controls the at least one server to upgrade the target application from the first version to the second version in any of the following ways: a rolling upgrade method or a grayscale release method.
[0025] In combination with the third aspect, in a possible implementation, after the first server among the at least one server upgrades the target application from the first version to the second version, the method further includes: sending third statistical data to the verification node based on the second version, wherein the third statistical data is used for verification based on fourth statistical data, and the fourth statistical data is obtained based on the second mirror traffic from the first server, and if the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded; if the verification of the third statistical data fails, the verification node determines that the upgrade of the target application on the at least one server has failed.
[0026] In a fourth aspect, an embodiment of the present application provides an application upgrade method, which is applied to a test node, wherein a second version of a target application to be upgraded is set on the test node, and the target application is used to provide a target cloud service. The method comprises: receiving a first mirror traffic from at least one server; obtaining a second statistical data based on the first mirror traffic; and sending the second statistical data to a verification node, wherein the verification node controls the at least one server to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet a preset verification strategy.
[0027] In combination with the fourth aspect, in a possible implementation, the operating environment of the first version of the target application on the server is the same as the operating environment of the second version of the target application on the test node, and the method further includes: obtaining an image file sent by the administrator through the controller, and the image file is used to build an operating environment on the test node that is the same as that of the server.
[0028] In combination with the fourth aspect, in a possible implementation manner, the method further includes: obtaining third configuration information sent by the administrator through the controller, wherein the third configuration information includes receiving port information of the mirrored traffic.
[0029] In combination with the fourth aspect, in a possible implementation, after the first server among the at least one server upgrades the target application from the first version to the second version, the server is also used to provide third statistical data to the verification node based on the second version, and the test node is also used to set the first version of the target application. The method also includes: receiving second mirror traffic from the first server; providing fourth statistical data to the verification node based on the second mirror traffic, wherein the verification node is also used to verify the third statistical data based on the fourth statistical data, if the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded; if the verification of the third statistical data fails, the verification node determines that the upgrade of the target application on the at least one server has failed.
[0030] In a fifth aspect, an embodiment of the present application provides a communication device, comprising: a communication interface, for receiving first statistical data from at least one server and second statistical data from at least one test node, wherein a first version of a target application is set on the server, and the target application is used to provide a target cloud service, and a second version of the target application to be upgraded is set on the test node, and the second version is used to obtain the second statistical data based on the mirrored traffic from the at least one server; a processing unit, for controlling the at least one server to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet a preset verification strategy.
[0031] In conjunction with the fifth aspect, in a possible implementation manner, an operating environment of the first version of the target application on the server is the same as an operating environment of the second version of the target application on the test node.
[0032] In combination with the fifth aspect, in a possible implementation manner, the communication interface is further used to: obtain first configuration information sent by the management user through the controller, wherein the first configuration information is used to indicate the inspection strategy.
[0033] In combination with the fifth aspect, in a possible implementation, the preset inspection strategy includes at least one of the following: at least one inspection indicator, a data inspection method corresponding to the same inspection indicator, or a data deviation range.
[0034] In combination with the fifth aspect, in a possible implementation, after the first server among the at least one server upgrades the target application from the first version to the second version, the server is also used to provide third statistical data to the verification node based on the second version, the test node is also used to set the first version of the target application, and provide fourth statistical data to the verification node based on the second mirror traffic from the first server, and the processing unit is also used to: verify the third statistical data based on the fourth statistical data, wherein if the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded; if the verification of the third statistical data fails, the verification node determines that the upgrade of the target application on the at least one server has failed.
[0035] In a sixth aspect, an embodiment of the present application provides a communication device, on which a first version of a target application is provided, and the target application is used to provide a target cloud service, and the communication device includes: a communication interface, for sending first statistical data to a verification node; sending a first mirror traffic to at least one test node, wherein a second version of the target application to be upgraded is provided on the test node, and the second version is used to obtain second statistical data based on the first mirror traffic, and the verification node is used to control the communication device to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet a preset verification strategy.
[0036] In conjunction with the sixth aspect, in a possible implementation manner, an operating environment of the first version of the target application on the server is the same as an operating environment of the second version of the target application on the test node.
[0037] In combination with the sixth aspect, in a possible implementation, the communication interface is also used to obtain second configuration information sent by the administrator through the controller, wherein the second configuration information includes the type of mirrored traffic and the sending port information of the mirrored traffic.
[0038] In combination with the sixth aspect, in a possible implementation, the server controls the at least one server to upgrade the target application from the first version to the second version in any of the following ways: a rolling upgrade method or a grayscale release method.
[0039] In conjunction with the sixth aspect, in a possible implementation manner, after a first server among the at least one server upgrades the target application from the first version to the second version, the communication interface is further used to:
[0040] Based on the second version, third statistical data is sent to the verification node, wherein the third statistical data is used for verification according to fourth statistical data, and the fourth statistical data is obtained based on the second mirror traffic from the first server. If the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded; if the verification of the third statistical data fails, the verification node determines that the target application on the at least one server has failed to be upgraded.
[0041] In the seventh aspect, an embodiment of the present application provides a communication device, on which a second version of a target application to be upgraded is provided, and the target application is used to provide a target cloud service, and the communication device includes: a communication interface, for receiving a first mirrored traffic from at least one server; a processing unit, for obtaining second statistical data based on the first mirrored traffic; the communication interface is used to send the second statistical data to a verification node, wherein the verification node controls the at least one server to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet a preset verification strategy.
[0042] In combination with the seventh aspect, in one possible implementation, the operating environment of the first version of the target application in the server is the same as the operating environment of the second version of the target application in the test node, and the communication interface is also used to: obtain an image file sent by the administrator through the controller, and the image file is used to build an operating environment at the test node that is the same as that of the server.
[0043] In combination with the seventh aspect, in a possible implementation manner, the communication interface is also used to: obtain third configuration information sent by the administrator through the controller, wherein the third configuration information includes receiving port information of the mirrored traffic.
[0044] In combination with the seventh aspect, in a possible implementation, after the first server among the at least one server upgrades the target application from the first version to the second version, the server is also used to provide third statistical data to the verification node based on the second version, the test node is also used to set the first version of the target application, and the communication interface is also used to: receive second mirror traffic from the first server; provide fourth statistical data to the verification node based on the second mirror traffic, wherein the verification node is also used to verify the third statistical data based on the fourth statistical data, if the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded; if the verification of the third statistical data fails, the verification node determines that the upgrade of the target application on the at least one server has failed.
[0045] In an eighth aspect, an embodiment of the present application provides a computing device cluster, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method as described in the second aspect and any possible implementation of the second aspect, or executes the method as described in the third aspect and any possible implementation of the third aspect, or executes the method as described in the fourth aspect and any possible implementation of the fourth aspect.
[0046] In the ninth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed by a computing device cluster, enables the computing device cluster to execute the method as described in the second aspect and any possible implementation of the second aspect, or execute the method as described in the third aspect and any possible implementation of the third aspect, or execute the method as described in the fourth aspect and any possible implementation of the fourth aspect.
[0047] In the tenth aspect, an embodiment of the present application provides a computer-readable storage medium, including computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method described in the second aspect and any possible implementation of the second aspect, or executes the method described in the third aspect and any possible implementation of the third aspect, or executes the method described in the fourth aspect and any possible implementation of the fourth aspect.
[0048] Based on the implementations provided in the above aspects, the embodiments of the present application can be further combined to provide more implementations.
[0049] The technical effects that can be achieved by any possible implementation method in any of the second to tenth aspects mentioned above can be correspondingly referred to the description of the technical effects that can be achieved by any possible implementation method in any of the first aspect mentioned above, and the repetitions will not be discussed here. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram showing the architecture of a cloud service system according to an embodiment of the present application is shown;
[0051] Figure 2 A schematic diagram showing the architecture of a backend system in an embodiment of the present application is shown;
[0052] Figure 3 A schematic diagram showing the application upgrade principle of an embodiment of the present application;
[0053] Figure 4 An example of application upgrade in an embodiment of the present application is shown;
[0054] Figure 5 A schematic diagram showing a flow chart of an application upgrade method according to an embodiment of the present application is shown;
[0055] Figure 6 An example of application upgrade in an embodiment of the present application is shown;
[0056] Figure 7 A schematic diagram showing a flow chart of an application upgrade method according to an embodiment of the present application is shown;
[0057] Figure 8 A schematic diagram showing a flow chart of an application upgrade method according to an embodiment of the present application is shown;
[0058] Fig. 9 A schematic diagram showing a flow chart of an application upgrade method according to an embodiment of the present application is shown;
[0059] Fig.10 A schematic diagram showing the structure of a communication device according to an embodiment of the present application;
[0060] Fig.11 A schematic diagram showing the structure of a computing device according to an embodiment of the present application is shown;
[0061] Fig.12 A schematic diagram of a computing device cluster according to an embodiment of the present application is shown;
[0062] Fig.13 A schematic diagram of another computing device cluster according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0063] In order to better explain the embodiments of the present application, some of the terms or technologies mentioned in the embodiments of the present application are introduced below.
[0064] 1. Cloud service: It is an Internet-based service provided in the form of representational state transfer application programming interface (REST API) to meet the needs of enterprise Internet technology (IT) such as elastic computing, virtual network, data storage, and database.
[0065] In the embodiments of the present application, the provider of cloud services may be referred to as a cloud vendor.
[0066] 2. Cloud resources: The abbreviation for cloud computing resources provided by cloud vendors to tenants. It refers to the integration of cloud computing-related resources, including cloud services and cloud instances.
[0067] Among them, cloud services may include, but are not limited to, services provided by virtual private cloud (VPC), gateway services, firewall services, NAT services, cloud disks, elastic public IP addresses (elastic IP addresses, EIPs), cloud monitoring services, and other cloud services provided by various cloud vendors. Cloud instances may include, but not precede, virtual machines, containers, or bare metal servers, among which virtual machines, containers, or bare metal servers are virtual instances provided by cloud vendors to tenants in their data centers.
[0068] 3. Tenant: The owner of cloud resources is the subject with management rights over cloud resources. Among them, tenants can order or rent cloud resources from cloud vendors in accordance with business needs through payment methods in order to use cloud services implemented based on the cloud resources. The management rights of tenants over purchased cloud resources may include but are not limited to security management rights, access control rights, etc. In some embodiments, the tenant's electronic device may be referred to as a tenant node.
[0069] 4. User: A person who operates cloud resources and can only operate cloud resources after being authorized by the owner of the cloud resources. In the embodiments of the present application, the user's operation on cloud resources can be implemented through the user's electronic device (including physical devices and / or virtual devices). In some embodiments, the user's electronic device can be called a user node.
[0070] It should be noted that in the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
[0071] Furthermore, unless otherwise specified, the ordinal numbers such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the priority or importance of multiple objects. For example, the first device and the second device are only used to distinguish different electronic devices, rather than indicating the difference in priority or importance of the two devices. For example, in some embodiments, the method steps performed by the first device and the second device can be interchangeable.
[0072] The present application is described in detail below with reference to the accompanying drawings and embodiments.
[0073] Figure 1 A schematic diagram of the architecture of a cloud service system according to an embodiment of the present application is shown.
[0074] like Figure 1 As shown, the cloud service system 100 may include a cloud management platform 110 and a backend system 120 provided by a cloud vendor for tenants.
[0075] The cloud management platform 110 can be connected to the user equipment (UE) operated by the tenant through the Internet. The tenant can order cloud services from the cloud vendor through the cloud management platform 110 and configure resources for the purchased cloud services. For example, a tenant can register an account on the cloud management platform 110 through a user device, and the account is eligible to purchase (including different payment forms such as ordering or renting) cloud resources. After successfully purchasing cloud resources, the cloud management platform 110 can notify the corresponding back-end system 120 to create cloud resources for the tenant, and provide appropriate access methods to the tenant and the user authorized by the tenant, so that the tenant can remotely manage cloud resources, and control the tenant / user's remote access or use of cloud resources, to provide at least one cloud service for the tenant and the user.
[0076] For example, a cloud resource is a virtual machine. The tenant can select the specifications of the virtual machine (such as memory, processor, and disk, etc.) on the cloud management platform 110. After the tenant successfully pays, the cloud management platform 110 notifies the corresponding back-end system 120 to create a virtual machine with the specifications. The tenant can configure the access rights of the user authorized by the tenant to the virtual machine (such as logging in to the virtual machine, shutting down the virtual machine, deleting the virtual machine, etc.). After the configuration is successful, the user can perform the corresponding authorized operations on the virtual machine. The tenant can also grant the user the right to purchase or create a virtual machine. It should be understood that in the embodiment of the present application, cloud resources can also be, for example, various cloud services such as containers, bare metal servers, and elastic public IPs (Elastic IP Address, EIP), and the embodiment of the present application does not limit the type of cloud services.
[0077] In an optional implementation, the tenant can package the application for implementing the business into a deployable format and transmit the application package to the cloud server to deploy the application on the cloud server. Then, after the application is started on the cloud server, cloud services can be provided to users when the program is running.
[0078] The cloud management platform 110 can be connected to the corresponding back-end system 120 through the internal network within the cloud server system 100. The back-end system 120 can provide various data processing functions such as access, processing, aggregation, and storage for requests or data from user devices or third-party devices, as well as provide tenants / users with functions such as query and use of stored data, thereby providing tenants / users with corresponding cloud services.
[0079] In one example, the backend system 120 can be implemented as follows Figure 2 The server cluster (or business cluster) shown may include at least one server, each server as a business node may be provided with a target application, and the target application may be used to provide a target cloud service.
[0080] Exemplarily, the target cloud service may include but is not limited to at least one of the following services: rendering service, video encoding and decoding service, machine learning service, security service, artificial intelligence (AI) service, high performance computing (HPC) service, storage service or network service.
[0081] Optionally, the back-end system 120 may also include multiple computing power hardware, and the types of the multiple computing power hardware may be the same as or different from the server, and may be used to provide at least one computing power support for each server included in the server cluster and the target application set thereon. Exemplarily, the computing power hardware types supported by the multiple computing power hardware may include but are not limited to a central processing unit (CPU), a co-processor (co-processor), a graphics processing unit (GPU), a field programmable gate array (FPGA), various domain-specific architectures (DSA), application-specific integrated circuits (ASIC), virtualized computing devices (Virtual Computing) or other types of processor engines (expressed as xPU, where x represents unknown).
[0082] Due to the agile development method of cloud services, the target application installed on the server needs to be frequently updated and upgraded to further improve the functions of the target cloud service or develop new functions.
[0083] In order to ensure that the upgrade action does not affect or affects the existing network business as little as possible, a possible implementation method of the embodiment of the present application is to provide a communication port for the server cluster in the cloud service system so that the server cluster can be connected to a test cluster. The test cluster may include at least one test node. The operating environment of the test node can be configured to be consistent with the business node, and a new version of the target application to be upgraded can be deployed so that the new version of the target application can be tested and verified in the same operating environment to ensure the correctness of the new version to be upgraded and the stability of the upgraded application without affecting or affecting the existing network business as little as possible.
[0084] In order to facilitate distinction, the version of the target application deployed on the server is referred to as the first version, and the new version of the target application deployed on the test node is referred to as the second version. The development time of the second version may be after the development time of the first version, and the second version may be used to correct the functional defects of the first version, or may be used to further develop new functions compared to the first version. After the first version deployed on the server is updated and upgraded based on the second version, the functional defects of the first version can be made up, or more functional experience can be brought to users.
[0085] Combine the following Figure 3-Figure 4 The application upgrade principle and application upgrade method of the embodiment of the present application are introduced in detail.
[0086] like Figure 3 As shown, in some optional implementations, the cloud service system may further include at least one of a verification node, a diversion entity, or a switch.
[0087] Usually, a shunt entity can be set in front of the server cluster. The shunt entity can be used to provide the function of distributing data streams. It can be a forwarding device (such as a switch or router) or a load balancing gateway, etc., to forward the service request from the user device to the appropriate server, that is, the service node, and the corresponding service node processes the service request to provide the target cloud service for the user. Among them, a first version of the target application can be set on each service node. Based on the first version of the target application, the service node can process the received service request to provide the target cloud service for the user.
[0088] The server cluster can be connected to the test cluster, which can include at least one test node. The administrator can send the image file to each test node in advance through the controller. The test node can build the same operating environment as the server based on the image file, so that each test node is configured to be consistent with the operating environment of the business node, so as to verify the different versions of the target application based on the same operating environment as the business node to ensure the correctness of the upgraded version of the target application and the stability of the application. Among them, each server in the server cluster can be directly connected to each test node of the test cluster, or can be connected to each test node of the test cluster through a switch. The embodiment of the present application does not limit this connection method.
[0089] The verification node can be a communication node set up independently of the server cluster and the test cluster, or it can be integrated in a controller or other device. The verification node can obtain statistical data based on different versions from the server and / or the test node, and analyze whether the second version set up in the test node is the correct version to be upgraded by verifying the obtained statistical data, so as to ensure the correctness of the version used for the application upgrade. At the same time, the stability of the application after the upgrade is ensured.
[0090] During specific implementation, the management personnel (eg, tenants) may configure the functions of the inspection nodes, each business node, and each test node in advance through a controller (eg, a cloud management platform).
[0091] For example, for a service node, the administrator can configure traffic mirroring rules for each service node through the controller. The traffic mirroring rules can, for example, specify which traffic of the service node needs to be provided to the test node as mirrored traffic, through which ports the mirrored traffic is provided to the test node, etc.
[0092] Or, for example, the administrator may configure a port rule for each test node through the controller, and the port rule may indicate through which ports the test node may receive mirrored traffic from the business node.
[0093] Or for example, the administrator may configure different inspection indicators for the inspection node through the controller, so as to obtain corresponding indicator data from each business node and each test node according to the different inspection indicators.
[0094] Or for example, the administrator can configure a verification strategy for the verification node through the controller. The verification strategy may include, for example, a statistical data comparison method, an allowable deviation range, etc., so that the verification node analyzes the correctness and stability of the second version to be upgraded of the target application according to the preset verification strategy.
[0095] After the function configuration of each node is completed, the service node and / or the test node may provide corresponding statistical data to the inspection node according to the configuration during the software operation. For example, when the service node runs the first version of the target application program normally, it may record the operation log and the like as statistical data, and provide the statistical data to the inspection node. Or, for example, after obtaining the first mirrored traffic, the test node may record the operation log and the like as statistical data in the same way as the service node, and provide the statistical data to the inspection node. For the sake of distinction, the statistical data provided by the service node may be referred to as the first statistical data, and the statistical data provided by the test node may be referred to as the second statistical data.
[0096] In a specific implementation, each test node of the test cluster can start running the second version deployed thereon, and open the mirror traffic transmission port of the test cluster connected to the business node through the controller to receive the first mirror traffic of the business node. Each test node can obtain second statistical data based on the received first mirror traffic, and report the second statistical data to the inspection node. At the same time, each server as a business node can report the first statistical data obtained in the same time period as the second statistical data to the inspection node.
[0097] After obtaining the first statistical data and the second statistical data, the verification node can verify the first statistical data and the second statistical data to obtain corresponding verification results. Further, the verification node can analyze whether the obtained verification results meet the preset verification strategy. For example, if the first statistical data and the second statistical data are both indicator data required by the preset verification strategy, and the data of the two are consistent or within the allowable data deviation range, it is considered that the inspection of the second version has passed, indicating that the second version is the correct version to be upgraded. At this time, the controller can control each server to upgrade the target application from the first version to the second version. On the contrary, if the first statistical data and the second statistical data are inconsistent, it is considered that there is a problem with the second version and it is an incorrect version, and each server is refused (or prohibited) from upgrading the target application from the first version to the second version.
[0098] During the process of releasing the software upgrade on the first server in the at least one server, the controller can be controlled to close the communication port between the diversion entity and the first server, so that the diversion entity automatically balances the service requests (or load) from the user to other service nodes to perform version upgrades on the first server. After the upgrade is completed on the first server, the controller can control the opening of the communication port between the first server and the diversion entity to introduce the diversion entity traffic. At the same time, the controller can open the mirror port between the first server and the test node so that the test node receives the second mirror traffic from the first server. At this time, based on the same method, the first server can provide cloud services through the second version of the target application set thereon, and provide the third statistical data to the inspection node at the same time. The test node is provided with the first version of the target application, and can provide the fourth statistical data to the inspection node based on the same method using the received second mirror traffic.
[0099] The verification node verifies the third statistical data according to the fourth statistical data. If the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded, and the verification can be stopped, and the server can continue to provide the target cloud service to the user based on the upgraded second version of the target application, and the same method is used to upgrade and verify other servers until the application upgrade of all servers is completed. If the verification of the third statistical data fails, it means that the second version runs successfully. If the verification result indicates that the second version runs incorrectly, the data of the test node is used and the data of the first server is discarded. At the same time, the verification node determines that the upgrade of the target application on at least one server has failed, and the target application set on the first server that has completed the upgrade can be rolled back from the second version to the first version, and at the same time, the application upgrade process for other servers is suspended.
[0100] In some optional implementations, the second version of the target application may also be subjected to a traffic stress test by using mirrored traffic and a test cluster to verify the correctness of the stress test of the second version.
[0101] In the above upgrade process, after the functions of different nodes of the cloud service system are configured, since the server cluster supports mirroring capabilities as an online business cluster, the traffic mirroring can be provided to the test cluster, so that the test cluster uses mirrored traffic for inspection and upgrade operations, which can not affect or minimize the impact on online business, and achieve lossless upgrade. The front-end diversion entity does not need to perform any parallel operation, but only needs to configure traffic mirroring rules for business nodes through the controller with simple operations and a smaller range of changes, which can ensure the communication security of the cloud service system. As a mirror cluster of the online business cluster, the test cluster can accurately and real-time verify the correctness of business processing. At the same time, the test node only needs to be carried on the load of an online device, and the application upgrade inspection can be realized with less overhead. The test node uses the same resources as the business node, and can also be reused in idle time, that is, the test node is used as a business node to provide cloud services when the inspection process based on the test node is not started.
[0102] For ease of understanding, the following takes the network traffic measurement service as an example of the cloud service provided, and describes in detail the method for performing upgrade inspection on the application software that provides the network traffic measurement service.
[0103] like Figure 4 As shown, the diversion entity can be a diversion switch, and the online service cluster can include at least one type of service node, such as at least one programmable switch and a database, which are represented as programmable switch 1, programmable switch 2 and database 1 respectively. The diversion switch can use a trunk port to connect to multiple programmable switches, and the traffic can be load balanced to multiple programmable switches in the service cluster in an ECMP manner. The programmable switch can perform bandwidth statistics on the traffic sent from the diversion switch and store the obtained statistical data in the database.
[0104] A test cluster can be directly connected to the service cluster. The test cluster is deployed with a programmable switch and a database, for example, represented as a programmable switch 3 and a database 2.
[0105] like Figure 4 As shown in the figure, each programmable switch of the online service cluster is deployed with the online application version 1.0 of the network flow measurement service. After functional iteration, the application version 2.0 is ready to be released. The performance of application version 2.0 is greatly improved compared with application version 1.0. The new version function can be tested and verified through the test cluster and verification node, as shown in the figure. Figure 5 As shown, the process may include the following steps:
[0106] S10: The administrator sends configuration information to the business node, the test node, and the verification node through the controller.
[0107] For ease of distinction, the configuration information sent to the inspection node may be referred to as the first configuration information, and the first configuration information may be used to indicate a preset inspection strategy, which includes at least one of the following: at least one inspection indicator, a data inspection method corresponding to the same inspection indicator, or a data deviation range. The configuration information sent to a service node (such as a programmable switch or a database) may be referred to as the second configuration information, and the second configuration information may include the type of mirrored traffic and the sending port information of the mirrored traffic. The configuration information sent to the test node may be referred to as the third configuration information, and the third configuration information may include the receiving port information of the mirrored traffic. The configuration process can be found in the relevant description above and will not be repeated here.
[0108] S20: When programmable switch 1 and programmable switch 2 operate normally as online service nodes, they record logs and write traffic bandwidth statistics to database 1 according to a preset period (e.g., 5 minutes). Database 1, as a service node, can also count database information.
[0109] S30: In a process branch, verifying the correctness of the version to be upgraded of the business cluster includes the following steps:
[0110] S31: Start the upgraded version 2.0 software in the test cluster, and open the port of the mirror module of a service node connected to the test cluster through the controller, so that the test cluster receives the mirror traffic of a service node of the service cluster through the port.
[0111] S32: The programmable switch 3 operates as a test node based on the received mirrored traffic and records logs. At the same time, the traffic bandwidth statistics are written into the database 2 according to a preset period (for example, 5 minutes). The database 2, as a business node, also counts database information.
[0112] S33: After running for a period of time, the verification node obtains the first statistical data from the business cluster and the second statistical data from the test cluster, and performs correctness verification in the following manner:
[0113] The inspection node obtains the database information of the business cluster and the test cluster at a certain point in time after the test cluster is started, and the log information of the business cluster and the test cluster, and compares and analyzes the statistical data sent by the business cluster and the statistical data sent by the test cluster. If the data is consistent or within the allowable deviation range, it is considered that the upgrade version 2.0 has passed the test; otherwise, there is a problem with the upgrade version 2.0.
[0114] S40: In another process branch, stress test the performance of the new version:
[0115] On the basis of the above functional tests S31-S33, the ports of the test cluster connected to other business nodes are opened through the controller control, so that the traffic of multiple business nodes can be accessed on the same test node, and the traffic stress test is realized through a many-to-one mapping relationship.
[0116] Execute S20, and each business node sends log and other statistical data to the inspection node.
[0117] Execute steps S31-S33, and the verification node uses the same method to verify the correctness of the stress test of the upgraded version 2.0.
[0118] S50: Upgrade and release the new version of the application at each business node.
[0119] Exemplarily, the controller may control the at least one server to upgrade the target application from the first version to the second version in any of the following ways: rolling upgrade or grayscale release. Usually, the upgrade release process of the new version may be started after completing the version correctness verification process of S30 and / or the stress testing process of S40:
[0120] like Figure 6 As shown, during the upgrade and release of the new version, version 1.0 can be deployed on the programmable switch 3 as a test node, and the port of the programmable switch 1 that is connected as an online service node and to be upgraded can be opened through the controller to receive the traffic of the node to be upgraded. At the same time, the communication port between the programmable switch 1 and the shunt switch is closed, so that the shunt switch automatically balances the load to other online service nodes and performs a version upgrade on the programmable switch 1. After the version upgrade of the programmable switch 1 is completed, the controller can control the opening of the mirror port between the programmable switch 1 and the programmable switch 3, and the opening of the communication port between the programmable switch 1 and the shunt switch to introduce the shunt entity traffic. After running for a preset period of time, the inspection node can verify the running result of the new version 2.0 set on the programmable switch 1 according to the same process of S31-S33. If the running result meets the preset inspection strategy, the verification is considered successful.
[0121] Furthermore, the upgrade release process can be repeated for the next node to be upgraded until all service nodes in the online service cluster complete the application upgrade. If the test fails for each service node, the data of the test node is used, the data of the online service node is discarded, and the online service node that has completed the upgrade is rolled back to the old version 1.0.
[0122] So far, the application upgrade method of the embodiment of the present application has been introduced in detail in combination with the above-mentioned network traffic measurement service. Through the above-mentioned method, after the functional configuration of different nodes of the cloud service system, since the server cluster supports mirroring capabilities as an online business cluster, the traffic mirroring can be provided to the test cluster, so that the test cluster uses mirrored traffic for inspection and upgrade operations, which can not affect or minimize the impact on online business, and achieve lossless upgrade. The front-end diversion entity does not need to perform any parallel operation, but only needs to configure traffic mirroring rules for business nodes through the controller with simple operations and a smaller range of changes, which can ensure the communication security of the cloud service system. As a mirror cluster of the online business cluster, the test cluster can accurately and real-time verify the correctness of business processing. At the same time, the test node only needs to be carried on the load of an online device, and the inspection of application upgrades can be realized with less overhead. The test node uses the same resources as the business node, and can also be reused in idle time, that is, the test node is used as a business node to provide cloud services when the inspection process based on the test node is not started.
[0123] Figure 7 The flowchart of the application upgrade method of the embodiment of the present application is shown in FIG. The method can be implemented by the verification node described above, such as Figure 7 As shown, the method may include the following steps:
[0124] S701: Receive first statistical data from at least one server and second statistical data from at least one test node, wherein a first version of a target application is set on the server, the target application is used to provide a target cloud service, and a second version of the target application to be upgraded is set on the test node, and the second version is used to obtain the second statistical data based on mirrored traffic from the at least one server.
[0125] S702: When the verification results of the first statistical data and the second statistical data meet a preset verification strategy, control the at least one server to upgrade the target application from the first version to the second version.
[0126] Figure 8 The flowchart of the application upgrade method of the embodiment of the present application is shown in FIG. The method can be implemented by the service node (eg, server) described above, such as Figure 8 As shown, the method may include the following steps:
[0127] S801: Send first statistical data to a verification node.
[0128] S802: Sending a first mirrored traffic to at least one test node, wherein the test node is provided with a second version of the target application to be upgraded, the second version being used to obtain second statistical data based on the first mirrored traffic, and the verification node being used to control the at least one server to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet a preset verification strategy.
[0129] Fig. 9 The flowchart of the application upgrade method of the embodiment of the present application is shown. The method can be implemented by the test node introduced above, such as Fig. 9 As shown, the method may include the following steps:
[0130] S901: Receive first mirrored traffic from at least one server.
[0131] S902: Obtain second statistical data based on the first mirrored traffic.
[0132] S903: Send the second statistical data to a verification node, wherein the verification node controls the at least one server to upgrade the target application from the first version to the second version when the verification result of the first statistical data and the second statistical data meets a preset verification strategy.
[0133] Figure 7-Figure 9 The specific implementation details of the application upgrade method shown can be found in the previous article combined with Figure 1-Figure 6 The relevant introduction will not be repeated here.
[0134] In combination with the above method embodiments, the embodiments of the present application also provide a communication device based on cloud computing technology, which can be used to execute the method executed by the server, verification node or test node in the above method embodiments.
[0135] like Fig.10 As shown, the device 1000 may include: a communication interface 1001 and a processing unit 1002 .
[0136] In one example, if the device 1000 is used to implement the method executed by the verification node, the communication interface 1001 can be used to receive first statistical data from at least one server and second statistical data from at least one test node, wherein a first version of a target application is set on the server, and the target application is used to provide a target cloud service, and a second version of the target application to be upgraded is set on the test node, and the second version is used to obtain the second statistical data based on the mirrored traffic from the at least one server; the processing unit 1002 can be used to control the at least one server to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet the preset verification strategy.
[0137] In another example, if the device 1000 is used to implement the method executed by the server, a first version of the target application is set on the communication device, and the target application is used to provide a target cloud service. The communication interface 1001 is used to send first statistical data to the verification node; send first mirror traffic to at least one test node, wherein the test node is provided with a second version of the target application to be upgraded, and the second version is used to obtain second statistical data based on the first mirror traffic, and the verification node is used to control the communication device to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet the preset verification strategy.
[0138] In another example, if the device 1000 is used to implement the method executed by the test node, a second version of the target application to be upgraded is set on the communication device, and the target application is used to provide a target cloud service. The communication interface 1001 is used to receive a first mirrored traffic from at least one server; the processing unit 1002 is used to obtain second statistical data based on the first mirrored traffic; the communication interface 1001 is used to send the second statistical data to the verification node, wherein the verification node controls the at least one server to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet the preset verification strategy.
[0139] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. Each functional unit in the embodiments of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0140] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0141] The present application also provides a computing device 1100. Fig.11 As shown, the computing device 1100 includes: a bus 1102, a processor 1104, a memory 1106, and a communication interface 1108. The processor 1104, the memory 1106, and the communication interface 1108 communicate through the bus 1102. The computing device 1100 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 1100.
[0142] The bus 1102 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 The bus 1102 may include a path for transmitting information between various components of the computing device 1100 (eg, the memory 1106, the processor 1104, and the communication interface 1108).
[0143] The processor 1104 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0144] The memory 1106 may include a volatile memory, such as a random access memory (RAM). The processor 1104 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0145] The memory 1106 stores executable program codes, and the processor 1104 executes the executable program codes to respectively implement the functions of the aforementioned cloud management platform and computing power runtime node, thereby implementing the method of the embodiment of the present application. That is, the memory 1106 stores instructions for executing the method of the embodiment of the present application.
[0146] The communication interface 1108 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1100 and other devices or a communication network.
[0147] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0148] like Fig.12 As shown, the computing device cluster includes at least one computing device 1100. The memory 1106 in one or more computing devices 1100 in the computing device cluster may store the same instructions for executing the method of the embodiment of the present application.
[0149] In some possible implementations, the memory 1106 of one or more computing devices 1100 in the computing device cluster may also store partial instructions for executing the method of the embodiment of the present application. In other words, the combination of one or more computing devices 1100 can jointly execute the instructions for executing the method of the embodiment of the present application.
[0150] It should be noted that the memory 1106 in different computing devices 1100 in the computing device cluster can store different instructions, which are respectively used to perform part of the functions of the cloud service system. That is, the instructions stored in the memory 1106 in different computing devices 1100 can implement the functions of one or more modules of the cloud management platform and the computing power runtime node.
[0151] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.13 A possible implementation is shown. Fig.13 As shown, two computing devices 1100A and 1100B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 1106 in the computing device 1100A stores instructions for executing the functions of the cloud management platform. At the same time, the memory 1106 in the computing device 1100B stores instructions for executing the functions of the computing power runtime node.
[0152] Fig.13 The connection method between the computing device clusters shown can be considered to be that the heterogeneous computing power provision method provided in this application requires users to customize functional configuration (such as storing large amounts of data) and implement computing functions, so it is considered to hand over the functions implemented by the computing power runtime node to the computing device 1100B for execution.
[0153] It should be understood that Fig. 9 The functions of the computing device 1100A shown in FIG. 1100A may also be completed by multiple computing devices 1100. Similarly, the functions of the computing device 1100B may also be completed by multiple computing devices 1100.
[0154] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to that of Fig.12 and Fig.13 The connection mode of the computing device cluster is different in that the memory 1106 in one or more computing devices 1100 in the computing device cluster may store the same instructions for executing the heterogeneous computing power providing method.
[0155] In some possible implementations, the memory 1106 of one or more computing devices 1100 in the computing device cluster may also store some instructions for executing the heterogeneous computing power providing method. In other words, the combination of one or more computing devices 1100 may jointly execute the instructions for executing the heterogeneous computing power providing method.
[0156] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be a software or program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes a heterogeneous computing power provision method.
[0157] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to perform a heterogeneous computing power provision method.
[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
[0159] An embodiment of the present application also relates to a processor, which is used to call a computer program or computer instruction stored in a memory so that the processor executes the above method embodiment.
[0160] The processor mentioned in any of the above places can be a general-purpose central processing unit, a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors for controlling the above Fig. 9 The integrated circuit for executing the program of the method in the illustrated embodiment. The memory mentioned in any of the above places can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), etc.
[0161] It should be understood that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0162] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0163] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0164] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A cloud service system, characterized in that: include: at least one server, on which a first version of a target application is set, the target application is used to provide a target cloud service and provide first statistical data to the verification node; at least one test node, on which a second version of the target application to be upgraded is set, the second version being used to obtain second statistical data based on the first mirrored traffic from the at least one server, and provide the second statistical data to the verification node; The verification node is used to obtain the first statistical data and the second statistical data, and when the verification results of the first statistical data and the second statistical data meet the preset verification strategy, control the at least one server to upgrade the target application from the first version to the second version.
2. The system according to claim 1, characterized in that The operating environment of the first version of the target application in the server is the same as the operating environment of the second version of the target application in the test node, and the at least one test node is further used to: obtain an image file sent by the administrator through the controller, and the image file is used to build an operating environment in the test node that is the same as that of the server.
3. The system according to claim 1 or 2, characterized in that: The inspection node is further used to obtain first configuration information sent by the management user through the controller, wherein the first configuration information is used to indicate the inspection strategy.
4. The system according to claim 3, characterized in that The preset inspection strategy includes at least one of the following: at least one inspection indicator, a data inspection method corresponding to the same inspection indicator, or a data deviation range.
5. The system according to any one of claims 1 to 4, characterized in that: The at least one server is further used to obtain second configuration information sent by the administrator through the controller, wherein the second configuration information includes the type of mirrored traffic and sending port information of the mirrored traffic.
6. The system according to any one of claims 1 to 5, characterized in that: The at least one test node is further used to: obtain third configuration information sent by the administrator through the controller, wherein the third configuration information includes receiving port information of the mirrored traffic.
7. The method according to any one of claims 3 to 6, characterized in that: The controller includes a cloud management platform, and the managers include tenants.
8. The system according to any one of claims 1 to 7, characterized in that: The controlling the at least one server to upgrade the target application from the first version to the second version includes: Control the at least one server to upgrade the target application from the first version to the second version in any of the following ways: a rolling upgrade way or a grayscale release way.
9. The system according to claim 8, characterized in that After the first server among the at least one server upgrades the target application from the first version to the second version, the server is further used to provide third statistical data to the verification node based on the second version, the test node is further used to set the first version of the target application and provide fourth statistical data to the verification node based on the second mirror traffic from the first server, and the verification node is further used to verify the third statistical data based on the fourth statistical data.
10. The system according to claim 9, characterized in that If the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded; if the verification of the third statistical data fails, the verification node determines that the target application on the at least one server has failed to be upgraded.
11. An application upgrade method, characterized in that: Applied to a verification node, the method comprises: Receiving first statistical data from at least one server and second statistical data from at least one test node, wherein a first version of a target application is set on the server, the target application is used to provide a target cloud service, and a second version of the target application to be upgraded is set on the test node, the second version is used to obtain the second statistical data based on mirrored traffic from the at least one server; When the verification results of the first statistical data and the second statistical data meet a preset verification strategy, the at least one server is controlled to upgrade the target application from the first version to the second version.
12. The method according to claim 11, characterized in that The operating environment of the first version of the target application in the server is the same as the operating environment of the second version of the target application in the test node.
13. The method according to claim 11 or 12, characterized in that: The method further comprises: First configuration information sent by a management user through a controller is obtained, wherein the first configuration information is used to indicate the inspection strategy.
14. The method according to claim 13, characterized in that The preset inspection strategy includes at least one of the following: at least one inspection indicator, a data inspection method corresponding to the same inspection indicator, or a data deviation range.
15. The method according to any one of claims 11 to 14, characterized in that After a first server among the at least one server upgrades the target application from the first version to the second version, the server is further configured to provide third statistical data to the verification node based on the second version, the test node is further configured to set the first version of the target application and provide fourth statistical data to the verification node based on second mirror traffic from the first server, and the method further includes: The third statistical data is verified according to the fourth statistical data, wherein if the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded; if the verification of the third statistical data fails, the verification node determines that the target application on the at least one server has failed to be upgraded.
16. An application upgrade method, characterized in that: Applied to a server, wherein a first version of a target application is provided on the server, wherein the target application is used to provide a target cloud service, and the method comprises: Sending first statistical data to the inspection node; A first mirrored traffic is sent to at least one test node, wherein the test node is provided with a second version of the target application to be upgraded, the second version is used to obtain second statistical data based on the first mirrored traffic, and the verification node is used to control the at least one server to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet a preset verification strategy.
17. The method according to claim 16, characterized in that The operating environment of the first version of the target application in the server is the same as the operating environment of the second version of the target application in the test node.
18. The method according to claim 16 or 17, characterized in that The method further comprises: Second configuration information sent by the administrator through the controller is obtained, wherein the second configuration information includes the type of mirrored traffic and the sending port information of the mirrored traffic.
19. The method according to any one of claims 16 to 18, characterized in that: The server controls the at least one server to upgrade the target application from the first version to the second version in any of the following ways: a rolling upgrade way or a grayscale release way.
20. The method according to claim 19, characterized in that After a first server among the at least one server upgrades the target application from the first version to the second version, the method further includes: Based on the second version, third statistical data is sent to the verification node, wherein the third statistical data is used for verification according to fourth statistical data, and the fourth statistical data is obtained based on the second mirror traffic from the first server. If the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded; if the verification of the third statistical data fails, the verification node determines that the target application on the at least one server has failed to be upgraded.
21. An application upgrade method, characterized in that: Applied to a test node, the test node is provided with a second version of a target application to be upgraded, the target application is used to provide a target cloud service, the method comprising: receiving first mirrored traffic from at least one server; Acquire second statistical data based on the first mirrored traffic; The second statistical data is sent to a verification node, wherein the verification node controls the at least one server to upgrade the target application from the first version to the second version when the verification result of the first statistical data and the second statistical data meets a preset verification strategy.
22. The method according to claim 21, characterized in that The operating environment of the first version of the target application in the server is the same as the operating environment of the second version of the target application in the test node, and the method further includes: An image file sent by a manager through a controller is obtained, where the image file is used to build an operating environment identical to that of the server at the test node.
23. The method according to claim 21 or 22, characterized in that The method further comprises: The third configuration information sent by the administrator through the controller is obtained, wherein the third configuration information includes receiving port information of the mirrored traffic.
24. The method according to any one of claims 21 to 23, characterized in that After a first server among the at least one server upgrades the target application from the first version to the second version, the server is further configured to provide third statistical data to the verification node based on the second version, and the test node is further configured to set the first version of the target application. The method further includes: Receiving second mirrored traffic from the first server; Based on the second mirror traffic, fourth statistical data is provided to the verification node, wherein the verification node is also used to verify the third statistical data according to the fourth statistical data, if the verification of the third statistical data passes, the verification node determines that the target application on the first server has been successfully upgraded; if the verification of the third statistical data fails, the verification node determines that the target application on the at least one server has failed to be upgraded.
25. A communication device, characterized in that: include: A communication interface, configured to receive first statistical data from at least one server and second statistical data from at least one test node, wherein a first version of a target application is provided on the server, the target application is used to provide a target cloud service, and a second version of the target application to be upgraded is provided on the test node, the second version is used to obtain the second statistical data based on mirrored traffic from the at least one server; A processing unit is used to control the at least one server to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet a preset verification strategy.
26. A communication device, characterized in that: The communication device is provided with a first version of a target application, the target application is used to provide a target cloud service, and the communication device includes: A communication interface, used to send first statistical data to a verification node; send first mirror traffic to at least one test node, wherein the test node is provided with a second version of the target application to be upgraded, the second version is used to obtain second statistical data based on the first mirror traffic, and the verification node is used to control the communication device to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet a preset verification strategy.
27. A communication device, characterized in that: The communication device is provided with a second version of a target application to be upgraded, the target application being used to provide a target cloud service, and the communication device comprises: A communication interface, configured to receive first mirrored traffic from at least one server; a processing unit, configured to obtain second statistical data based on the first mirrored traffic; The communication interface is used to send the second statistical data to a verification node, wherein the verification node controls the at least one server to upgrade the target application from the first version to the second version when the verification results of the first statistical data and the second statistical data meet a preset verification strategy.
28. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method as described in any one of claims 11-15, or executes the method as described in any one of claims 16-20, or executes the method as described in any one of claims 21-24.
29. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 11 to 15, or executes the method according to any one of claims 16 to 20, or executes the method according to any one of claims 21 to 24.
30. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 11 to 15, or executes the method according to any one of claims 16 to 20, or executes the method according to any one of claims 21 to 24.
