Application-based Gray Release Method, Device and Server
By evaluating application performance metrics and adjusting deployment strategies, the method ensures accurate and efficient gray-scale publishing, addressing low-quality deployment issues.
Patent Information
- Application Number
- CN202211052070.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2042-08-30
AI Technical Summary
In the prior art, the level of grayscale release construction of the application is low, resulting in the grayscale version being unable to be put into use and waste of resources.
By obtaining multiple operating indicators of the application, determining the actual grayscale release target value based on the indicator score. If it is greater than the threshold, grayscale release will be performed. Obtain the grayscale construction level of the target version, and generate a task to improve the actual grayscale construction level until the standard is reached.
Accurate grayscale release decisions have been achieved, the level of grayscale construction has been improved, and the quality and risk level of applications have been met.
Smart Images

Figure CN115408283B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to communication technologies, and in particular, to an application-based gray release method, apparatus, and server. Background Art
[0002] Currently, during the process of updating an old version of an application to obtain a new version of the application, gray release of the application is required. Among them, gray release is a release method that gradually and smoothly transitions from no release to official release.
[0003] In the prior art, the staff does not understand the necessity of gray release, and blindly implements the construction of the gray release environment, traffic allocation, gray-to-formal acceptance, etc. according to the existing application architectures of each application, resulting in a low level of gray construction of the gray version of the obtained application. As a result, the gray version cannot be put into use, wasting a large amount of gray development resources.
[0004] Therefore, there is an urgent need for a method that can accurately perform gray release construction on applications. Summary of the Invention
[0005] The present application provides an application-based gray release method, apparatus, and server to solve the technical problems of low gray release and gray construction levels of applications.
[0006] In a first aspect, the present application provides an application-based gray release method, including:
[0007] Obtain multiple running metrics of the application; wherein, the running metrics represent metrics regarding the running state attributes and importance of the application during operation, and each running metric corresponds to a metric score;
[0008] Determine the actual gray release target value of the application according to the metric scores of the multiple running metrics; wherein, the actual gray release target value represents the risk level of the current version of the application;
[0009] If it is determined that the actual gray release target value is greater than a preset threshold, determine that the state of the application is to be gray released, and in response to the gray release operation, obtain the target version of the application and the gray construction level grade of the target version.
[0010] Further, determining the actual gray release target value of the application according to the metric scores of the multiple running metrics includes:
[0011] Perform a summation process on the metric scores of the multiple running metrics to determine the actual gray release target value of the application.
[0012] Further, in response to the gray release operation, obtaining the target version of the application and the gray construction level grade of the target version includes:
[0013] In response to the gray release operation, obtaining the target version of the application, and acquiring multiple gray metrics of the target version and the actual gray construction level value of each gray metric; wherein, the gray metrics are used to determine the gray construction level grade of the application;
[0014] Based on the mapping relationship between the preset gray release target value and the gray construction strategy, determining the gray construction strategy corresponding to the actual gray release target value; wherein, the gray construction strategy is used to determine the standard gray construction level value of the gray metric;
[0015] According to the gray construction strategy corresponding to the actual gray release target value, determining the standard gray construction level value of each gray metric;
[0016] According to the actual gray construction level value of each gray metric and the standard gray construction level value of each gray metric, determining the gray construction level grade of the target version. Further, the method further includes:
[0017] If it is determined that the grade information corresponding to the gray construction level grade of the target version includes that the actual gray construction level value of at least one gray metric is less than the standard gray construction level value, determining the difference between the actual gray construction level value and the standard gray construction level value of at least one gray metric;
[0018] Generating a task for at least one gray metric according to the difference between the actual gray construction level value and the standard gray construction level value of at least one gray metric; wherein, the task is used to raise the actual gray construction level value of the gray metric to the standard gray construction level value, and the task includes an end date;
[0019] If it is determined that the tasks for at least one gray metric are completed on the end date, determining the status of the completed tasks, and determining the current gray construction level grade of the target version according to the status of the completed tasks.
[0020] Further, if it is determined that the tasks for at least one gray metric are completed on the end date, determining the status of the completed tasks, and determining the current gray construction level grade of the target version includes:
[0021] If it is determined that the tasks for at least one gray metric are completed on the end date, determining the actual gray construction level value of the gray metric corresponding to the completed tasks;
[0022] If it is determined that the actual gray-scale construction level value of the gray-scale index corresponding to the completed task is greater than or equal to the standard gray-scale construction level value of the completed task, then determine that the status of the completed task is a successful status, and determine that the level information corresponding to the current gray-scale construction level of the target version includes that the actual gray-scale construction level value of each gray-scale index is greater than or equal to the standard gray-scale construction level value;
[0023] If it is determined that the actual gray-scale construction level value of the gray-scale index corresponding to the completed task is less than the standard gray-scale construction level value of the completed task, then determine that the status of the completed task is a failed status, and determine that the level information corresponding to the current gray-scale construction level of the target version includes that the actual gray-scale construction level value of at least one gray-scale index is less than the standard gray-scale construction level value.
[0024] Further, the method further includes:
[0025] For the tasks in the failed status, repeatedly generate and execute the tasks to be processed until it is determined that the status of the tasks to be processed is a successful status.
[0026] Further, the method further includes:
[0027] Generate a model gap radar chart according to the difference; wherein, the model gap radar chart is used to indicate the actual gray-scale construction level value of each gray-scale index, the standard gray-scale construction level value of each gray-scale index, and the difference between the actual gray-scale construction level value and the standard gray-scale construction level value of each gray-scale index.
[0028] Further, the method further includes:
[0029] If it is determined that the actual gray-scale release target value is less than or equal to a preset threshold, then determine that the status of the application is that no gray-scale release is required.
[0030] In a second aspect, the present application provides a gray-scale release device based on an application, including:
[0031] A first acquisition unit, configured to acquire multiple operation indexes of the application; wherein, the operation indexes represent indexes of the operation state attributes and importance of the application during operation, and each operation index corresponds to an index score;
[0032] A first determination unit, configured to determine the actual gray-scale release target value of the application according to the index scores of the multiple operation indexes; wherein, the actual gray-scale release target value represents the risk level of the current version of the application;
[0033] A second determination unit, configured to determine that the status of the application is that gray-scale release is required if it is determined that the actual gray-scale release target value is greater than a preset threshold;
[0034] A third determination unit, configured to obtain a target version of an application and a gray-scale construction level grade of the target version in response to a gray-scale release operation.
[0035] Further, the first determination unit is specifically configured to:
[0036] Perform a summation process on the index scores of multiple said running metrics to determine an actual gray-scale release target value of the application.
[0037] Further, the third determination unit includes:
[0038] A first acquisition module, configured to obtain a target version of an application in response to a gray-scale release operation, and acquire multiple gray-scale metrics of the target version and an actual gray-scale construction level value of each gray-scale metric; wherein, the gray-scale metrics are used to determine a gray-scale construction level grade of the application;
[0039] A first determination module, configured to determine a gray-scale construction strategy corresponding to the actual gray-scale release target value based on a mapping relationship between a preset gray-scale release target value and a gray-scale construction strategy; wherein, the gray-scale construction strategy is used to determine a standard gray-scale construction level value of a gray-scale metric;
[0040] A second determination module, configured to determine a standard gray-scale construction level value of each gray-scale metric according to the gray-scale construction strategy corresponding to the actual gray-scale release target value;
[0041] A third determination module, configured to determine a gray-scale construction level grade of the target version according to the actual gray-scale construction level value of each gray-scale metric and the standard gray-scale construction level value of each gray-scale metric.
[0042] Further, the apparatus further includes:
[0043] A fourth determination unit, configured to determine a difference between an actual gray-scale construction level value and a standard gray-scale construction level value of at least one gray-scale metric if it is determined that the grade information corresponding to the gray-scale construction level grade of the target version includes that the actual gray-scale construction level value of at least one gray-scale metric is less than the standard gray-scale construction level value;
[0044] A first generation unit, configured to generate a task for at least one gray-scale metric according to the difference between the actual gray-scale construction level value and the standard gray-scale construction level value of at least one gray-scale metric; wherein, the task is used to raise the actual gray-scale construction level value of the gray-scale metric to the standard gray-scale construction level value, and the task includes an end date;
[0045] A fifth determination unit, configured to determine the status of the completed tasks if it is determined that the tasks of at least one gray scale index are completed on the end date, and determine the current gray scale construction level grade of the target version according to the status of the completed tasks.
[0046] Further, the fifth determination unit includes:
[0047] A fourth determination module, configured to determine the actual gray scale construction level value of the gray scale index corresponding to the completed tasks if it is determined that the tasks of at least one gray scale index are completed on the end date;
[0048] A fifth determination module, configured to determine that the status of the completed tasks is a successful status if it is determined that the actual gray scale construction level value of the gray scale index corresponding to the completed tasks is greater than or equal to the standard gray scale construction level value of the completed tasks, and determine that the grade information corresponding to the current gray scale construction level grade of the target version includes that the actual gray scale construction level value of each gray scale index is greater than or equal to the standard gray scale construction level value;
[0049] A sixth determination module, configured to determine that the status of the completed tasks is a failed status if it is determined that the actual gray scale construction level value of the gray scale index corresponding to the completed tasks is less than the standard gray scale construction level value of the completed tasks, and determine that the grade information corresponding to the current gray scale construction level grade of the target version includes that the actual gray scale construction level value of at least one gray scale index is less than the standard gray scale construction level value.
[0050] Further, the device further includes:
[0051] A second generation unit, configured to repeatedly generate and execute the tasks to be processed for the tasks in the failed status until it is determined that the status of the tasks to be processed is a successful status.
[0052] Further, the device further includes:
[0053] A third generation unit, configured to generate a model gap radar chart according to the difference value; wherein, the model gap radar chart is used to indicate the actual gray scale construction level value of each gray scale index, the standard gray scale construction level value of each gray scale index, and the difference value between the actual gray scale construction level value and the standard gray scale construction level value of each gray scale index.
[0054] Further, the device further includes:
[0055] A sixth determination unit, configured to determine that the status of the application is that no gray scale release is required if it is determined that the actual gray scale release target value is less than or equal to a preset threshold value.
[0056] In a third aspect, the present application provides a server, including a memory and a processor. A computer program that can run on the processor is stored in the memory. When the processor executes the computer program, the method described in the first aspect is implemented.
[0057] In a fourth aspect, the present application provides a computer-readable storage medium. Computer-executable instructions are stored in the computer-readable storage medium. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0058] In a fifth aspect, the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, the method described in the first aspect is implemented.
[0059] A method, device, and server for gray release based on an application provided by the present application obtain multiple running metrics of the application. Among them, the running metrics represent metrics related to the running state attributes and importance of the application during operation, and each running metric corresponds to a metric score. According to the metric scores of the multiple running metrics, the actual gray release target value of the application is determined. Among them, the actual gray release target value represents the risk level of the current version of the application. If it is determined that the actual gray release target value is greater than a preset threshold, it is determined that the state of the application is to be gray released, and in response to the gray release operation, the target version of the application and the gray construction level grade of the target version are obtained. In this solution, according to the metric scores of the multiple obtained running-related metrics, the actual gray release target value of the application is obtained, and then the actual gray release target value is compared with the preset threshold. If it is determined that the actual gray release target value is greater than the preset threshold, it means that the quality of the current version of the application is poor and the risk level is high. It is determined that the state of the application is to be gray released, and in response to the user's gray release operation, the target version of the application and the gray construction level grade of the target version are obtained. Therefore, through the actual gray release target value of the application, it can be determined whether the application should be gray released, and the gray construction level grade of the target version of the application can be obtained after the gray release operation, solving the technical problems of low gray release and gray construction levels of the application. Description of the Drawings
[0060] The drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments that conform to the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0061] Figure 1 It is a schematic flowchart of a method for gray release based on an application provided by an embodiment of the present application;
[0062] Figure 2 It is a schematic flowchart of another method for gray release based on an application provided by an embodiment of the present application;
[0063] Figure 3 A model gap radar chart for an application-based gray release method provided by an embodiment of the present application;
[0064] Figure 4 A flowchart of another application-based gray release method provided by an embodiment of the present application;
[0065] Figure 5 A structural diagram of an application-based gray release device provided by an embodiment of the present application;
[0066] Figure 6 A structural diagram of another application-based gray release device provided by an embodiment of the present application;
[0067] Figure 7 A structural diagram of a server provided by an embodiment of the present application.
[0068] Through the above drawings, specific embodiments of the present disclosure have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present disclosure in any way, but to illustrate the concept of the present disclosure to those skilled in the art by referring to specific embodiments. Detailed Description of Specific Embodiments
[0069] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure.
[0070] In one example, during the process of updating the old version of an application to obtain the new version of the application, it is necessary to perform gray release on the application. Among them, gray release is a release method that gradually and smoothly transitions from no release to official release. In the prior art, the staff does not understand the necessity of gray release, and blindly implements the construction of the gray release environment, traffic allocation, gray-to-formal acceptance, etc. according to the existing application architectures of each application, resulting in a low level of gray construction of the gray version of the application, and further resulting in the inability to put the gray version into use, wasting a large amount of gray development resources. Therefore, there is an urgent need for a method that can accurately determine whether an application needs to perform gray release construction.
[0071] An application-based gray release method, device, and server provided by the present application aim to solve the above technical problems in the prior art.
[0072] The following describes in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems with specific embodiments. The following several 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 with reference to the accompanying drawings.
[0073] Figure 1 It is a schematic flowchart of a method for gray release based on an application provided by an embodiment of the present application. As Figure 1 shown, the method includes:
[0074] 101. Obtain multiple running metrics of the application; where the running metrics represent the metrics of the running state attributes and importance of the application during the running process, and each running metric corresponds to a metric score.
[0075] Exemplarily, the execution subject of this embodiment can be a server, or a gray determination device or equipment based on the application, or other devices or equipment that can execute this embodiment, and there is no limitation thereto. In this embodiment, the execution subject is introduced as a server.
[0076] First, it is necessary to obtain multiple running metrics of the application. Each application is pre-set with multiple running metrics, and the multiple running metrics pre-set for each application are updated by the user in real time. The multiple running metrics can form a gray target evaluation model. Among them, the running metrics represent the metrics of the running state attributes and importance of the application during the running process. The running metrics include running state attribute metrics and importance metrics. The running metrics include multiple first-class metrics and second-class metrics. Each first-class metric includes multiple second-class metrics, and each second-class metric corresponds to a metric score.
[0077] For example, Table 1 for the running metrics is as follows:
[0078] Table 1
[0079]
[0080] The server can obtain multiple running metrics of the application from existing platforms. As shown in Table 2 below, Table 2 is used to introduce the acquisition channels of the running metrics:
[0081] Table 2
[0082]
[0083] 102. Determine the actual gray release target value of the application according to the metric scores of the multiple running metrics; where the actual gray release target value represents the risk level of the current version of the application.
[0084] Exemplarily, since the core concern of this application is the risk level of the application version release, it is mainly evaluated based on the importance index and the running state attribute index of the application, so as to obtain the actual gray release target value (a). The running indicators include multiple first-level indicators, and each first-level indicator includes multiple second-level indicators. Therefore, the server adds up the indicator scores of the second-level indicators in each first-level indicator to obtain the total value of each first-level indicator, and then adds up the total values of multiple first-level indicators to obtain the actual gray release target value of the application, and then can determine the risk level of the current version of the application.
[0085] 103. If it is determined that the actual gray release target value is greater than the preset threshold, it is determined that the status of the application is to be gray released, and in response to the gray release operation, the target version of the application and the gray construction level of the target version are obtained.
[0086] Exemplarily, the threshold is a pre-set value. The server compares the actual gray release target value with the preset threshold through the gray target evaluation model. If it is determined that the actual gray release target value is less than or equal to the preset threshold, it means that the quality of the application is high and the risk level is low, then it is determined that the status of the application is not to be gray released. If it is determined that the actual gray release target value is greater than the preset threshold, it means that the risk level of the application is high, and it is determined that the status of the application is to be gray released. In response to the user's gray release operation, the target version of the application and the gray construction level of the target version are obtained.
[0087] In the embodiment of this application, multiple running indicators of the application are obtained; wherein, the running indicators represent the indicators of the running state attributes and importance of the application during the running process, and each running indicator corresponds to an indicator score. According to the indicator scores of multiple running indicators, the actual gray release target value of the application is determined; wherein, the actual gray release target value represents the risk level of the current version of the application. If it is determined that the actual gray release target value is greater than the preset threshold, it is determined that the status of the application is to be gray released, and in response to the gray release operation, the target version of the application and the gray construction level of the target version are obtained. In this solution, according to the indicator scores of the obtained multiple running-related indicators, the actual gray release target value of the application is obtained, and then the actual gray release target value is compared with the preset threshold. If it is determined that the actual gray release target value is greater than the preset threshold, it means that the quality of the current version of the application is poor and the risk level is high. It is determined that the status of the application is to be gray released. In response to the user's gray release operation, the gray construction level of the target version of the application is obtained. Therefore, through the actual gray release target value of the application, it can be determined whether the application should be gray released, and the gray construction level of the target version of the application can be obtained after the gray release operation, solving the technical problems of low gray release and gray construction level of the application.
[0088] Figure 2 The flowchart of another application-based gray release method provided by the embodiments of the present application is shown as Figure 2 follows. The method includes:
[0089] 201. Obtain multiple running metrics of the application; where the running metrics represent the metrics of the running state attributes and importance of the application during the running process, and each running metric corresponds to a metric score.
[0090] Exemplarily, for this step, the server can refer to Figure 1 step 101 in, which will not be elaborated here.
[0091] 202. Sum up the metric scores of the multiple running metrics to determine the actual gray release target value of the application; where the actual gray release target value represents the risk level of the current version of the application.
[0092] Exemplarily, for this step, it can refer to Figure 1 step 102 in, which will not be elaborated here.
[0093] 203. If it is determined that the actual gray release target value is greater than the preset threshold, determine that the status of the application is to be gray released.
[0094] Exemplarily, for this step, it can refer to Figure 1 step 103 in, which will not be elaborated here.
[0095] 204. In response to the gray release operation, obtain the target version of the application, and obtain multiple gray metrics of the target version and the actual gray construction level value of each gray metric; where the gray metrics are used to determine the gray construction level grade of the application.
[0096] Exemplarily, the application includes multiple gray metrics, each gray metric includes multiple sub-metrics, each sub-metric corresponds to a metric score, and the multiple gray metrics form a gray release level evaluation model. Furthermore, the gray metrics can determine the gray construction level grade of the application. For example, the gray metrics include: application deployment strategy (b1), degree of continuous delivery automation (b2), physical gray version release strategy (b3), physical gray version release range (b4), physical gray service node deployment range (b5), and physical gray traffic diversion strategy (b6). As shown in the following table, Table 3 is used to introduce the sub-metrics of b1, Table 4 is used to introduce the sub-metrics of b2, Table 5 is used to introduce the sub-metrics of b3, Table 6 is used to introduce the sub-metrics of b4, Table 7 is used to introduce the sub-metrics of b5, and Table 8 is used to introduce the sub-metrics of b6.
[0097] Table 3
[0098]
[0099] Table 4
[0100]
[0101] Table 5
[0102]
[0103] Table 6
[0104]
[0105] Table 7
[0106]
[0107] Table 8
[0108]
[0109] For example, the server can obtain multiple gray - scale metrics of an application from an existing platform. As shown in Table 9 below, Table 9 is used to introduce the acquisition channels of gray - scale metrics:
[0110] Table 9
[0111]
[0112] In this step, when the user performs a gray - scale release operation and completes the gray - scale release operation, the server obtains the target version of the application and acquires multiple gray - scale metrics of the target version of the application. Then, based on multiple sub - metrics in each gray - scale metric, the actual gray - scale construction level value of each gray - scale metric is determined. The actual gray - scale construction level value of each gray - scale metric is equal to the metric score corresponding to one of the sub - metrics in the gray - scale metric.
[0113] 205. Determine the gray - scale construction strategy corresponding to the actual gray - scale release target value based on the mapping relationship between the preset gray - scale release target value and the gray - scale construction strategy; wherein, the gray - scale construction strategy is used to determine the standard gray - scale construction level value of the gray - scale metric.
[0114] Exemplarily, the mapping relationship between the gray - scale release target value and the gray - scale construction strategy is pre - stored in the server. Among them, the gray - scale construction strategy represents the rule information for determining the standard gray - scale construction level value of the gray - scale metric among multiple sub - metrics included in the gray - scale metric and the metric scores corresponding to the sub - metrics. Based on the mapping relationship between the preset gray - scale release target value and the gray - scale construction strategy, the server can determine the gray - scale construction strategy corresponding to the actual gray - scale release target value.
[0115] For example, as shown in the following table, Table 10 is used to introduce the gray - scale construction strategy:
[0116] Table 10
[0117]
[0118] 206. According to the gray-scale construction strategy corresponding to the actual gray-scale release target value, determine the standard gray-scale construction level value of each gray-scale index.
[0119] Exemplarily, the server determines one sub-index in each gray-scale index and the index score of one sub-index according to the gray-scale construction strategy corresponding to the actual gray-scale release target value, and then determines the index score of one sub-index as the standard gray-scale construction level value of the corresponding gray-scale index.
[0120] 207. According to the actual gray-scale construction level value of each gray-scale index and the standard gray-scale construction level value of each gray-scale index, determine the gray-scale construction level grade of the target version.
[0121] Exemplarily, based on the actual gray-scale construction level value of each gray-scale index, sum the actual gray-scale construction level values of multiple gray-scale indexes to obtain the actual total gray-scale construction level value. Based on the standard gray-scale construction level value of each gray-scale index, add the standard gray-scale construction level values of multiple gray-scale indexes to obtain the applied standard total gray-scale construction level value. Determine the difference between the actual total gray-scale construction level value and the standard total gray-scale construction level value, and determine the gray-scale construction level grade of the target version according to the difference. The method for determining the gray-scale construction level grade is not limited.
[0122] For example, the applied standard total gray-scale construction level value is 10 points, the applied actual total gray-scale construction level value is 8 points, and the difference between the actual total gray-scale construction level value and the standard total gray-scale construction level value is 2 points. Moreover, the corresponding relationship between the difference and the gray-scale construction level grade is pre-stored in the server. The range of the difference includes 1 - 3 points, 4 - 6 points, and 7 - 10 points, etc. The gray-scale construction level corresponding to 1 - 3 points is good, the gray-scale construction level corresponding to 4 - 6 points is relatively good, and the gray-scale construction level corresponding to 7 - 10 points is poor. Therefore, the server can determine that the gray-scale construction level grade of the application is good.
[0123] 208. If it is determined that the grade information corresponding to the gray-scale construction level grade of the target version includes that the actual gray-scale construction level value of at least one gray-scale index is less than the standard gray-scale construction level value, determine the difference between the actual gray-scale construction level value and the standard gray-scale construction level value of at least one gray-scale index.
[0124] Exemplarily, since the gray-scale construction level grade of the target version is determined based on the actual gray-scale construction level value and the standard gray-scale construction level value of each gray-scale index, by comparing the actual gray-scale construction level value and the standard gray-scale construction level value of each gray-scale index, the magnitude relationship between the actual gray-scale construction level value and the standard gray-scale construction level value of each gray-scale index can be obtained. Therefore, the grade information includes the magnitude relationship between the actual gray-scale construction level value and the standard gray-scale construction level value of each gray-scale index. If it is determined that the grade information corresponding to the gray-scale construction level grade of the target version includes that the actual gray-scale construction level value of at least one gray-scale index is less than the standard gray-scale construction level value, then the actual gray-scale construction level value of the at least one gray-scale index is subtracted from the standard gray-scale construction level value to obtain the difference between the actual gray-scale construction level value and the standard gray-scale construction level value of the at least one gray-scale index.
[0125] 209. Generate tasks for at least one gray-scale index according to the difference between the actual gray-scale construction level value and the standard gray-scale construction level value of the at least one gray-scale index; wherein, the tasks are used to raise the actual gray-scale construction level value of the gray-scale index to the standard gray-scale construction level value, and the tasks include an end date.
[0126] Exemplarily, the server can automatically generate to-do tasks according to the difference between the actual gray-scale construction level value and the standard gray-scale construction level value of each gray-scale index for the capabilities to be improved, generate to-do tasks according to applications and departments, and issue them to the project teams corresponding to the applications. The project teams receive the tasks and submit the improvement plan date, and the improvement plan date is the end date for completing the to-do tasks.
[0127] 210. If it is determined that the tasks for at least one gray-scale index are completed by the end date, determine the status of the completed tasks, and determine the current gray-scale construction level grade of the target version according to the status of the completed tasks.
[0128] In one example, step 210 includes: if it is determined that the tasks for at least one gray-scale index are completed by the end date, determine the actual gray-scale construction level value of the gray-scale index corresponding to the completed tasks; if it is determined that the actual gray-scale construction level value of the gray-scale index corresponding to the completed tasks is greater than or equal to the standard gray-scale construction level value of the completed tasks, determine the status of the completed tasks as the success status, and determine that the grade information corresponding to the current gray-scale construction level grade of the target version includes that the actual gray-scale construction level value of each gray-scale index is greater than or equal to the standard gray-scale construction level value; if it is determined that the actual gray-scale construction level value of the gray-scale index corresponding to the completed tasks is less than the standard gray-scale construction level value of the completed tasks, determine the status of the completed tasks as the failure status, and determine that the grade information corresponding to the current gray-scale construction level grade of the target version includes that the actual gray-scale construction level value of at least one gray-scale index is less than the standard gray-scale construction level value.
[0129] Exemplarily, the server can automatically execute the to-do tasks, and when it is determined that at least one gray-scale indicator task has been completed on the end date, automatically obtain the gray-scale indicators of the application, calculate and verify whether each gray-scale indicator meets the standard, and determine the current gray-scale construction level of the target version of the application after the task is processed.
[0130] Specifically, the server compares the actual gray-scale construction level value of the gray-scale indicator corresponding to the completed task with the standard gray-scale construction level value corresponding to the completed task. If it is determined that the actual gray-scale construction level value of the gray-scale indicator corresponding to the completed task is greater than or equal to the standard gray-scale construction level value corresponding to the completed task, it is determined that each gray-scale indicator meets the standard, that is, the difference between the actual gray-scale construction level value and the standard gray-scale construction level value of the gray-scale indicator is 0. Then, the status of the to-do task is set to the success status, and it is determined that the level information corresponding to the current gray-scale construction level of the target version includes that the actual gray-scale construction level value of each gray-scale indicator is greater than or equal to the standard gray-scale construction level value.
[0131] Or, if it is determined that the actual gray-scale construction level value of the gray-scale indicator corresponding to the completed task is less than the standard gray-scale construction level value corresponding to the completed task, it is determined that the gray-scale indicator does not meet the standard. Then, the status of the to-do task is set to the failure status, indicating that the to-do task is overdue and not completed, and it is determined that the level information corresponding to the current gray-scale construction level of the target version includes that the actual gray-scale construction level value of at least one gray-scale indicator is less than the standard gray-scale construction level value.
[0132] 211. For the tasks in the failure status, repeatedly generate and execute the to-be-processed tasks until it is determined that the status of the to-be-processed tasks is the success status.
[0133] Exemplarily, for the tasks in the failure status, re-issue the supervision tasks to the corresponding project team and execute the to-be-processed tasks until it is determined that the status of the completed tasks is the success status, and then stop executing this step.
[0134] 212. Generate a model gap radar chart according to the difference; wherein, the model gap radar chart is used to indicate the actual gray-scale construction level value of each gray-scale indicator, the standard gray-scale construction level value of each gray-scale indicator, and the difference between the actual gray-scale construction level value and the standard gray-scale construction level value of each gray-scale indicator.
[0135] Exemplarily, the server can generate a model gap radar chart according to the difference of each gray-scale indicator. Figure 3 The model gap radar chart for a gray-scale determination method based on an application provided by an embodiment of the present application is as Figure 3As shown in the figure, the model gap radar chart is hexagonal, and each corner represents a gray scale index. Taking the counterclockwise direction as the standard, corner 1 is the application deployment strategy (b1), corner 2 is the degree of continuous delivery automation (b2), corner 3 is the physical gray scale version release strategy (b3), corner 4 is the physical gray scale version release scope (b4), corner 5 is the physical gray scale service node deployment scope (b5), and corner 6 is the physical gray scale traffic diversion strategy (b6). Curve 1 is obtained according to the standard gray scale construction level value of the application, and curve 2 is obtained according to the actual gray scale construction level value of the application. The intersection point of the line segment and curve 1, where the line segment is the line segment between each corner and the center point O of the radar chart, is the standard gray scale construction level value of the gray scale index of this corner. The intersection point of this line segment and curve 2 is the actual gray scale construction level value of the gray scale index of this corner. Furthermore, the difference between the actual gray scale construction level value and the standard gray scale construction level value located on the same line segment can be determined according to this radar chart.
[0136] As Figure 3 shown, the values of the 6 corners of the first hexagon close to the center point O are 1, and so on. The values of the 6 corners of the fifth hexagon close to the center point O are 5. Therefore, Table 11 is used to introduce the actual gray scale construction level value and the standard gray scale construction level value of each gray scale index in the model gap radar chart, as shown in Table 11 below:
[0137] Table 11
[0138]
[0139] Among them, b represents the actual gray scale construction level value, and b1, b2... b6 respectively represent the actual gray scale construction level values of each gray scale index; c represents the standard gray scale construction level value, and c1, c2... c6 respectively represent the standard gray scale construction level values of each gray scale index. Furthermore, according to b1 and c1, the gray scale construction level of the application deployment strategy can be intuitively determined, and so on. The gray scale construction level of each gray scale index can be obtained.
[0140] 213. If it is determined that the actual gray scale release target value is less than or equal to the preset threshold, then it is determined that the status of the application is that no gray scale release is required.
[0141] Exemplarily, if it is determined that the actual gray scale release target value is less than or equal to the preset threshold, then it is determined that the status of the application is that no gray scale release is required.
[0142] In the embodiments of the present application, multiple running metrics of an application are obtained; wherein, the running metrics represent the metrics regarding the running state attributes and importance of the application during the running process, and each running metric corresponds to a metric score. The metric scores of the multiple running metrics are summed to determine the actual gray release target value of the application; wherein, the actual gray release target value represents the risk level of the current version of the application. If it is determined that the actual gray release target value is greater than a preset threshold, it is determined that the state of the application is to be gray released. In response to the gray release operation, the target version of the application is obtained, and multiple gray metrics of the target version and the actual gray construction level value of each gray metric are obtained; wherein, the gray metrics are used to determine the gray construction level grade of the application. Based on the mapping relationship between the preset gray release target value and the gray construction strategy, the gray construction strategy corresponding to the actual gray release target value is determined; wherein, the gray construction strategy is used to determine the standard gray construction level value of the gray metrics. According to the gray construction strategy corresponding to the actual gray release target value, the standard gray construction level value of each gray metric is determined. According to the actual gray construction level value of each gray metric and the standard gray construction level value of each gray metric, the gray construction level grade of the target version is determined. If it is determined that the grade information corresponding to the gray construction level grade of the target version includes that the actual gray construction level value of at least one gray metric is less than the standard gray construction level value, the difference between the actual gray construction level value and the standard gray construction level value of at least one gray metric is determined. According to the difference between the actual gray construction level value and the standard gray construction level value of at least one gray metric, a task for at least one gray metric is generated; wherein, the task is used to raise the actual gray construction level value of the gray metric to the standard gray construction level value, and the task includes an end date. If it is determined that the task for at least one gray metric has been completed by the end date, the status of the completed task is determined, and the current gray construction level grade of the target version is determined according to the status of the completed task. For the tasks in the failed state, the pending tasks are repeatedly generated and executed until it is determined that the status of the pending task is the successful state. A model gap radar chart is generated according to the difference; wherein, the model gap radar chart is used to indicate the actual gray construction level value of each gray metric, the standard gray construction level value of each gray metric, and the difference between the actual gray construction level value and the standard gray construction level value of each gray metric. If it is determined that the actual gray release target value is less than or equal to the preset threshold, it is determined that the state of the application is not to be gray released. Therefore, through the actual gray release target value of the application, it can be determined whether the application should be gray released, and the gray construction level grade of the gray release of the application can be determined using the gray target evaluation model and the gray release level evaluation model, solving the technical problem of the low gray release and gray construction level of the application.Meanwhile, the improvement items for enhancing the canary release level can be guided according to the model gap radar chart, so that the actual canary construction level value of the canary metrics of the application matches the standard canary construction level value, realizing the directional improvement of the canary construction level of the application, enabling the canary release to be hierarchically managed, and making the value of the canary release measurable.
[0143] Exemplarily, Figure 4 FIG. is a schematic flowchart of another method for determining the canary of an application provided by an embodiment of the present application. As Figure 4 shown, the server first obtains canary metrics, operation metrics, etc. from six platforms such as the existing architecture asset information management platform, then calculates the canary metrics and operation metrics according to the platforms for calculation, and finally outputs a model gap radar chart and tasks to be done.
[0144] Figure 5 FIG. is a schematic structural diagram of a canary release device for an application provided by an embodiment of the present application. As Figure 5 shown, the device includes:
[0145] A first acquisition unit 31, configured to acquire multiple operation metrics of an application; wherein, the operation metrics represent the operation state attributes and importance metrics of the application during operation, and each operation metric corresponds to an index score.
[0146] A first determination unit 32, configured to determine the actual canary release target value of the application according to the index scores of the multiple operation metrics; wherein, the actual canary release target value represents the risk level of the current version of the application.
[0147] A second determination unit 33, configured to determine that the state of the application needs to perform canary release if it is determined that the actual canary release target value is greater than a preset threshold.
[0148] A third determination unit 34, configured to obtain the target version of the application and the canary construction level of the target version in response to the canary release operation.
[0149] The device in this embodiment can execute the technical solutions in the above method, and the specific implementation process and technical principle are the same, which will not be elaborated here.
[0150] Figure 6 FIG. is a schematic structural diagram of another canary release device for an application provided by an embodiment of the present application. On the basis of the embodiment shown in Figure 5 as Figure 6 shown, the first determination unit 32 is specifically configured to:
[0151] Sum up the index scores of the multiple operation metrics to determine the actual canary release target value of the application.
[0152] In one example, the third determination unit 34 includes:
[0153] The first acquisition module 341 is configured to obtain the target version of the application in response to the gray release operation, and acquire multiple gray scale metrics of the target version and the actual gray scale construction level value of each gray scale metric; wherein, the gray scale metrics are used to determine the gray scale construction level grade of the application.
[0154] The first determination module 342 is configured to determine the gray scale construction strategy corresponding to the actual gray release target value based on the mapping relationship between the preset gray release target value and the gray scale construction strategy; wherein, the gray scale construction strategy is used to determine the standard gray scale construction level value of the gray scale metric.
[0155] The second determination module 343 is configured to determine the standard gray scale construction level value of each gray scale metric according to the gray scale construction strategy corresponding to the actual gray release target value.
[0156] The third determination module 344 is configured to determine the gray scale construction level grade of the target version according to the actual gray scale construction level value of each gray scale metric and the standard gray scale construction level value of each gray scale metric.
[0157] In one example, the apparatus further includes:
[0158] The fourth determination unit 41 is configured to determine the difference between the actual gray scale construction level value and the standard gray scale construction level value of at least one gray scale metric if it is determined that the level information corresponding to the gray scale construction level grade of the target version includes the actual gray scale construction level value of at least one gray scale metric being less than the standard gray scale construction level value.
[0159] The first generation unit 42 is configured to generate tasks for at least one gray scale metric according to the difference between the actual gray scale construction level value and the standard gray scale construction level value of at least one gray scale metric; wherein, the tasks are used to raise the actual gray scale construction level value of the gray scale metric to the standard gray scale construction level value, and the tasks include an end date.
[0160] The fifth determination unit 43 is configured to determine the status of the completed tasks if it is determined that the tasks of at least one gray scale metric are completed by the end date, and determine the current gray scale construction level grade of the target version according to the status of the completed tasks.
[0161] In one example, the fifth determination unit 43 includes:
[0162] The fourth determination module 431 is configured to determine the actual gray scale construction level value of the gray scale metric corresponding to the completed tasks if it is determined that the tasks of at least one gray scale metric are completed by the end date.
[0163] The fifth determination module 432 is configured to, if it is determined that the actual gray-scale construction level value of the gray-scale index corresponding to the completed task is greater than or equal to the standard gray-scale construction level value of the completed task, determine that the status of the completed task is a successful status, and determine that the level information corresponding to the current gray-scale construction level of the target version includes that the actual gray-scale construction level value of each gray-scale index is greater than or equal to the standard gray-scale construction level value.
[0164] The sixth determination module 433 is configured to, if it is determined that the actual gray-scale construction level value of the gray-scale index corresponding to the completed task is less than the standard gray-scale construction level value of the completed task, determine that the status of the completed task is a failed status, and determine that the level information corresponding to the current gray-scale construction level of the target version includes that the actual gray-scale construction level value of at least one gray-scale index is less than the standard gray-scale construction level value.
[0165] In one example, the apparatus further includes:
[0166] The second generation unit 44 is configured to, for the tasks in the failed status, repeatedly generate and execute the tasks to be processed until it is determined that the status of the tasks to be processed is a successful status.
[0167] In one example, the apparatus further includes:
[0168] The third generation unit 45 is configured to generate a model gap radar chart according to the difference; wherein, the model gap radar chart is used to indicate the actual gray-scale construction level value of each gray-scale index, the standard gray-scale construction level value of each gray-scale index, and the difference between the actual gray-scale construction level value and the standard gray-scale construction level value of each gray-scale index.
[0169] In one example, the apparatus further includes:
[0170] The sixth determination unit 46 is configured to, if it is determined that the actual gray-scale release target value is less than or equal to a preset threshold, determine that the status of the application is that no gray-scale release is required.
[0171] The apparatus in this embodiment can execute the technical solutions in the above method, and the specific implementation process and technical principle are the same, and will not be elaborated here.
[0172] Figure 7 The following is a schematic structural diagram of a server provided by an embodiment of the present application, as Figure 7 shown, the server includes: a memory 51 and a processor 52.
[0173] The memory 51 stores a computer program that can run on the processor 52.
[0174] The processor 52 is configured to execute the method provided in the above embodiment.
[0175] The server further includes a receiver 53 and a transmitter 54. The receiver 53 is used to receive instructions and data sent by an external device, and the transmitter 54 is used to send instructions and data to the external device.
[0176] An embodiment of the present application also provides a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by a processor of the server, the server can execute the method provided in the above embodiment.
[0177] An embodiment of the present application also provides a computer program product. The computer program product includes: a computer program. The computer program is stored in a readable storage medium. At least one processor of the server can read the computer program from the readable storage medium, and the at least one processor executes the computer program to enable the server to execute the solution provided in any of the above embodiments.
[0178] After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily conceive of other embodiments of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0179] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. An application-based gray release method, characterized in that, Including: Obtaining multiple running metrics of an application; wherein, the running metrics represent metrics regarding the running state attributes and importance of the application during the running process, and each running metric corresponds to a metric score; Determining an actual gray release target value of the application according to the metric scores of the multiple running metrics; wherein, the actual gray release target value represents the risk level of the current version of the application; If it is determined that the actual gray release target value is greater than a preset threshold, determining that the state of the application is to be gray released, and in response to a gray release operation, obtaining a target version of the application and a gray construction level grade of the target version; If it is determined that the actual gray release target value is less than or equal to the preset threshold, determining that the state of the application is not to be gray released; The obtaining a target version of the application and a gray construction level grade of the target version in response to a gray release operation includes: In response to a gray release operation, obtaining a target version of the application, and obtaining multiple gray metrics of the target version and an actual gray construction level value of each gray metric; wherein, the gray metrics are used to determine the gray construction level grade of the application; Based on a mapping relationship between a preset gray release target value and a gray construction strategy, determining a gray construction strategy corresponding to the actual gray release target value; wherein, the gray construction strategy is used to determine a standard gray construction level value of a gray metric; Determining a standard gray construction level value of each gray metric according to the gray construction strategy corresponding to the actual gray release target value; and determining the gray construction level grade of the target version according to the actual gray construction level value of each gray metric and the standard gray construction level value of each gray metric.
2. The method according to claim 1, characterized in that Determining an actual gray release target value of the application according to the metric scores of the multiple running metrics includes: Performing a summation process on the metric scores of the multiple running metrics to determine the actual gray release target value of the application.
3. The method according to claim 1, characterized in that, The method further includes: If it is determined that the grade information corresponding to the gray construction level grade of the target version includes that the actual gray construction level value of at least one gray metric is less than the standard gray construction level value, determining the difference between the actual gray construction level value and the standard gray construction level value of at least one gray metric; Generating a task for at least one gray metric according to the difference between the actual gray construction level value and the standard gray construction level value of at least one gray metric; wherein, the task is used to raise the actual gray construction level value of the gray metric to the standard gray construction level value, and the task includes an end date; If it is determined that the task for at least one gray metric has been completed on the end date, determining the state of the completed task, and determining the current gray construction level grade of the target version according to the state of the completed task.
4. The method according to claim 3, wherein If it is determined that the task for at least one gray metric has been completed on the end date, determining the state of the completed task, and determining the current gray construction level grade of the target version according to the state of the completed task includes: If it is determined that the task of at least one gray scale index has been completed by the end date, determine the actual gray scale construction level value of the gray scale index corresponding to the completed task; If it is determined that the actual gray scale construction level value of the gray scale index corresponding to the completed task is greater than or equal to the standard gray scale construction level value corresponding to the completed task, determine that the status of the completed task is a successful status, and determine that the level information corresponding to the current gray scale construction level of the target version includes that the actual gray scale construction level value of each gray scale index is greater than or equal to the standard gray scale construction level value; If it is determined that the actual gray scale construction level value of the gray scale index corresponding to the completed task is less than the standard gray scale construction level value corresponding to the completed task, determine that the status of the completed task is a failed status, and determine that the level information corresponding to the current gray scale construction level of the target version includes that the actual gray scale construction level value of at least one gray scale index is less than the standard gray scale construction level value.
5. The method according to claim 4, wherein The method further includes: For the task in the failed status, repeatedly generate and execute the task to be processed until it is determined that the status of the task to be processed is a successful status.
6. The method according to claim 3, wherein The method further includes: Generate a model gap radar chart according to the difference; wherein, the model gap radar chart is used to indicate the actual gray scale construction level value of each gray scale index, the standard gray scale construction level value of each gray scale index, and the difference between the actual gray scale construction level value and the standard gray scale construction level value of each gray scale index.
7. An application-based gray release device for implementing the application-based gray release method according to any one of claims 1-6, characterized in that, Comprising: A first acquisition unit, configured to acquire multiple operation indexes of an application; wherein, the operation indexes represent indexes of the operation state attributes and importance of the application during operation, and each operation index corresponds to an index score; A first determination unit, configured to determine the actual gray scale release target value of the application according to the index scores of the multiple operation indexes; wherein, the actual gray scale release target value represents the risk level of the current version of the application; A second determination unit, configured to determine that the status of the application is to be gray scale released if it is determined that the actual gray scale release target value is greater than a preset threshold; A third determination unit, configured to obtain the target version of the application and the gray scale construction level of the target version in response to the gray scale release operation.
8. A server, characterized in that, Comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the method according to any one of claims 1-6 when executing the computer program.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to implement the method according to any one of claims 1-6 when executed by the processor.
10. A computer program product, characterized in that, Comprising a computer program, and the computer program implements the method according to any one of claims 1-6 when executed by the processor.
Citation Information
Patent Citations
Method and device for determining target user side in gray release process
CN110493336A
Gray release verification method and device, electronic equipment and storage medium
CN111538527A