Service upgrading method and device, equipment and storage medium

By obtaining the configuration information of the service to be upgraded in the big data cloud platform, determining that the copy that is not in the working state is upgraded and starting grayscale service verification, the problem of inability to supply during the service upgrade iteration is solved, and the continuous supply of services and users are realized Improved experience.

CN119311288APending Publication Date: 2025-01-14CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411161184.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

In the big data cloud platform, it is difficult to maintain the effective supply of services during the service upgrade and iteration, resulting in decline in user experience, transaction failures and abnormal results.

Method used

By obtaining the configuration information of the service to be upgraded, confirming that the copy is not in the working state for upgrading, starting the grayscale service for verification, creating threads one by one and allocating resources, ensuring the rolling upgrade and rollback of the service, and ensuring that the service can be continuously supplied during the upgrade process .

Benefits of technology

It solves the problem that effective services cannot be provided during the service upgrade and iteration process, enhances the continuous supply capacity of services, and improves user experience and upgrade efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311288A_ABST
    Figure CN119311288A_ABST
Patent Text Reader

Abstract

The invention provides a service upgrading method and device, equipment and a storage medium. Relates to the field of financial big data clouds. The method comprises the steps of obtaining a to-be-upgraded service and corresponding configuration information, determining to-be-upgraded copies corresponding to the to-be-upgraded service in the big data cloud platform, determining at least one to-be-upgraded copy which is not in a working state at present according to a real-time running state of each to-be-upgraded copy, and upgrading the to-be-upgraded copy through the configuration information. And obtaining an upgraded copy. According to the real-time running state of the upstream dependency service corresponding to the to-be-upgraded copy, when it is determined that the upstream dependency service receives an access request and it is determined that the access request is the verification flow, the corresponding gray service is started to verify the correctness of the new version, and when verification passes, threads are established for the to-be-upgraded copy one by one to trigger the upgrading operation of the to-be-upgraded copy. According to the method provided by the invention, the continuous supply capability of each service forming the big data cloud platform is enhanced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial big data cloud, and in particular to a service upgrade method, device, equipment and storage medium. Background Art

[0002] With the continuous development of the big data field, financial enterprises have formed a proprietary platform through multiple big data system components, namely the big data cloud platform, which is provided to internal bank staff for business processing.

[0003] There are correlations between the various system components in the big data cloud platform. When the system component services within the big data cloud platform need to be upgraded and iterated, it is necessary to control the shutdown of the services to be upgraded so as to upgrade and iterate the services.

[0004] This will result in an inability to provide corresponding services to users during the downtime for upgrades and iterations, which will further cause transaction failures and abnormal transactions, affect business processing, and reduce user experience. Summary of the invention

[0005] The present application provides a service upgrade method, device, equipment and storage medium to solve the problem that the prior art is difficult to maintain effective service supply during the upgrade and iteration process, enhance the continuous supply capability of services, and improve user experience.

[0006] In a first aspect, the present application provides a service upgrade method, comprising: obtaining a service to be upgraded and configuration information of the service to be upgraded, the configuration information of the service to be upgraded including resources required to upgrade the service to be upgraded; determining each copy to be upgraded corresponding to the service to be upgraded, and the real-time running status of each copy to be upgraded, and determining at least one copy to be upgraded that is not currently in a working state according to the real-time running status; based on a copy to be upgraded that is not in a working state, upgrading the copy to be upgraded according to the configuration information of the service to be upgraded to obtain an upgraded copy; determining an upstream dependent service of the copy to be upgraded, and the real-time running status of the upstream dependent service; determining whether the corresponding access traffic is verification traffic when the upstream dependent service obtains an access request sent by a user terminal according to the real-time running status of the upstream dependent service; when it is determined to be verification traffic, starting the grayscale service of the upgraded copy, the grayscale service is used to verify the upgraded copy; when the verification passes, creating threads for the copies to be upgraded that are not in a working state one by one, and allocating resources to the threads to upgrade each copy to be upgraded of the service to be upgraded.

[0007] In one possible design, after starting the grayscale service of the upgraded replica, the method includes: generating a grayscale service network based on the grayscale service of the upgraded replica; according to the grayscale service network, routing the verification traffic to the upgraded replica through the upstream dependent service, and routing the verification traffic to the corresponding grayscale service through the upgraded replica, so as to run the upgraded replica on the grayscale service and verify the upgraded replica.

[0008] In a possible design, the service to be upgraded corresponds to n copies to be upgraded, where n is a positive integer greater than 1, and when verification is passed, threads are created for the copies to be upgraded that are not in a working state one by one, and resources are allocated to the threads to upgrade each copy to be upgraded of the service to be upgraded, including: when the verification is determined to be passed according to the running result of the upgraded copy, the upgraded copy is rolled back to the copy to be upgraded before the upgrade to obtain each copy to be upgraded corresponding to the service to be upgraded; the real-time running status of each copy to be upgraded corresponding to the service to be upgraded is obtained; the first copy to be upgraded that is not in a working state at the current moment is determined according to the real-time running status of each copy to be upgraded, and a first thread is created for the first copy to be upgraded, and resources are allocated to the first thread to perform a rolling upgrade on the first copy to be upgraded; a corresponding thread is created according to the rolling upgrade result of the first copy to be upgraded, and a rolling upgrade is performed on the service to be upgraded based on the corresponding thread.

[0009] In one possible design, a corresponding thread is created according to the rolling upgrade result of the first replica to be upgraded, and a rolling upgrade is performed on the service to be upgraded based on the corresponding thread, including: when the upgrade of the first replica to be upgraded is successful, a first upgraded replica is obtained; based on the first upgraded replica, the running status of each replica to be upgraded at the current moment is determined, the next replica to be upgraded that is not in a working state is obtained, and a next thread is created for the next replica to be upgraded; based on the next thread, the next replica to be upgraded is rolled over and upgraded; a thread is created according to the result of the rolling upgrade of the next replica to be upgraded, until all the replicas to be upgraded corresponding to the service to be upgraded are rolled over and upgraded to the corresponding upgraded replica, and the rolling upgrade of the service to be upgraded is terminated.

[0010] In a possible design, the method also includes: if any copy to be upgraded fails to upgrade, obtaining an abnormal upgraded copy corresponding to the copy to be upgraded; rolling back the abnormal upgraded copy to the copy to be upgraded, and stopping the creation of the next process; determining each thread before generating the abnormal upgraded copy, and each upgraded copy obtained after rolling back based on each previous thread; rolling back each upgraded copy obtained to the copy to be upgraded based on each previous thread, and obtaining each copy to be upgraded corresponding to the service to be upgraded, so that after repairing the fault corresponding to the upgrade failure, each copy to be upgraded corresponding to the service to be upgraded is rolled up one by one.

[0011] In one possible design, after any pending copy is successfully upgraded, the method includes: updating the traffic weight value corresponding to the successfully upgraded pending copy to a traffic open value, the traffic open value is used to enable the pending copy to wait for receiving an access request from a user terminal, and when receiving the access request, providing the user with a corresponding upgrade service based on the access request.

[0012] In one possible design, before upgrading the copy to be upgraded using the configuration information of the service to be upgraded, the method includes: deploying the configuration information of the service to be upgraded in a resource pool, obtaining a resource pool copy corresponding to the service to be upgraded, the resource pool copy being the upgraded copy after the upgrade; accordingly, after obtaining the resource pool copy, verifying the resource pool copy, and when the verification passes, recycling the resource pool copy back to the resource pool.

[0013] In one possible design, determining whether the corresponding access traffic is verification traffic includes: determining the corresponding label information according to the access request through a judge in the upstream dependent service; and determining whether the access traffic corresponding to the access request is verification traffic according to the label information.

[0014] In one possible design, when it is determined that it is not verification traffic, the method includes: obtaining the real-time operating status of each copy to be upgraded corresponding to the service to be upgraded; forwarding the access traffic to a target copy to be upgraded that is not in a working state through an upstream dependent service, and processing the access traffic through the target copy to be upgraded; determining whether the target copy to be upgraded has a corresponding downstream dependent service, and when it is determined that there is a downstream dependent service, routing the processed traffic to the downstream dependent service corresponding to the target copy to be upgraded; otherwise, routing the processed traffic to the user terminal that issued the access request.

[0015] In a second aspect, the present application provides a service upgrade device, including: an acquisition module, used to acquire the service to be upgraded and the configuration information of the service to be upgraded, the configuration information of the service to be upgraded including the resources required to upgrade the service to be upgraded; a processing module, used to determine each copy to be upgraded corresponding to the service to be upgraded, and the real-time running status of each copy to be upgraded, and determine at least one copy to be upgraded that is not currently in a working state according to the real-time running status; based on a copy to be upgraded that is not in a working state, the copy to be upgraded is upgraded according to the configuration information of the service to be upgraded to obtain an upgraded copy; it is also used to determine the upstream dependent service of the copy to be upgraded, and the real-time running status of the upstream dependent service; according to the real-time running status of the upstream dependent service, when the upstream dependent service obtains the access request sent by the user terminal, it is determined whether the corresponding access traffic is verification traffic; it is also used to start the grayscale service of the upgrade copy when it is determined to be verification traffic, and the grayscale service is used to verify the upgrade copy; when the verification passes, threads are created for the copies to be upgraded that are not in a working state one by one, and resources are allocated to the threads to upgrade each copy to be upgraded of the service to be upgraded.

[0016] In the third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor and a memory; the memory stores computer execution instructions; at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the service upgrade method as described in the first aspect above and various possible designs of the first aspect.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the service upgrade method as described in the first aspect and various possible designs of the first aspect are implemented.

[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the service upgrade method as described in the first aspect and various possible designs of the first aspect.

[0019] The service upgrade method, device, equipment and storage medium provided in the present application obtain the service to be upgraded and the configuration information of the service to be upgraded, determine the corresponding copy to be upgraded in the big data cloud platform based on the service to be upgraded, obtain the real-time running status of each copy to be upgraded, so as to determine at least one copy to be upgraded that is not currently in a working state from each copy to be upgraded, and upgrade the determined copy to be upgraded through the configuration information to obtain the corresponding upgraded copy. By obtaining the real-time running status of the upstream dependent service corresponding to the copy to be upgraded, when it is determined that the upstream dependent service receives an access request, when it is determined that the traffic indicated by the access request is a verification traffic, the grayscale service corresponding to the upgraded copy is started, and the correctness of the new version of the service to be upgraded is verified through routing communication with the grayscale service. When the verification is passed, threads are established for the copies to be upgraded one by one, and the upgrade operation of the corresponding copy to be upgraded is triggered according to the thread. Therefore, the problem that the prior art is difficult to provide effective services to users in the process of upgrading and iterating services is solved, the continuous supply capability of services is enhanced, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0021] Figure 1 It is an application scenario diagram of the service upgrade method;

[0022] Figure 2 The process of the service upgrade method provided in the embodiment of the present application Figure 1 ;

[0023] Figure 3 A schematic diagram of the structure of the big data cloud service governance platform provided in the embodiment of the present application;

[0024] Figure 4 The process of the service upgrade method provided in the embodiment of the present application Figure 2 ;

[0025] Figure 5 A schematic diagram of the structure of a service upgrade device provided in an embodiment of the present application;

[0026] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0027] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0029] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.

[0030] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0031] Figure 1 This is an application scenario diagram of the service upgrade method. Figure 1 As shown, the application scenario includes: a big data cloud platform 10, configuration information 20 and a bank staff member 30, wherein the big data cloud platform includes service 1, service 2...service k, wherein k is a positive integer greater than 1. In the normal work of bank staff, it is necessary to process customer services. For different businesses, relevant staff need to call multiple application systems for data collection, data calculation, data processing and / or data storage. At present, the existing technology calls various application systems based on the big data cloud platform, but the various services that make up the big data cloud platform need to be upgraded and iterated from time to time to maintain the normal operation of each application system, thereby providing effective services to relevant staff to handle related businesses.

[0032] Optionally, when service 1 (e.g., report service) in the big data cloud platform needs to be upgraded and iterated, the prior art manually controls the shutdown of the main system corresponding to the report service, and after the shutdown, the staff manually writes the configuration information of the new version of the report service into the main system corresponding to the report service, so that the main system updates the application system corresponding to the report service according to the configuration information. However, manually writing the configuration information takes a long time, and the prior art updates the report service application system through multiple manual participation, which reduces the efficiency of the upgrade and iteration, and during the upgrade and iteration process, the main system of the service to be upgraded needs to be shut down, thereby affecting the business handling of bank staff.

[0033] In response to the above technical problems, the present application proposes the following technical ideas: when obtaining the service to be upgraded and the configuration information of the service to be upgraded, determine the real-time running status of each copy to be upgraded and each copy to be upgraded corresponding to the service to be upgraded in the big data cloud platform, determine a copy to be upgraded that is not in working state at the current moment, and upgrade the copy to be upgraded through the configuration information of the service to be upgraded. After the upgrade is completed, determine the upstream dependent service corresponding to the copy to be upgraded and the real-time running status corresponding to the upstream dependent service. According to the real-time running status of the upstream dependent service, determine when the upstream dependent service is accessed, and further determine whether the access traffic is verification traffic. When it is determined to be verification traffic, the verification traffic is routed and forwarded to the upgraded copy and the grayscale service corresponding to the copy through the upstream dependent service, triggering the startup of the grayscale service to run the upgraded copy to verify whether the corresponding version has a fault. After the verification passes, automatically trigger the rollback and restoration of the upgraded copy, obtain the copy to be upgraded corresponding to the service to be upgraded, and trigger the establishment of upgrade threads for each copy to be upgraded. For any copy to be upgraded that is not in working state at the current moment, establish a corresponding thread and upgrade based on the thread, thereby upgrading the copies to be upgraded one by one. It solves the problem that the existing technology cannot provide corresponding services to users during the upgrade and generation selection process, enhances the continuous supply capability of services, improves service update efficiency, and improves user experience.

[0034] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0035] Figure 2 The process of the service upgrade method provided in the embodiment of the present application Figure 1 ,like Figure 2 As shown, the service upgrade method includes:

[0036] S201: Obtain services to be upgraded and configuration information of the services to be upgraded.

[0037] More specifically, the service to be upgraded and its configuration information are acquired. The configuration information of the service to be upgraded includes new version resources required for upgrading the service to be upgraded, such as configuration files and media of the new version.

[0038] Optionally, the service upgrade method provided in the embodiment of the present application is applied to a big data cloud service governance system. Before obtaining the service to be upgraded and the configuration information of the service to be upgraded, the initial configuration file and initial medium of the application to be deployed corresponding to the service to be upgraded before it is deployed are respectively obtained through the publisher image center and the configuration center in the big data cloud service governance system, and the initial configuration file and the initial medium are sent to the server corresponding to the application to be deployed in the big data cloud service governance system, and the application to be deployed is installed and deployed in the server according to the initial configuration file and the initial medium. After the installation and deployment is completed, the corresponding service is started until the service runs normally, waiting to receive the access request sent by the staff to the service.

[0039] Optionally, after each service in the big data cloud platform operates normally, the big data cloud service governance system waits for obtaining the services to be upgraded and the corresponding configuration information, and when at least any one service to be upgraded and the configuration information corresponding to the service to be upgraded are obtained, step S202 is executed.

[0040] S202: Determine each replica to be upgraded, and upgrade at least one replica to be upgraded that is not currently in a working state to obtain a corresponding upgraded replica.

[0041] More specifically, determine the individual copies to be upgraded corresponding to the service to be upgraded and the real-time running status of each copy to be upgraded, and determine at least one copy to be upgraded that is not currently in a working state based on the real-time running status; based on a copy to be upgraded that is not in a working state, upgrade the copy to be upgraded through the configuration information of the service to be upgraded to obtain an upgraded copy.

[0042] Optionally, after any pending copy is successfully upgraded, the traffic weight value corresponding to the successfully upgraded pending copy is updated to the traffic open value. The traffic open value is used to enable the pending copy to wait for receiving an access request from a user terminal, and when receiving the access request, provide the user with corresponding services based on the access request.

[0043] Exemplarily, after each service in the big data cloud platform operates normally, the operating status of each service is monitored in real time.

[0044] In a possible embodiment, when a service to be upgraded is obtained, each copy to be upgraded that is consistent with the service to be upgraded and exists in the big data cloud platform is determined, and the running status of each copy to be upgraded is obtained. According to the running status of each copy to be upgraded at the current moment, a copy to be upgraded that is not in a working state is selected, and the traffic weight value of the copy to be upgraded is adjusted to a traffic isolation value to prohibit the copy to be upgraded from receiving access requests initiated by users, and the copy to be upgraded is upgraded and iterated through the configuration file and medium corresponding to the service to be upgraded, and after the upgrade iteration is completed, the traffic weight value of the copy to be upgraded is updated from the traffic isolation value to the traffic open value to allow the upgraded copy to be upgraded to wait for receiving access requests initiated by users.

[0045] Exemplarily, when the traffic weight value is a traffic open value, the replica or service corresponding to the traffic open value is determined to be in a normal working mode. In the normal working mode, the replica or service can receive access requests and process the access requests. When the traffic weight value is a traffic isolation value, the replica or service corresponding to the traffic isolation value is determined to be in a shutdown working mode. In the shutdown working mode, the replica or service cannot receive access requests. The present application timely updates the corresponding traffic weight value before and after the upgrade of the replica to be upgraded, thereby timely switching the working mode of the replica to be upgraded, and triggering the execution of corresponding steps according to the working mode, thereby enhancing the governance of the upgrade iteration process of each service in the big data cloud platform, and promptly switching to the normal working module after the upgrade is completed, so as to promptly open the service channel to the user, avoid replica function failures in the normal operating state, and make it difficult to feedback responses to the user, thereby enhancing the stability of providing corresponding services to users.

[0046] Optionally, when there are k copies to be upgraded corresponding to the above-mentioned service to be upgraded, after selecting a copy to be upgraded that is not in a working state according to the operating status of the k copies to be upgraded at the current moment, it is determined whether there is at least one copy to be upgraded in a normal operating state among the (k-1) copies to be upgraded other than the above-mentioned copies to be upgraded that are not in a working state; when it is determined that there is still at least one copy to be upgraded in a normal operating state, the upgrade iterative step of the above-mentioned copy to be upgraded that is not in a working state is executed.

[0047] S203: Determine the upstream dependent service of the copy to be upgraded, and when the upstream dependent service obtains the access request sent by the user terminal, determine whether the corresponding access traffic is verification traffic.

[0048] More specifically, determine the upstream dependent service of the copy to be upgraded and the real-time operating status of the upstream dependent service; determine whether the corresponding access traffic is verification traffic when the upstream dependent service obtains the access request sent by the user terminal based on the real-time operating status of the upstream dependent service.

[0049] Optionally, determining whether the corresponding access traffic is verification traffic includes the following steps: determining corresponding label information according to the access request through a judge in an upstream dependent service; and determining whether the access traffic corresponding to the access request is verification traffic according to the label information.

[0050] In a possible embodiment, when the copy to be upgraded is successfully upgraded and the traffic weight value is updated to the traffic open value (such as the value "0"), the upstream dependent service of the copy to be upgraded and / or the service to be upgraded is determined, that is, the previous routing object of the copy to be upgraded and / or the service to be upgraded. Determine the real-time operating status corresponding to the upstream dependent service. If the operating status at the current moment indicates that the upstream dependent service has received an access request sent by the user terminal, determine whether the corresponding access traffic is verification traffic according to the access request. Among them, when the access traffic is verification traffic, it is determined that the access request is used to trigger the verification step of the new version of the service to be upgraded. When the access traffic is not verification traffic, such as business traffic, it is determined that the access request is used to trigger the old version of the copy to be upgraded or the old version of the copy to be upgraded to provide the user with the requested service function. The present application judges the access traffic through the upstream dependent service of the service to be upgraded, and matches different processing schemes according to the judgment result, so as to improve the spontaneity of the service upgrade iteration, enhance the governance of the service upgrade process, and reduce the management cost of the service upgrade.

[0051] Optionally, when it is determined that it is not verification traffic, the real-time operating status of each copy to be upgraded corresponding to the service to be upgraded is obtained; the access traffic is forwarded to a target copy to be upgraded that is not in a working state through the upstream dependent service, and the access traffic is processed through the target copy to be upgraded; it is determined whether there is a corresponding downstream dependent service for the target copy to be upgraded, and when it is determined that there is a downstream dependent service, the processed traffic is routed to the downstream dependent service corresponding to the target copy to be upgraded; otherwise, the processed traffic is routed to the user terminal that issued the access request.

[0052] In a possible embodiment, when it is determined that the access traffic is not verification traffic but business traffic (e.g., request traffic of loan work report), the real-time running status of each copy to be upgraded corresponding to the service to be upgraded is obtained, and according to the real-time running status of each copy to be upgraded, a copy to be upgraded that is not in working state is selected from the copies to be upgraded as the target copy to be upgraded, and the target copy to be upgraded is a copy of the service to be upgraded that has not been upgraded to the new version. The request traffic of the loan work report is routed from the upstream dependent service to the target copy to be upgraded, so that after receiving the request traffic of the loan work report, the target copy to be upgraded determines the target report data according to the request traffic of the loan work report, and determines whether there is a downstream dependent service corresponding to the target copy to be upgraded. When it is determined that there is a downstream dependent service, the target report data is routed to the downstream dependent service, and after the downstream dependent service receives the target report data, the target report data is processed and fed back to the user terminal after the processing is completed. This application determines the type of requested traffic and selects the corresponding routing path to forward the traffic, thereby ensuring timely response to user work requests and timely triggering verification steps for services that need to be verified, thereby enhancing the stability of continuous service provision to users during service upgrades.

[0053] S204: When it is determined to be verification traffic, the grayscale service of the upgraded copy is started based on the upstream dependent service, and when the verification passes, each copy to be upgraded of the service to be upgraded is upgraded.

[0054] More specifically, when it is determined to be verification traffic, the grayscale service of the upgraded copy is started, and the grayscale service is used to verify the upgraded copy; when the verification passes, threads are created for the copies to be upgraded that are not in working state one by one, and resources are allocated to the threads to upgrade each copy to be upgraded of the service to be upgraded.

[0055] Optionally, when it is determined to be verification traffic, after starting the grayscale service of the upgraded copy, the following steps are included: generating a grayscale service network based on the grayscale service of the upgraded copy; according to the grayscale service network, routing the verification traffic to the upgraded copy through the upstream dependent service, and routing the verification traffic to the corresponding grayscale service through the upgraded copy, so as to run the upgraded copy on the grayscale service and verify the upgraded copy.

[0056] In a possible embodiment, a grayscale service network is constructed based on upstream dependent services, upgraded copies, and grayscale services of upgraded copies, and the above-mentioned verification traffic is routed based on the grayscale service network, that is, the verification traffic is routed to the upgraded new version copy through the upstream dependent service, and the verification traffic is routed to the corresponding grayscale service through the new version copy, so that the verification traffic triggers the operation of the new version copy on the corresponding grayscale service, and the data indicated by the verification traffic is processed during the operation, and whether the version corresponding to the new version copy is correct is determined based on the operation result. This embodiment realizes that the request actually initiated by the user is automatically used to trigger the verification step of the new version, reducing the cost of upgrading and managing services in the big data cloud platform.

[0057] Optionally, the service to be upgraded corresponds to n copies to be upgraded, where n is a positive integer greater than 1, and when the verification is passed, threads are created for the copies to be upgraded that are not in a working state one by one, and resources are allocated to the threads to upgrade each copy to be upgraded of the service to be upgraded, including the following steps: when the verification is determined to be passed according to the running result of the upgraded copy, the upgraded copy is rolled back to the copy to be upgraded before the upgrade to obtain each copy to be upgraded corresponding to the service to be upgraded; the real-time running status of each copy to be upgraded corresponding to the service to be upgraded is obtained; according to the real-time running status of each copy to be upgraded, the first copy to be upgraded that is not in a working state at the current moment is determined, and a first thread is created for the first copy to be upgraded, and resources are allocated to the first thread to perform a rolling upgrade on the first copy to be upgraded; according to the rolling upgrade result of the first copy to be upgraded, a corresponding thread is created, and the service to be upgraded is rolled based on the corresponding thread.

[0058] Optionally, a corresponding thread is created according to the rolling upgrade result of the first copy to be upgraded, and the service to be upgraded is rolled over based on the corresponding thread, including the following steps: when the first copy to be upgraded is upgraded successfully, a first upgraded copy is obtained; based on the first upgraded copy, the running status of each copy to be upgraded at the current moment is determined, the next copy to be upgraded that is not in a working state is obtained, and a next thread is created for the next copy to be upgraded; the next copy to be upgraded is rolled over based on the next thread; a thread is created according to the result of the rolling upgrade of the next copy to be upgraded, until all the copies to be upgraded corresponding to the service to be upgraded are rolled over to the corresponding upgraded copies, and the rolling upgrade of the service to be upgraded is terminated.

[0059] In a possible embodiment, when there are three copies to be upgraded corresponding to the service to be upgraded in the big data cloud platform, namely, copy 1 to be upgraded, copy 2 to be upgraded, and copy 3 to be upgraded, after upgrading one of the copies to be upgraded that is not in the working state and verifying that the new version is correct, the copy of the new version is rolled back and restored according to the configuration information and medium of the new version during the upgrade, the corresponding copy to be upgraded is obtained, and the production phase is entered. Based on the current three copies to be upgraded, the respective operating states are determined, and when it is determined that both copies 1 to be upgraded and copy 2 to be upgraded are not in the working state according to each operating state, and copy 3 to be upgraded is in the working state, copy 1 to be upgraded is determined to be the first copy to be upgraded, and a first thread triggered by the successful rollback and restoration is established for copy 1 to be upgraded, and the configuration file and medium corresponding to the new version are allocated to the first thread, so as to perform a rolling upgrade operation on copy 1 to be upgraded, and after the rolling upgrade is completed, when it is determined that copy 1 to be upgraded is successfully upgraded according to the rolling upgrade result, the upgraded copy 1 of the new version is obtained. Based on the upgraded copy 1, the running status of the to-be-upgraded copy 2 and the to-be-upgraded copy 3 at the current moment is determined. If the to-be-upgraded copy 3 is not in the working state at the current moment, and the to-be-upgraded copy 2 is in the working state, a second thread triggered by the upgraded copy 1 is established for the to-be-upgraded copy 3, and the configuration file and medium corresponding to the new version are allocated to the second thread, so as to perform a rolling upgrade operation on the to-be-upgraded copy 3. When it is determined that the upgrade of the to-be-upgraded copy 3 is successful according to the rolling upgrade result, the upgraded copy 3 of the new version is obtained. Based on the upgraded copy 3, it is determined whether the to-be-upgraded copy 2 at the current moment is in the working state, and when it is determined that the to-be-upgraded copy 2 is not in the working state at the current moment, a third thread triggered by the upgraded copy 3 is established for the to-be-upgraded copy 2, and the configuration file and medium corresponding to the new version are allocated to the third thread, so as to perform a rolling upgrade operation on the to-be-upgraded copy 2, and after the rolling upgrade is successful, it is determined that the upgrade of the to-be-upgraded service is completed. This embodiment realizes the operation of upgrading and iterating services in the big data cloud platform, saves the degree of manual participation in the upgrade process, and improves the upgrade efficiency.

[0060] Optionally, if any of the copies to be upgraded fails to upgrade, an abnormal upgraded copy corresponding to the copy to be upgraded is obtained; the abnormal upgraded copy is rolled back to the copy to be upgraded, and creation of the next process is stopped; the threads before the abnormal upgraded copy is generated, and the upgraded copies obtained after rolling back based on the previous threads are determined; the upgraded copies obtained are rolled back to the copy to be upgraded based on the previous threads, and the upgraded copies corresponding to the service to be upgraded are obtained, so that after the fault corresponding to the upgrade failure is repaired, the upgraded copies corresponding to the service to be upgraded are rolled up one by one.

[0061] In a possible embodiment, when it is determined according to the rolling upgrade result that the upgrade of the replica 1 to be upgraded has failed, an abnormal upgraded replica 1 with an upgrade error of the new version is obtained, and a first thread triggered by the upgrade error is established for the abnormal upgraded replica 1, and the configuration file and medium corresponding to the old version are allocated to the first thread, and the instructions for upgrading the replicas 2 to be upgraded and the replicas 3 to be upgraded are suspended, so that the subsequent upgrade operations are stopped according to the first thread to ensure that the replica to be upgraded that is operating normally can provide the required services to the user when the upgrade fails, and the rolling restore operation is performed on the replica 3 to be upgraded until the restore is successful and the replica 1 to be upgraded is obtained. After that, the new version is repaired, and after the repaired version is verified, the steps shown in the above embodiment are performed on the replica 1 to be upgraded, the replica 2 to be upgraded and the replica 3 to be upgraded are performed based on the repaired version. In the production process of the upgrade iteration, when an upgrade failure occurs, the efficiency of the service upgrade is improved by uninterruptedly using rollback restoration and rollback upgrade, and the impact on the user's need to call the service for business processing is reduced.

[0062] This embodiment obtains the service to be upgraded and the corresponding configuration information, determines the running status of each copy of the service to be upgraded, upgrades a copy to be upgraded that is not in working state, determines the upstream dependent service and the corresponding real-time running status after the upgrade, and when it is determined that the accessed and verified traffic is forwarded to the grayscale service corresponding to the upgraded copy through the upstream dependent service to verify the version. After the verification is passed, each copy is upgraded one by one. This solves the problem that the existing technology cannot provide corresponding services to users during the upgrade and selection process, enhances the continuous supply capability of services, and improves user experience.

[0063] Optionally, during the daily operation of the big data cloud platform, it is necessary to ensure the stability of the traffic. For example, there is a pending service with a daily request volume of 10,000 pieces, and the pending service corresponds to two pending copies. The two pending copies carry 5,000 daily requests respectively, and the maximum load request volume of each pending copy is 8,000 pieces. When one pending copy is not in a working state (such as a normal operating state) and the other pending copy is in a working state, the traffic weight value corresponding to the pending copy in the normal operating state is updated to the traffic isolation value. After the update is completed, the pending copy is upgraded, and the grayscale service corresponding to the upgraded copy is verified. During the time period of upgrading the pending copy and verifying the corresponding grayscale service, the access request initiated by the user to the above-mentioned pending service is processed by another pending copy with a maximum load request volume of 8,000 pieces. If the total number of access requests initiated during the time period is 10,000, the other pending copy that has not been upgraded will cause a sudden increase in traffic, resulting in failure to support service provision.

[0064] Optionally, in order to improve the stability of maintaining user service access during the upgrade process, when the number of copies to be upgraded corresponding to the service to be upgraded is insufficient or limited in use according to actual scenarios, an upgrade iteration object for version verification can be generated based on the resource pool. The specific steps are as follows: Before upgrading the copy to be upgraded through the configuration information of the service to be upgraded, the configuration information of the new version of the service to be upgraded is deployed in the resource pool of the big data cloud platform to obtain the resource pool copy corresponding to the service to be upgraded. The resource pool copy is the upgraded copy after the upgrade. After obtaining the resource pool copy, verify the resource pool copy. When the verification passes, recycle the resource pool copy to the resource pool. Among them, the verification method is shown in steps S203 and S204, and this embodiment will not be described again. The present application performs upgrade verification through resource pool copies to improve the stability of service upgrades.

[0065] Exemplarily, the resource pool exists in the big data cloud platform and is used to store resources generated during the development and deployment of the big data cloud platform.

[0066] Exemplarily, the above-mentioned normal operating state is a state in which the corresponding copy is waiting to receive an access request, and the working state is a state in which the corresponding copy is processing an access request.

[0067] Figure 3 This is a schematic diagram of the structure of the big data cloud service governance platform provided in the embodiment of this application. Figure 3 As shown, the big data cloud service governance platform includes a service management unit, a traffic management unit, a fault management unit and a configuration management unit, wherein the service management unit includes a service discovery function, a service registration function, a monitoring and detection function and a service deployment function; the traffic management unit includes a dynamic routing function, a load balancing function, a traffic monitoring function and a service authentication function; the fault management unit includes a service fuse function, a node fuse function and a service self-healing function; the configuration management unit includes a version verification function, a version management function and a service grayscale function.

[0068] Optionally, the service deployment resources are managed through the big data cloud service governance platform, wherein the service deployment resources are resources for deploying the big data cloud platform, including but not limited to bare metal, virtual machines, and container clusters, etc. The big data cloud platform includes multiple services, for example, Figure 3 The service A shown includes at least one service of the big data cloud platform.

[0069] In a possible embodiment, the service A of the big data cloud platform is deployed through the service management unit in the big data cloud service governance platform, and the registered service A is obtained and service A is started. Based on the started service A, the copy of the service A is upgraded to a new version through the traffic management unit to obtain the grayscale service A corresponding to the new version, and the correctness of the new version is verified based on the grayscale service A. After the verification is passed, the grayscale service A is recycled to the resource pool of the big data cloud platform. Based on the configuration files and media corresponding to the verified new version, the old version of service A is rolled out in the production link to obtain the new version of service A.

[0070] based on Figure 3 The big data cloud service governance platform shown, the embodiment of the present application also provides a service upgrade method. Figure 4 The process of the service upgrade method provided in the embodiment of the present application Figure 2 .like Figure 4 As shown, the specific steps of the service upgrade method are as follows: Based on the service deployment function of the big data cloud service governance platform, the configuration files and corresponding media corresponding to each service are sorted out to obtain the operating environment corresponding to each service and the server corresponding to the operating environment, so as to deploy each service on the corresponding server. After the deployment is completed, the various services deployed in the big data cloud platform are started based on the service registration function, so that each service runs on the corresponding server. After each service is started and running, the current operating status of each service at each moment is detected in real time based on the monitoring and detection function, and the real-time operating status of each service is sent to the service discovery function, so as to determine the services and / or components of the big data cloud platform that are currently in normal operating state based on the service discovery function. Among them, the service discovery function in this embodiment is built and generated through the open source component nacos (Dynamic Naming and Configuration Servic), which is used to record the services running in the big data cloud platform and the current version numbers of each service, so as to distinguish whether the current service running version is a new version when the traffic is converted; the monitoring and inspection function is to diagnose the real-time running status of each service by continuously collecting the running status and running logs of the service through prometheus (open source system monitoring and alarm toolkit); the service deployment function realizes the deployment of the service on the big data cloud platform through process coding.

[0071] Optionally, after the service is deployed and running, the routing information of each service is registered with the gateway corresponding to the big data cloud platform based on the dynamic routing function in the traffic management unit, so as to effectively access the corresponding service through the registered gateway. The services deployed and / or created at different times are different. According to the dynamic changes of the services, the routing information corresponding to the big data cloud platform is continuously updated, and a unique routing information table at the current moment is provided to the big data cloud platform. After the routing information registration is completed, the corresponding service can be provided to the user. Based on the responsible balancing function, the access frequency of each copy corresponding to the accessed service is regulated according to the user's real-time access situation, the access frequency of the program corresponding to the busy copy is reduced, and the access frequency of the program corresponding to the unbusy copy is increased, thereby enhancing the stability of the user's access to the service process.

[0072] Optionally, when the service to be upgraded and the corresponding configuration information are obtained, the configuration information of the new version of the service to be upgraded is determined based on the configuration verification function in the configuration management unit, and any non-working copy to be upgraded corresponding to the service to be upgraded is upgraded to the new version based on the version management function. After the copy upgrade is completed, a grayscale service of the upgraded copy is generated based on the service grayscale function.

[0073] Optionally, after the replica upgrade is completed, the upstream dependent service corresponding to the service to be upgraded is determined based on the dynamic routing function, and when the upstream dependent service receives access traffic at the current moment based on the traffic monitoring function, it is determined whether the label corresponding to the current access traffic indicates business traffic or verification traffic, and the current access traffic is routed to the corresponding link through the target replica according to the determination result. Based on the link corresponding to the current access traffic, the downstream dependent object of the target replica in the link is determined, and the authority of the target replica to access the downstream dependent object is determined based on service authentication. When it is determined that the corresponding authority is possessed, the access traffic is controlled to be routed to the downstream dependent object to avoid routing invalid and illegal access requests, thereby improving the accuracy of traffic management during the service upgrade process. Among them, the balancing function is realized by combining the LB (Load Balanc) of the IAAS (Infrastructure as a Service) platform and the dynamic adjustment at the code level.

[0074] In a possible embodiment, when it is determined that the access request is a verification request, the access request is routed to the grayscale service of the upgraded copy through the upstream dependent service, and grayscale verification is performed based on the grayscale service to determine whether the new version is correct. After the grayscale verification passes, the rolling release step is performed so that each to-be-upgraded copy corresponding to the to-be-upgraded service is rolled-upgraded according to the configuration file and medium corresponding to the new version, and each to-be-upgraded copy is run after the upgrade is completed.

[0075] Exemplarily, during the upgrade of the service to be upgraded, when it is determined based on the traffic monitoring function that any of the upgraded copies corresponding to the service to be upgraded does not have additional service processing capabilities, the traffic weight value corresponding to the upgraded copy is updated to a value of 0 through the service fuse function to prohibit routing access requests to the upgraded copy, thereby avoiding an avalanche of non-upgraded copies during the upgrade process.

[0076] Exemplarily, the nodes corresponding to each to-be-upgraded copy of the service to be upgraded are monitored based on the traffic monitoring function. If a fault occurs in any virtual machine and / or container deployed by the to-be-upgraded copy, the node corresponding to the to-be-upgraded copy is blown through the node fuse function to prohibit routing access requests to the faulty node, thereby solving the problem of service function abnormalities caused by the failure of the virtual machine and / or container, which further leads to access request processing errors.

[0077] Exemplarily, before upgrading any copy to be upgraded, the traffic weight value corresponding to the copy to be upgraded needs to be updated to the traffic isolation value (value 0). If it is determined after the update that there is at least one access request sent by the service to be upgraded, the restart and recovery operation of the service to be upgraded is triggered by the service self-healing function to restore the service to be upgraded to normal operating state and process the above access request.

[0078] This embodiment determines the upstream dependent service of the service to be upgraded, obtains the access request based on the upstream dependent service to determine the matching link, routes the access request based on the link, verifies the grayscale service after upgrading a copy to be upgraded, and automatically triggers the rolling upgrade step after the verification passes, thereby realizing service governance of the big data cloud platform, reducing the degree of manual participation, and improving the stability of services provided to users during the upgrade process.

[0079] Figure 5 A schematic diagram of the structure of the service upgrade device provided in the embodiment of the present application, such as Figure 5 As shown, the service upgrade device includes: an acquisition module 501 and a processing module 502;

[0080] Among them, the acquisition module 501 is used to obtain the service to be upgraded and the configuration information of the service to be upgraded, and the configuration information of the service to be upgraded includes the resources required to upgrade the service to be upgraded; the processing module 502 is used to determine the various copies to be upgraded corresponding to the service to be upgraded, and the real-time running status of each copy to be upgraded, and determine at least one copy to be upgraded that is not currently in a working state according to the real-time running status; based on a copy to be upgraded that is not in a working state, the copy to be upgraded is upgraded according to the configuration information of the service to be upgraded to obtain an upgraded copy; it is also used to determine the upstream dependent service of the copy to be upgraded, and the real-time running status of the upstream dependent service; according to the real-time running status of the upstream dependent service, when the upstream dependent service obtains the access request sent by the user terminal, it is determined whether the corresponding access traffic is verification traffic; it is also used to start the grayscale service of the upgraded copy when it is determined to be verification traffic, and the grayscale service is used to verify the upgraded copy; when the verification passes, threads are created for the copies to be upgraded that are not in a working state one by one, and resources are allocated to the threads to upgrade each copy to be upgraded of the service to be upgraded.

[0081] In one possible design, the processing module 502 is also used to generate a grayscale service network based on the grayscale service of the upgraded copy after starting the grayscale service of the upgraded copy; according to the grayscale service network, the verification traffic is routed to the upgraded copy through the upstream dependent service, and the verification traffic is routed to the corresponding grayscale service through the upgraded copy, so as to run the upgraded copy on the grayscale service and verify the upgraded copy.

[0082] In one possible design, the processing module 502 is also used to determine that there are n copies to be upgraded corresponding to the service to be upgraded, where n is a positive integer greater than 1, and when the verification is passed, the upgraded copy is rolled back to the copy to be upgraded before the upgrade when the verification is determined to be passed according to the running result of the upgraded copy, so as to obtain each copy to be upgraded corresponding to the service to be upgraded; obtain the real-time running status of each copy to be upgraded corresponding to the service to be upgraded; determine the first copy to be upgraded that is not in a working state at the current moment according to the real-time running status of each copy to be upgraded, create a first thread for the first copy to be upgraded, and allocate resources to the first thread to perform a rolling upgrade on the first copy to be upgraded; create a corresponding thread according to the rolling upgrade result of the first copy to be upgraded, and perform a rolling upgrade on the service to be upgraded based on the corresponding thread.

[0083] In one possible design, the processing module 502 is also used to obtain a first upgraded copy when the first copy to be upgraded is successfully upgraded; based on the first upgraded copy, determine the running status of each copy to be upgraded at the current moment, obtain the next copy to be upgraded that is not in a working state, and create a next thread for the next copy to be upgraded; perform a rolling upgrade on the next copy to be upgraded based on the next thread; create a thread according to the result of the rolling upgrade of the next copy to be upgraded, until all copies to be upgraded corresponding to the service to be upgraded are rolled over to the corresponding upgraded copies, and then end the rolling upgrade of the service to be upgraded.

[0084] In one possible design, the processing module 502 is also used to obtain an abnormal upgraded copy corresponding to the copy to be upgraded when it is determined that any copy to be upgraded has failed to upgrade; roll back the abnormal upgraded copy to the copy to be upgraded, and stop creating the next process; determine each thread before generating the abnormal upgraded copy, and each upgraded copy obtained after rolling back based on each previous thread; roll back each upgraded copy obtained to the copy to be upgraded based on each previous thread, and obtain each copy to be upgraded corresponding to the service to be upgraded, so that after repairing the fault corresponding to the upgrade failure, each copy to be upgraded corresponding to the service to be upgraded can be rolled up one by one.

[0085] In one possible design, the processing module 502 is also used to update the traffic weight value corresponding to the successfully upgraded copy to a traffic open value after any copy to be processed is successfully upgraded. The traffic open value is used to enable the copy to be upgraded to wait for receiving an access request from a user terminal, and when receiving the access request, provide the user with a corresponding upgrade service based on the access request.

[0086] In one possible design, the processing module 502 is also used to deploy the configuration information of the service to be upgraded in the resource pool before upgrading the copy to be upgraded through the configuration information of the service to be upgraded, and obtain the resource pool copy corresponding to the service to be upgraded, and the resource pool copy is the upgraded copy after the upgrade; accordingly, after obtaining the resource pool copy, the resource pool copy is verified, and when the verification passes, the resource pool copy is recycled back to the resource pool.

[0087] In one possible design, the processing module 502 is also used to determine the corresponding label information according to the access request through the judgement in the upstream dependent service; and determine whether the access traffic corresponding to the access request is verification traffic according to the label information.

[0088] In one possible design, the processing module 502 is also used to obtain the real-time operating status of each copy to be upgraded corresponding to the service to be upgraded when it is determined that it is not verification traffic; forward the access traffic to a target copy to be upgraded that is not in a working state through an upstream dependent service, and process the access traffic through the target copy to be upgraded; determine whether the target copy to be upgraded has a corresponding downstream dependent service, and when it is determined that there is a downstream dependent service, route the processed traffic to the downstream dependent service corresponding to the target copy to be upgraded; otherwise, route the processed traffic to the user terminal that issues the access request.

[0089] The service upgrade device provided in the embodiment of the present application can be used to execute the technical solution of the service upgrade method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0090] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the processing module 502 can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above processing module 502. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0091] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device may include: a transceiver 601 , a processor 602 , and a memory 603 .

[0092] The processor 602 executes the computer execution instructions stored in the memory, so that the processor 602 executes the scheme in the above embodiment. The processor 602 can be a general-purpose processor, including a central processing unit CPU, a network processor (network processor, NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0093] The memory 603 is connected to the processor 602 via a system bus and completes communication between them. The memory 603 is used to store computer program instructions.

[0094] The transceiver 601 may be used to obtain tasks to be executed and configuration information of the tasks to be executed.

[0095] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.

[0096] The electronic device provided in the embodiment of the present application may be the terminal device of the above embodiment.

[0097] An embodiment of the present application also provides a chip for running instructions, which is used to execute the technical solution of the service upgrade method in the above embodiment.

[0098] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the service upgrade method of the above embodiment.

[0099] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, it can implement the technical solution of the service upgrade method in the above embodiment.

[0100] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0101] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.

[0102] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0103] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.

[0104] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

[0105] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0106] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0107] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0108] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic control unit or a main control device.

[0109] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A service upgrade method, characterized in that: include: Acquire a service to be upgraded and configuration information of the service to be upgraded, wherein the configuration information of the service to be upgraded includes resources required to upgrade the service to be upgraded; Determine each replica to be upgraded corresponding to the service to be upgraded and the real-time running status of each replica to be upgraded, and determine at least one replica to be upgraded that is not currently in a working state according to the real-time running status; Based on a copy to be upgraded that is not in a working state, the copy to be upgraded is upgraded according to the configuration information of the service to be upgraded to obtain an upgraded copy; Determine the upstream dependent service of the copy to be upgraded and the real-time running status of the upstream dependent service; determine whether the corresponding access traffic is verification traffic when the upstream dependent service obtains the access request sent by the user terminal according to the real-time running status of the upstream dependent service; When it is determined to be verification traffic, starting the grayscale service of the upgraded copy, wherein the grayscale service is used to verify the upgraded copy; When the verification is passed, threads are created for the copies to be upgraded that are not in the working state one by one, and resources are allocated to the threads to upgrade the copies to be upgraded of the services to be upgraded.

2. The method according to claim 1, characterized in that After starting the grayscale service of the upgraded copy, the method includes: Generate a grayscale service network based on the grayscale service of the upgraded copy; According to the grayscale service network, the verification traffic is routed to the upgraded copy through the upstream dependent service, and the verification traffic is routed to the corresponding grayscale service through the upgraded copy, so as to run the upgraded copy on the grayscale service and verify the upgraded copy.

3. The method according to claim 2, characterized in that The service to be upgraded corresponds to n copies to be upgraded, where n is a positive integer greater than 1, and when the verification is passed, threads are created for the copies to be upgraded that are not in a working state one by one, and resources are allocated to the threads to upgrade each copy to be upgraded of the service to be upgraded, including: When it is determined that the verification is passed according to the running result of the upgraded copy, the upgraded copy is rolled back to the copy to be upgraded before the upgrade, so as to obtain each copy to be upgraded corresponding to the service to be upgraded; Obtain the real-time running status of each to-be-upgraded copy corresponding to the to-be-upgraded service; Determine a first replica to be upgraded that is not in working state at the current moment according to the real-time running state of each replica to be upgraded, create a first thread for the first replica to be upgraded, and allocate resources to the first thread to perform a rolling upgrade on the first replica to be upgraded; A corresponding thread is created according to the rolling upgrade result of the first copy to be upgraded, and a rolling upgrade is performed on the service to be upgraded based on the corresponding thread.

4. The method according to claim 3, characterized in that Creating a corresponding thread according to the rolling upgrade result of the first replica to be upgraded, and performing a rolling upgrade on the service to be upgraded based on the corresponding thread, including: When the first copy to be upgraded is upgraded successfully, the first upgraded copy is obtained; Based on the first upgraded copy, determine the running status of each copy to be upgraded at the current moment, obtain the next copy to be upgraded that is not in the working state, and create a next thread for the next copy to be upgraded; The next replica to be upgraded is rolled based on the next thread; a thread is created according to the result of the rolling upgrade of the next replica to be upgraded, and the rolling upgrade of the service to be upgraded is terminated until all the replicas to be upgraded corresponding to the service to be upgraded are rolled into corresponding upgraded replicas.

5. The method according to claim 4, characterized in that The method further comprises: If any copy to be upgraded fails to be upgraded, the abnormal upgraded copy corresponding to the copy to be upgraded is obtained; Rolling back the abnormally upgraded copy to restore it to the copy to be upgraded, and stopping the creation of the next process; determining each thread before generating the abnormally upgraded copy, and each upgraded copy obtained after rolling back based on each previous thread; Based on the previous threads, each upgraded copy is rolled back to the copy to be upgraded, and each upgraded copy corresponding to the service to be upgraded is obtained, so that after the fault corresponding to the upgrade failure is repaired, each upgraded copy corresponding to the service to be upgraded is rolled upgraded one by one.

6. The method according to claim 4, characterized in that After any one of the pending copies is successfully upgraded, the method includes: The traffic weight value corresponding to the successfully upgraded copy to be processed is updated to the traffic open value, and the traffic open value is used to enable the copy to be upgraded to wait for receiving the access request issued by the user terminal, and when receiving the access request, provide the user with corresponding services based on the access request.

7. The method according to any one of claims 1 to 6, characterized in that: Before upgrading the copy to be upgraded using the configuration information of the service to be upgraded, the method includes: Deploy the configuration information of the service to be upgraded in a resource pool, and obtain a resource pool copy corresponding to the service to be upgraded, wherein the resource pool copy is an upgraded copy after the upgrade; Correspondingly, after obtaining the resource pool copy, the resource pool copy is verified, and when the verification passes, the resource pool copy is recycled into the resource pool.

8. The method according to claim 1, characterized in that Determine whether the corresponding access traffic is authentication traffic, including: The corresponding label information is determined according to the access request by a judge in the upstream dependent service; and whether the access traffic corresponding to the access request is verification traffic is determined according to the label information.

9. The method according to claim 8, characterized in that When it is determined that the traffic is not verification traffic, the method includes: Obtain the real-time running status of each to-be-upgraded copy corresponding to the to-be-upgraded service; Forwarding the access traffic to a target replica to be upgraded that is not in a working state through the upstream dependent service, and processing the access traffic through the target replica to be upgraded; Determine whether there is a corresponding downstream dependent service for the target copy to be upgraded. When it is determined that the downstream dependent service exists, route the processed traffic to the downstream dependent service corresponding to the target copy to be upgraded; otherwise, route the processed traffic to the user terminal that issued the access request.

10. A service upgrade device, characterized in that: include: An acquisition module, used to acquire a service to be upgraded and configuration information of the service to be upgraded, wherein the configuration information of the service to be upgraded includes resources required to upgrade the service to be upgraded; A processing module, used to determine each replica to be upgraded corresponding to the service to be upgraded, and the real-time running status of each replica to be upgraded, and determine at least one replica to be upgraded that is not currently in a working state according to the real-time running status; Based on a copy to be upgraded that is not in a working state, the copy to be upgraded is upgraded according to the configuration information of the service to be upgraded to obtain an upgraded copy; The processing module is used to determine the upstream dependent service of the copy to be upgraded and the real-time running status of the upstream dependent service; when the upstream dependent service obtains the access request sent by the user terminal, determine whether the corresponding access traffic is verification traffic according to the real-time running status of the upstream dependent service; The processing module is used to start the grayscale service of the upgraded copy when it is determined to be verification traffic, and the grayscale service is used to verify the upgraded copy; When the verification is passed, threads are created for the copies to be upgraded that are not in the working state one by one, and resources are allocated to the threads to upgrade the copies to be upgraded of the services to be upgraded.

11. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 9 when executed by a processor.

13. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 9 when being executed by a processor.