Gray level changing method and device, computer equipment and storage medium

By automatically grouping and sorting objects to be changed, the batch list is determined and grayscale change processing is performed, and the problem of low grayscale change efficiency caused by manual batching in the prior art is solved, and more scientific and comprehensive object batch processing is achieved, which improves grayscale change efficiency.

CN119806609AActive Publication Date: 2025-04-11MICRO INSURANCE AGENCY LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411715444.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-04-11
Estimated Expiration
2044-11-27

AI Technical Summary

Technical Problem

In the prior art, when software or servers make large-scale or full-scale changes, they rely on manual batch changes to perform grayscale changes, resulting in low efficiency.

Method used

By obtaining object list, grouping label and batch information, automatically grouping and sorting objects to be changed, determining the execution batch list based on the sorting proportion, and performing grayscale changes in the preset order.

Benefits of technology

The automatic batch grayscale changes of multiple objects to be changed are realized, ensuring the diversity and comprehensiveness of the object types in each execution batch list, improving the efficiency of grayscale changes, and reducing the risk and complexity of manual batching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806609A_ABST
    Figure CN119806609A_ABST
Patent Text Reader

Abstract

The invention relates to a gray level changing method and device, computer equipment and a storage medium. The method comprises the following steps: automatically grouping a plurality of to-be-changed objects based on grouping labels, sorting the plurality of to-be-changed objects in a grouping list according to specified sorting labels, and determining an execution batch list to which the to-be-changed objects belong according to a sorting proportion of the to-be-changed objects in the grouping list, and the to-be-changed objects in different sorting orders in each group list can be subjected to gray level change in different execution batch lists according to different execution sequences, so that the plurality of to-be-changed objects can be subjected to automatic batch gray level change, the diversity of object types in each execution batch list is ensured, and the accuracy of the gray level change of the to-be-changed objects is improved. According to the method and the device, the comprehensiveness of carrying out gray level change on all the to-be-changed objects in one execution batch list each time is ensured as much as possible, compared with manual batching, the method and the device are more scientific and more comprehensive in consideration, and the object batching efficiency is improved so as to improve the gray level change efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a grayscale changing method, device, computer equipment and storage medium. Background Art

[0002] With the development of the Internet, software will also undergo iterative changes based on user needs. Grayscale changes refer to gradually changing the new version of the software rather than changing it all at once. In this way, the development team can test new software features, monitor the performance of the new version, and ensure that everything is running normally.

[0003] When software or a service or server that integrates multiple software needs to be changed or upgraded in large quantities or even completely, grayscale execution needs to be performed in batches to control risks. However, currently this is done manually by dividing the objects that need to be changed into batches, and then grayscale execution is performed according to the batches, which results in low efficiency of grayscale changes. Summary of the invention

[0004] The present application provides a grayscale change method, apparatus, computer equipment and storage medium to solve the problem of low grayscale change efficiency caused by manually dividing grayscale changes into batches for objects to be changed.

[0005] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a grayscale changing method, apparatus, computer equipment and storage medium.

[0006] On the one hand, the present application provides a grayscale change method, the method further comprising:

[0007] Obtain an object list, grouping labels, and batch information, wherein the object list includes multiple objects to be changed, and the batch information includes the batch number of the execution batch list, the execution order of each execution batch list, and the proportion range corresponding to each execution batch list;

[0008] Grouping the plurality of objects to be changed according to the grouping labels to obtain a plurality of grouping lists;

[0009] Sorting each of the objects to be changed in the group list according to the specified sorting label to obtain a sorting list corresponding to the group list and a ranking proportion of each object to be changed in the corresponding sorting list;

[0010] Determine the execution batch list corresponding to the object to be changed according to the proportion range of the ranking proportion of each object to be changed in the corresponding ranking list, and add the object to be changed to the corresponding execution batch list;

[0011] According to the execution order corresponding to each execution batch list, grayscale change processing is performed on the objects to be changed in each execution batch list in turn.

[0012] On the other hand, the present application provides a grayscale changing device, the grayscale changing device comprising:

[0013] An acquisition module, used to acquire an object list, grouping labels and batch information, wherein the object list includes multiple objects to be changed, and the batch information includes the batch number of the execution batch list, the execution order of each execution batch list and the proportion range corresponding to each execution batch list;

[0014] A grouping module, used for grouping the plurality of objects to be changed according to the grouping labels to obtain a plurality of grouping lists;

[0015] A sorting module, used for sorting each of the objects to be changed in the group list according to a specified sorting label, to obtain a sorting list corresponding to the group list, and a ranking proportion of each object to be changed in the corresponding sorting list;

[0016] A batch module, for determining the execution batch list corresponding to the object to be changed according to the proportion range of the ranking proportion of each object to be changed in the corresponding ranking list, and adding the object to be changed to the corresponding execution batch list;

[0017] The execution module is used to perform grayscale change processing on the objects to be changed in each execution batch list in turn according to the execution order corresponding to each execution batch list.

[0018] On the other hand, a computer device is provided, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0019] Memory, used to store computer programs;

[0020] The processor is used to implement the steps of the grayscale changing method described in the first aspect when executing the program stored in the memory.

[0021] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the grayscale changing method described in the first aspect are implemented.

[0022] On the other hand, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the grayscale changing method as described in the first aspect.

[0023] The method provided by the embodiment of the present application obtains an object list, a grouping label and batch information, wherein the object list includes multiple objects to be changed, and the batch information includes the batch number of the execution batch list, the execution order of each of the execution batch lists and the corresponding proportion range of each of the execution batch lists; the multiple objects to be changed are grouped according to the grouping label to obtain multiple grouping lists; the objects to be changed in the grouping list are sorted according to the specified sorting label to obtain a sorting list corresponding to the grouping list, and the sorting proportion of each object to be changed in the corresponding sorting list; the execution batch list corresponding to the object to be changed is determined according to the proportion range to which the sorting proportion of each object to be changed in the corresponding sorting list belongs, and the object to be changed is added to the corresponding execution batch list; according to the execution order corresponding to each of the execution batch lists, the objects to be changed in each of the execution batch lists are grayscale changed in turn.

[0024] Based on the above method, multiple objects to be changed are automatically grouped based on grouping labels, and then the multiple objects to be changed in the group list are sorted according to the specified sorting labels, and the execution batch list to which the object to be changed belongs is determined according to the sorting ratio of the object to be changed in the group list. Different execution batch lists correspond to different execution orders. Objects to be changed in different sorting positions in each group list will be grayscaled in different execution batch lists according to different execution orders, so as to realize automatic batch grayscale changes of multiple objects to be changed, and ensure the diversity of object types in each execution batch list, so as to ensure the comprehensiveness of grayscale changes of all objects to be changed in an execution batch list each time, which is more scientific and more comprehensive than manual batching, and improves the efficiency of object batching, so as to improve the efficiency of grayscale change, thereby solving the problem of low grayscale change efficiency caused by grayscale change after manual batching for objects to be changed. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] 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.

[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0027] Figure 1A schematic diagram of a grayscale changing method provided in an embodiment of the present application;

[0028] Figure 2 A schematic diagram of the effect of the grouping list provided in the embodiment of the present application;

[0029] Figure 3 A schematic diagram of a grayscale changing device provided in an embodiment of the present application

[0030] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0032] In one embodiment, Figure 1 is a flow chart of a grayscale changing method in one embodiment, referring to Figure 1 , a grayscale change method is provided. This embodiment mainly uses the method applied to a server as an example to illustrate, and the grayscale change method specifically includes the following steps:

[0033] Step S210, obtaining an object list, grouping labels and batch information, wherein the object list includes multiple objects to be changed, and the batch information includes the batch quantity of the execution batch list, the execution order of each execution batch list and the proportion range corresponding to each execution batch list.

[0034] Specifically, the object to be changed is obtained from the configuration management database (CMDB). The configuration management database is used to store relevant information of all configuration items in the information technology system. The objects stored in the configuration management database specifically include hardware, software, network equipment, servers, applications, documents, etc. The objects in the configuration management database can be tagged by at least one of the operation and maintenance system, agent reporting, log analysis, manual, etc. The tag is a key-value pair (key:value). The tag includes a tag name and a tag value. The tag name specifically includes but is not limited to server type, operating system version, region, importance, deployment method, application type, development language, etc. The structure of the tag is, for example: server type: S1, application type: front-end service, region: Guangzhou District 1, development language: JAVA, importance level: core, module: insurance. The tag names and tag values ​​representing the same meaning are the same. The object to be changed is an object that has been tagged and needs to be grayed out. The grouping tag includes at least one tag. The grouping tag is used to group multiple objects to be changed with tags.

[0035] The batch information includes the batch quantity of the execution batch list, the execution order of each execution batch list, the proportion range corresponding to each execution batch list, and the grayscale ratio corresponding to each execution batch list. The batch quantity of the execution batch list is also the batch quantity. The execution batch list is the execution list corresponding to the grayscale execution batch. Each grayscale execution batch corresponds to an execution list, and different grayscale execution batches have different execution orders and different proportion ranges corresponding to different execution batch lists. The proportion range is determined by the grayscale ratio corresponding to the execution batch list. The sum of the grayscale ratios corresponding to all execution batch lists is 1, that is, the upper limit of the proportion range corresponding to the last batch of execution batch lists is 100%. The batch quantity of the execution batch list and the proportion range corresponding to each execution batch list are pre-configured, and can be customized according to different application scenarios.

[0036] For example, the number of batches is 6, which means there are 6 grayscale execution batches, and the grayscale ratio corresponding to each grayscale execution batch is (5%, 15%, 20%, 20%, 20%, 20%). Therefore, the first grayscale execution batch corresponds to a ratio range of [0%-5%], the second grayscale execution batch corresponds to a ratio range of (5%-20%], the third grayscale execution batch corresponds to a ratio range of (20%-40%], the fourth grayscale execution batch corresponds to a ratio range of (40%-60%], the fifth grayscale execution batch corresponds to a ratio range of (60%-80%], and the sixth grayscale execution batch corresponds to a ratio range of (80%-100%], and the execution order is from the first batch to the sixth batch, that is, the first grayscale execution batch is executed first, and the sixth grayscale execution batch is executed last. Subsequently, the objects to be changed are added to the execution batch list corresponding to the ratio range to which the sorted ratio belongs, so as to realize batch processing of each object to be changed in different grouping lists.

[0037] Step S220: grouping the plurality of objects to be changed according to the grouping labels to obtain a plurality of grouping lists.

[0038] Specifically, according to the tag values ​​corresponding to all tags in the grouping tag, multiple objects to be changed with the same combination are combined to form a group list, and objects to be changed with the same tag name and tag value as the grouping tag are collected in a group list, for example, Figure 2 The grouping tags include model, region, and module. Since each tag may contain multiple tag values, it is necessary to group the objects to be changed with the same tag values ​​corresponding to the three tags of model, region, and module into a group list, that is, multiple objects to be changed with model S1, region Guangzhou District 1, and module insurance into a group list. Figure 2 Data objects with different background colors correspond to different grouping lists.

[0039] Step S230 , sorting the objects to be changed in the group list according to the specified sorting label to obtain a sorting list corresponding to the group list and a ranking ratio of each object to be changed in the corresponding sorting list.

[0040] Specifically, the specified sorting label is the label name of any label, which can be customized according to the actual application. Different sorting labels correspond to different sorting methods, which are divided into ascending sorting and descending sorting. Based on the sorting list, the sorting proportion of each object to be changed in the sorting list is determined. The sorting proportion is the ratio between the sorting position of the object to be changed in the sorting list and the number of all objects in the sorting list.

[0041] Step S240, determining the execution batch list corresponding to the object to be changed according to the ranking range of each object to be changed in the corresponding ranking list, and adding the object to be changed to the corresponding execution batch list.

[0042] Specifically, the execution batch list corresponding to the proportion range to which the sorting ratio belongs is determined as the execution batch list to which the corresponding object to be changed belongs. The objects to be changed at different sorting positions in the same sorting list belong to different grayscale execution batches, while the objects to be changed corresponding to the same sorting ratio in different sorting lists belong to the execution list corresponding to the same grayscale execution batch. In this way, it can be ensured that each execution batch list covers the objects to be changed in multiple different grouping labels as much as possible, ensuring that the grayscale coverage of each execution batch list is more comprehensive.

[0043] Step S250 , performing grayscale change processing on the objects to be changed in each of the execution batch lists in turn according to the execution order corresponding to each of the execution batch lists.

[0044] Specifically, different execution batch lists correspond to different execution orders, that is, different execution batch lists correspond to different execution batches, the execution batch list with the first execution order is the first execution batch list, and the execution batch list with the last execution order is the last execution batch list. According to the execution order corresponding to each execution batch list, the objects to be changed in each execution batch list are processed with grayscale change in turn, so as to realize automatic grayscale change of multiple objects to be changed in batches, and ensure the diversity of object types in each execution batch list, so as to ensure the comprehensiveness of grayscale change of all objects to be changed in an execution batch list each time, which is more scientific and more comprehensive than manual batching, and improves the efficiency of object batching, so as to improve the efficiency of grayscale change, thereby solving the problem of low grayscale change efficiency caused by grayscale change after manual batching for objects to be changed.

[0045] In one embodiment, obtaining an object list includes:

[0046] The data objects in the configuration management database that meet the preset screening conditions are taken as objects to be changed;

[0047] An object list is formed according to the plurality of objects to be changed.

[0048] Specifically, the preset filtering conditions are used to filter in the configuration management database. The preset filtering conditions can be flexibly limited by setting SQL query conditions in the configuration management database or by using interface parameters of the configuration management database. For example, setting where zone = 'guangzhou' in SQL as the preset filtering condition indicates that objects in the Guangzhou area are selected as objects to be changed. When the preset filtering condition is empty, all objects in the configuration management database are regarded as objects to be changed. Based on the preset filtering conditions, local or global grayscale processing can be performed on objects in the configuration management database to improve the flexibility of grayscale processing.

[0049] In one embodiment, the sorting of the objects to be changed in the group list according to the specified sorting label to obtain a sorted list corresponding to the group list and a ranking ratio of each object to be changed in the corresponding sorted list includes:

[0050] According to the importance level of each object to be changed, each object to be changed in the group list is processed in ascending order to obtain a sorted list corresponding to the group list, wherein the designated sorting label is the importance level;

[0051] When the number of objects to be changed in the target sorting list is greater than or equal to the batch number, the ranking ratio of the target object to be changed in the target sorting list is determined based on the ratio between the ranking position of the target object to be changed in the target sorting list and the number of objects to be changed in the target sorting list, wherein the target sorting list is any one of the sorting lists, and the target object to be changed is any one of the objects to be changed in the target sorting list.

[0052] Specifically, in this embodiment, the designated sorting label is the importance level, that is, each object to be changed has a corresponding importance level, and the importance level is divided into ordinary, important, and core according to the increasing importance. The multiple objects to be changed in the group list are sorted in ascending order according to the importance level, that is, the objects to be changed in the group list are sorted in order from low to high according to the importance level, so as to obtain a sorted list. Figure 2, for multiple objects to be changed with the same model, the same region, and the same module, they are divided into the same group list. For example, the first group list includes multiple objects to be changed with model S1, region Guangzhou District 1, and module insurance. The multiple objects to be changed in the same group list are arranged in ascending order according to their corresponding importance, that is, they are sorted in order from low to high importance, that is, the importance is sorted from the common sorting value core, and multiple objects to be changed with the same importance are randomly sorted. For example, multiple objects to be changed with common importance in the same group list are randomly sorted, and the objects to be changed in each group list are sorted in this way to obtain a sorted list. Figure 2 The first row of the table is the header row. Figure 2 The second to tenth rows in the table are a sorted list, the eleventh to nineteenth rows are a sorted list, the twentieth to twenty-seventh rows are a sorted list, and the twenty-eighth to thirtieth rows are a sorted list.

[0053] The target sorting list is a sorting list after any grouping list is sorted. The number of all objects to be changed in the target sorting list is recorded as n, and the number of batches in all execution batch lists is recorded as N. If n≥N, it means that the number of objects to be changed in the target sorting list is sufficient to be distributed to each execution batch list, that is, the number of objects to be changed in the target sorting list is large enough. Therefore, the ratio between the ranking position of the target object to be changed in the target sorting list and the number of all objects to be changed in the target sorting list can be used as the ranking proportion of the target object to be changed in the target sorting list. For example, the ranking position of the target object to be changed in the target sorting list is r, so the ranking proportion of the target object to be changed is p=100*r / n. Then, the target object to be changed is added to the execution batch list corresponding to the proportion range to which p belongs, so as to ensure that the target sorting list with sufficient number of objects can be processed in batches.

[0054] In one embodiment, after sorting the objects to be changed in the group list according to the specified sorting tags to obtain the sorted list corresponding to the group list, the method further includes:

[0055] When the number of objects to be changed in the target sorting list is less than the number of batches in the entire execution batch list, determining whether the ranking of the target object to be changed in the target sorting list is the first;

[0056] When the ranking position of the target object to be changed in the target ranking list is the first, a zero proportion is used as the ranking proportion of the target object to be changed; or,

[0057] When the sorting position of the target object to be changed in the target sorted list is not the first position, based on the ratio between the sorting position of the target object to be changed in the target sorted list and the number of objects in the target sorted list that are the objects to be changed, determine the sorting proportion of the target object to be changed in the target sorted list.

[0058] Specifically, if n < N, it means that the number of objects to be changed in the target sorted list is not enough to be allocated to each execution batch list. The sorting proportion of the first object to be changed in the target sorted list is relatively large and cannot meet the proportion range corresponding to the first execution batch list. That is, there is no object to be changed in the target sorted list that can be assigned to the first execution batch list. Therefore, when determining the sorting proportion of the target object to be changed, it is necessary to judge whether the target object to be changed is in the first position of the target sorted list. If the target object to be changed is the first object in the target sorted list, its sorting proportion cannot be determined according to the ratio between its sorting position and the number of objects in the target sorted list, because the sorting proportion calculated by this method cannot meet the proportion range corresponding to the first execution batch list. In order to be able to move the target object to be changed in the first position to the first execution batch list, the zero proportion (0%) is used as the sorting proportion of the target object to be changed. 0% meets the proportion range corresponding to the first execution batch list, and the target object to be changed can be added to the first execution batch list to solve the problem that there are no objects meeting the proportion range in the first batch due to the small number of objects in the sorted list, so as to ensure that each sorted list can provide objects to be changed to the first execution batch list.

[0059] Generally, the number of objects in the execution batch lists of the previous batches is relatively small, but a small number may lead to incomplete gray coverage and easy risks. Therefore, based on the above method, it can be ensured that each sorted list can provide objects to be changed to the first execution batch list, so as to improve the gray coverage of the first gray execution batch and effectively control the gray change risk.

[0060] If the target object to be changed is not the object to be changed in the first position of the target sorted list, then its sorting proportion can be normally determined according to the ratio between its sorting position and the number of objects in the target sorted list. The objects to be changed after the first position can be batch-processed based on the actual sorting proportion, mainly to ensure that when the number of objects in the target sorted list is small, there are objects to be changed assigned to the first execution batch list, so as to follow the gray change principle of trying to cover all scenarios in the previous gray execution batches and effectively control the gray change risk.

[0061] In one embodiment, after grouping and processing multiple objects to be changed according to the grouping label to obtain multiple grouped lists, the method further includes:

[0062] When there is at least one ungrouped object, the ungrouped object is added to the execution batch list with the last execution order, wherein the ungrouped object is the object to be changed that does not belong to any of the grouping lists.

[0063] Specifically, an ungrouped object is an object that does not belong to any grouping list, that is, an object to be changed whose grouping label is empty. If there are ungrouped objects that fail to be grouped, the ungrouped objects will be added to the last batch of execution batches to reduce the risk of grayscale changes.

[0064] In one embodiment, according to the proportion range of the ranking proportion of each object to be changed in the corresponding ranking list, the execution batch list corresponding to the object to be changed is determined, and after the object to be changed is added to the corresponding execution batch list, the method further includes:

[0065] When there is an object of concern in the execution batch list with the first execution order, the object of concern is transferred from the execution batch list with the first execution order to the execution batch list with the last execution order, wherein the object of concern is the object to be changed that meets the preset label requirements.

[0066] Specifically, the execution batch list with the first execution order is the first batch execution batch list, and the execution batch list with the last execution order is the last batch execution batch list. The object of interest that meets the preset label requirements refers to the object to be changed whose label value of the preset label is the specified content, and the preset label can be customized based on different actual application scenarios. For example, the model, region, module, importance level, etc. can be selected as the preset label. In this embodiment, the importance level is used as the preset label for example. The object of interest that meets the preset label requirements refers to the object to be changed whose label value of the importance level label is important or core, and the specified content is important or core. If batch processing is performed manually, since manual labor cannot accurately identify information such as the importance level of data objects, important objects may be placed in inappropriate batches during batch processing, which will bring about change risks. Therefore, if there are important or core objects of interest in the first batch execution batch list, based on the risk principle, the object of interest needs to be automatically moved to the last batch execution batch list to delay the grayscale change of the object of interest, avoid premature grayscale changes of important or core objects and cause abnormal problems, and follow the grayscale change principle of ordinary objects first and then core objects to effectively control the grayscale change risk.

[0067] In one embodiment, after performing grayscale change processing on the objects to be changed in each of the execution batch lists in turn according to the execution order corresponding to each of the execution batch lists, the method further includes:

[0068] When a new object is detected, determining the number of the new object;

[0069] When the number of the newly added objects is less than a preset number, adding the plurality of newly added objects to the execution batch list with the execution order being the last;

[0070] When the number of newly added objects is greater than or equal to the preset number, after determining that multiple objects to be changed have completed the grayscale change processing, the newly added objects are used as new objects to be changed to execute the steps of obtaining the object list, grouping labels and batch information, wherein the object list includes multiple objects to be changed, and the batch information includes the batch number of the execution batch list, the execution order of each execution batch list, and the proportion range corresponding to each execution batch list. According to the execution order corresponding to each execution batch list, the objects to be changed in each execution batch list are subjected to the grayscale change processing step in sequence.

[0071] Specifically, the scan results obtained by rescanning the configuration management database can be compared with the object list, and data objects that only exist in the scan results but not in the object list can be treated as new objects. When the number of new objects is less than the preset number, it means that the number of new objects is small, and multiple new objects can be directly added to the last batch of execution batch lists. When the last batch of execution batch lists are grayscaled, the new objects can be grayscaled together. This allows for timely and accurate detection of new objects during the change cycle, and grayscale changes can be made to a small number of new objects to avoid missing new objects.

[0072] When the number of newly added objects is greater than or equal to the preset number, it means that the number of newly added objects is large and cannot be added to the current change cycle for grayscale change. It is necessary to wait until the end of the current change cycle and use the newly added objects as new objects to be changed to re-group, batch, and grayscale change the processing flow.

[0073] Based on the above grayscale change method, scientific grouping can be carried out according to grouping labels, following the principles of first general and then core, first small batches and then expanding the scope, and the first batches covering all scenarios as much as possible to achieve automatic batch processing of changed objects. This batching method can achieve batching in seconds even for a total amount of hundreds of thousands of objects. Compared with manual batching, it is more scientific, more comprehensive, more efficient and less risky.

[0074] Figure 1 FIG. 1 is a flow chart of a grayscale changing method in one embodiment. It should be understood that although Figure 1The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0075] In one embodiment, Figure 3 As shown, a grayscale changing device is provided, comprising:

[0076] The acquisition module 310 is used to acquire an object list, a grouping label and batch information, wherein the object list includes a plurality of objects to be changed, and the batch information includes the batch number of the execution batch list, the execution order of each execution batch list and the proportion range corresponding to each execution batch list;

[0077] A grouping module 320, configured to group the plurality of objects to be changed according to the grouping labels to obtain a plurality of grouping lists;

[0078] The sorting module 330 is used to sort the objects to be changed in the group list according to the specified sorting label to obtain a sorting list corresponding to the group list and a ranking ratio of each object to be changed in the corresponding sorting list;

[0079] The batch module 340 is used to determine the execution batch list corresponding to the to-be-changed object according to the ranking range of each to-be-changed object in the corresponding ranking list, and add the to-be-changed object to the corresponding execution batch list;

[0080] The execution module 350 is used to perform grayscale change processing on the objects to be changed in each of the execution batch lists in turn according to the execution order corresponding to each of the execution batch lists.

[0081] In one embodiment, the acquisition module 310 is further used to:

[0082] The data objects in the configuration management database that meet the preset screening conditions are taken as objects to be changed;

[0083] An object list is formed according to the plurality of objects to be changed.

[0084] In one embodiment, the sorting module 330 is further configured to:

[0085] According to the importance level of each object to be changed, each object to be changed in the group list is processed in ascending order to obtain a sorted list corresponding to the group list, wherein the designated sorting label is the importance level;

[0086] When the number of objects to be changed in the target sorting list is greater than or equal to the batch number, the ranking ratio of the target object to be changed in the target sorting list is determined based on the ratio between the ranking position of the target object to be changed in the target sorting list and the number of objects to be changed in the target sorting list, wherein the target sorting list is any one of the sorting lists, and the target object to be changed is any one of the objects to be changed in the target sorting list.

[0087] In one embodiment, the sorting module 330 is further configured to:

[0088] When the number of objects to be changed in the target sorting list is less than the number of batches in the entire execution batch list, determining whether the ranking of the target object to be changed in the target sorting list is the first;

[0089] When the ranking position of the target object to be changed in the target ranking list is the first, a zero proportion is used as the ranking proportion of the target object to be changed; or,

[0090] When the ranking position of the target object to be changed in the target sorting list is not the first, the ranking ratio of the target object to be changed in the target sorting list is determined based on the ratio between the ranking position of the target object to be changed in the target sorting list and the number of objects to be changed in the target sorting list.

[0091] In one embodiment, the batch module 340 is further configured to:

[0092] When there is at least one ungrouped object, the ungrouped object is added to the execution batch list with the last execution order, wherein the ungrouped object is the object to be changed that does not belong to any of the grouping lists.

[0093] In one embodiment, the batch module 340 is further configured to:

[0094] When there is an object of concern in the execution batch list with the first execution order, the object of concern is transferred from the execution batch list with the first execution order to the execution batch list with the last execution order, wherein the object of concern is the object to be changed that meets the preset label requirements.

[0095] In one embodiment, the batch module 340 is further configured to:

[0096] When a new object is detected, determining the number of the new object;

[0097] When the number of the newly added objects is less than a preset number, adding the plurality of newly added objects to the execution batch list with the execution order being the last;

[0098] When the number of newly added objects is greater than or equal to the preset number, after determining that multiple objects to be changed have completed the grayscale change processing, the newly added objects are used as new objects to be changed to execute the steps of obtaining the object list, grouping labels and batch information, wherein the object list includes multiple objects to be changed, and the batch information includes the batch number of the execution batch list, the execution order of each execution batch list, and the proportion range corresponding to each execution batch list. According to the execution order corresponding to each execution batch list, the objects to be changed in each execution batch list are subjected to the grayscale change processing step in sequence.

[0099] like Figure 4 As shown, an embodiment of the present application provides a computer device, including a processor 711, a communication interface 712, a memory 713 and a communication bus 714, wherein the processor 711, the communication interface 712, and the memory 713 communicate with each other through the communication bus 714;

[0100] Memory 713, used for storing computer programs;

[0101] The processor 711 is used to implement the grayscale change control method provided by any one of the above method embodiments when executing the program stored in the memory 713.

[0102] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0103] In one embodiment, the grayscale changing device provided in the present application can be implemented in the form of a computer program. The computer program can be Figure 4 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the grayscale changing device, for example, Figure 3The acquisition module 310, grouping module 320, sorting module 330, batching module 340 and execution module 350 are shown. The computer program composed of various program modules enables the processor to execute the steps of the grayscale changing method of each embodiment of the present application described in this specification.

[0104] Figure 4 The computer device shown can be Figure 3 The acquisition module 310 in the grayscale change device shown in the figure acquires an object list, a grouping label and batch information, wherein the object list includes a plurality of objects to be changed, and the batch information includes the batch number of the execution batch list, the execution order of each execution batch list and the proportion range corresponding to each execution batch list. The computer device can perform grouping processing on the plurality of objects to be changed according to the grouping label through the grouping module 320 to obtain a plurality of grouping lists. The computer device can perform sorting processing on each of the objects to be changed in the grouping list according to the specified sorting label through the sorting module 330 to obtain a sorting list corresponding to the grouping list and the sorting proportion of each object to be changed in the corresponding sorting list. The computer device can perform the determination of the execution batch list corresponding to the object to be changed through the batching module 340 according to the proportion range to which the sorting proportion of each object to be changed in the corresponding sorting list belongs, and add the object to be changed to the corresponding execution batch list. The computer device can perform grayscale change processing on the objects to be changed in each execution batch list in turn according to the execution order corresponding to each execution batch list through the execution module 350.

[0105] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the grayscale changing method provided in any of the aforementioned method embodiments are implemented.

[0106] An embodiment of the present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the grayscale changing method provided in any of the aforementioned method embodiments.

[0107] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0108] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A grayscale changing method, characterized in that: The method further comprises: Obtain an object list, grouping labels, and batch information, wherein the object list includes multiple objects to be changed, and the batch information includes the batch number of the execution batch list, the execution order of each execution batch list, and the proportion range corresponding to each execution batch list; Grouping the plurality of objects to be changed according to the grouping labels to obtain a plurality of grouping lists; Sorting each of the objects to be changed in the group list according to the specified sorting label to obtain a sorting list corresponding to the group list and a ranking proportion of each object to be changed in the corresponding sorting list; Determine the execution batch list corresponding to the object to be changed according to the proportion range of the ranking proportion of each object to be changed in the corresponding ranking list, and add the object to be changed to the corresponding execution batch list; According to the execution order corresponding to each execution batch list, grayscale change processing is performed on the objects to be changed in each execution batch list in turn.

2. The method according to claim 1, characterized in that Get a list of objects, including: The data objects in the configuration management database that meet the preset screening conditions are taken as objects to be changed; An object list is formed according to the plurality of objects to be changed.

3. The method according to claim 1, characterized in that The step of sorting the objects to be changed in the group list according to the specified sorting label to obtain a sorting list corresponding to the group list and a ranking proportion of each object to be changed in the corresponding sorting list includes: According to the importance level of each object to be changed, each object to be changed in the group list is processed in ascending order to obtain a sorted list corresponding to the group list, wherein the designated sorting label is the importance level; When the number of objects to be changed in the target sorting list is greater than or equal to the batch number, the ranking ratio of the target object to be changed in the target sorting list is determined based on the ratio between the ranking position of the target object to be changed in the target sorting list and the number of objects to be changed in the target sorting list, wherein the target sorting list is any one of the sorting lists, and the target object to be changed is any one of the objects to be changed in the target sorting list.

4. The method according to claim 3, characterized in that After sorting the objects to be changed in the group list according to the specified sorting tags to obtain a sorted list corresponding to the group list, the method further includes: When the number of objects to be changed in the target sorting list is less than the number of batches in the entire execution batch list, determining whether the ranking of the target object to be changed in the target sorting list is the first; When the ranking position of the target object to be changed in the target ranking list is the first, a zero proportion is used as the ranking proportion of the target object to be changed; or, When the ranking position of the target object to be changed in the target sorting list is not the first, the ranking ratio of the target object to be changed in the target sorting list is determined based on the ratio between the ranking position of the target object to be changed in the target sorting list and the number of objects to be changed in the target sorting list.

5. The method according to claim 1, characterized in that After the plurality of objects to be changed are grouped according to the grouping labels to obtain a plurality of grouping lists, the method further includes: When there is at least one ungrouped object, the ungrouped object is added to the execution batch list with the last execution order, wherein the ungrouped object is the object to be changed that does not belong to any of the grouping lists.

6. The method according to claim 1, characterized in that According to the proportion range of the ranking proportion of each object to be changed in the corresponding ranking list, the execution batch list corresponding to the object to be changed is determined, and after the object to be changed is added to the corresponding execution batch list, the method further includes: When there is an object of concern in the execution batch list with the first execution order, the object of concern is transferred from the execution batch list with the first execution order to the execution batch list with the last execution order, wherein the object of concern is the object to be changed that meets the preset label requirements.

7. The method according to claim 1, characterized in that After performing grayscale change processing on the objects to be changed in each of the execution batch lists in turn according to the execution order corresponding to each of the execution batch lists, the method further includes: When a new object is detected, determining the number of the new object; When the number of the newly added objects is less than a preset number, adding the plurality of newly added objects to the execution batch list with the execution order being the last; When the number of newly added objects is greater than or equal to the preset number, after determining that multiple objects to be changed have completed the grayscale change processing, the newly added objects are used as new objects to be changed to execute the steps of obtaining the object list, grouping labels and batch information, wherein the object list includes multiple objects to be changed, and the batch information includes the batch number of the execution batch list, the execution order of each execution batch list, and the proportion range corresponding to each execution batch list. According to the execution order corresponding to each execution batch list, the objects to be changed in each execution batch list are subjected to the grayscale change processing step in sequence.

8. A grayscale changing device, characterized in that: The grayscale changing device comprises: An acquisition module, used to acquire an object list, grouping labels and batch information, wherein the object list includes multiple objects to be changed, and the batch information includes the batch number of the execution batch list, the execution order of each execution batch list and the proportion range corresponding to each execution batch list; A grouping module, used for grouping the plurality of objects to be changed according to the grouping labels to obtain a plurality of grouping lists; A sorting module, used for sorting each of the objects to be changed in the group list according to a specified sorting label, to obtain a sorting list corresponding to the group list, and a ranking proportion of each object to be changed in the corresponding sorting list; A batch module, for determining the execution batch list corresponding to the object to be changed according to the proportion range of the ranking proportion of each object to be changed in the corresponding ranking list, and adding the object to be changed to the corresponding execution batch list; The execution module is used to perform grayscale change processing on the objects to be changed in each execution batch list in turn according to the execution order corresponding to each execution batch list.

9. A computer device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor is used to implement the steps of the grayscale changing method described in any one of claims 1 to 7 when executing a program stored in a memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the grayscale changing method as described in any one of claims 1 to 7 are implemented.

11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Physical machine changing method and device

    CN110874258A

  • Gray release method and device, terminal equipment and computer storage medium

    CN112685060A

  • Gray release method and device of application program, electronic equipment and storage medium

    CN113590183A

  • Service system gray release method and device

    CN114048032A

  • Gray release method and system

    CN116450196A