Configuration data management method and device, electronic device, and storage medium

By adding grayscale nodes and grayscale storage to the configuration system, the policy for configuration data acquisition requests is determined, which solves the problem of configuration data changes not being able to support grayscale, avoids full effect, and improves system security and user experience.

CN110825425BActive Publication Date: 2024-09-20BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810903412.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-08-09
Publication Date
2024-09-20
Estimated Expiration
2038-08-09

AI Technical Summary

Technical Problem

In the existing technology, changes in configuration data cannot support grayscale changes, causing misoperations to take full effect, affecting online user experience and system security.

Method used

By adding grayscale nodes in the configuration system, grayscale storage is added to the client memory data to determine whether the configuration data acquisition request is a grayscale strategy. If so, the grayscale configuration data will be returned. Otherwise, the online configuration data will be returned to avoid taking full effect.

Benefits of technology

It realizes grayscale changes of configuration data, avoids the impact on online users, and improves the security and user experience of the configuration system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110825425B
    Figure CN110825425B
Patent Text Reader

Abstract

The present disclosure is about a configuration data management method and device, electronic device, and storage medium, and relates to the field of computer technology. The method includes: receiving a configuration data acquisition request for a client, and determining whether the configuration data acquisition request is a grayscale strategy; if the configuration data acquisition request belongs to the grayscale strategy, returning the grayscale configuration data corresponding to the configuration data acquisition request; if the configuration data acquisition request belongs to a non-grayscale strategy, returning the online configuration data corresponding to the configuration data acquisition request. The present disclosure can realize the grayscale change of configuration data and reduce the impact on online users.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the development of e-commerce platform business, online configuration data changes are becoming more and more frequent, such as frequently modifying configuration documents and downgrading some functions. Any misoperation caused by configuration changes will have a certain impact on the online environment, which can seriously affect the user experience and even make it impossible to place orders or make payments.

[0003] In related technologies, the function of real-time notification of data changes can be realized through the watch mechanism of Zookeeper. All the configuration data of Zookeeper will be loaded into the memory when the business system starts. When the data changes, the memory data will be updated. The business system only reads the configuration data from the memory. In this solution, any change of configuration data is full, and grayscale changes such as whitelists, clients, and versions cannot be made. Errors caused by human operations will cause the full data to take effect and affect online users. It is impossible to verify first and then perform full operations, so there is a certain risk in the configuration system.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present disclosure is to provide a configuration data management method and device, an electronic device, and a storage medium, thereby overcoming, at least to a certain extent, the problem that configuration data does not support grayscale changes due to limitations and defects of related technologies.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] According to one aspect of the present disclosure, there is provided a configuration data management method, including: receiving a configuration data acquisition request for a client, and determining whether the configuration data acquisition request is a grayscale policy; if the configuration data acquisition request belongs to the grayscale policy, returning grayscale configuration data corresponding to the configuration data acquisition request; if the configuration data acquisition request belongs to a non-grayscale policy, returning online configuration data corresponding to the configuration data acquisition request.

[0008] In an exemplary embodiment of the present disclosure, before receiving a configuration data acquisition request for a client, the method further includes: adding a grayscale node to a storage structure in a configuration system; and adding grayscale storage to the storage structure of the client memory data according to the grayscale node to generate the grayscale configuration data.

[0009] In an exemplary embodiment of the present disclosure, determining whether the configuration data acquisition request is a grayscale policy includes: determining whether the configuration data acquisition request is the grayscale policy through request parameters in the configuration data acquisition request, wherein the request parameters include at least one of memory whitelist data, client data, and version data.

[0010] In an exemplary embodiment of the present disclosure, determining whether the configuration data acquisition request is the grayscale policy through request parameters in the configuration data acquisition request includes: comparing the memory whitelist data in the request parameters with the reference whitelist data of the client; if the memory whitelist data matches the reference whitelist data, determining that the configuration data acquisition request belongs to the grayscale policy.

[0011] In an exemplary embodiment of the present disclosure, determining whether the configuration data acquisition request is the grayscale strategy through request parameters in the configuration data acquisition request includes: comparing the client data contained in the request parameters with the reference data of the client; if the client data contained in the request parameters matches the reference data of the client, determining that the configuration data acquisition request belongs to the grayscale strategy.

[0012] In an exemplary embodiment of the present disclosure, the client data includes a version of the client.

[0013] In an exemplary embodiment of the present disclosure, the request parameters in the configuration data acquisition request are stored in the thread cache through a filter.

[0014] In an exemplary embodiment of the present disclosure, the method further includes: if the grayscale configuration data or the online configuration data is not read, returning default configuration data corresponding to the configuration data acquisition request.

[0015] According to one aspect of the present disclosure, there is provided a configuration data management device, comprising: a request judgment module, used to receive a configuration data acquisition request for a client, and judge whether the configuration data acquisition request is a grayscale policy; a grayscale configuration module, used to return the grayscale configuration data corresponding to the configuration data acquisition request if the configuration data acquisition request belongs to the grayscale policy; and an online configuration module, used to return the online configuration data corresponding to the configuration data acquisition request if the configuration data acquisition request belongs to a non-grayscale policy.

[0016] According to one aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the configuration data management methods described above by executing the executable instructions.

[0017] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the configuration data management method described in any one of the above is implemented.

[0018] In a configuration data management method, a configuration data management device, an electronic device, and a computer-readable storage medium provided in the exemplary embodiments of the present disclosure, on the one hand, by judging whether a configuration data acquisition request is a grayscale policy, it is determined whether to return grayscale configuration data or online configuration data, so that the configuration data can support grayscale changes; on the other hand, by judging whether it is a grayscale policy and returning the corresponding configuration data, the problem of full effect when modifying the configuration data is avoided, the impact on online users is avoided, the security of the configuration system is improved, and the user experience is improved at the same time.

[0019] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0021] Figure 1 A system architecture diagram for implementing configuration data management in an exemplary embodiment of the present disclosure is schematically shown;

[0022] Figure 2 A schematic diagram of a configuration data management method in an exemplary embodiment of the present disclosure is schematically shown;

[0023] Figure 3 A system structure diagram schematically showing configuration changes in an exemplary embodiment of the present disclosure;

[0024] Figure 4 A schematic diagram of a configuration system storage structure in an exemplary embodiment of the present disclosure is schematically shown;

[0025] Figure 5 A specific flow chart for obtaining configuration data in an exemplary embodiment of the present disclosure is schematically shown;

[0026] Figure 6 A specific flow chart schematically illustrating initialization configuration data in an exemplary embodiment of the present disclosure;

[0027] Figure 7A specific flow chart of changing configuration data in an exemplary embodiment of the present disclosure is schematically shown;

[0028] Figure 8 A block diagram schematically shows a configuration data management device in an exemplary embodiment of the present disclosure;

[0029] Fig. 9 A block diagram schematically illustrates an electronic device in an exemplary embodiment of the present disclosure;

[0030] Fig.10 A program product in an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0031] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0032] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0033] This example implementation first provides a system architecture for implementing a configuration data management method, which can be applied to an application scenario where configuration data is generated for a client. Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0034] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send request instructions, etc. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as image processing applications, shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0035] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0036] The server 105 may be a server that provides various services, such as a background management server (only an example) that processes configuration data acquisition requests sent by users using the terminal devices 101, 102, and 103, and may feed back processing results (such as matching results, etc.) to the terminal devices.

[0037] It should be noted that the configuration data management method provided in the embodiment of the present application is generally executed by the server 105 , and accordingly, the configuration data management device is generally provided in the terminal device 101 .

[0038] Based on the above system architecture 100, this example provides a configuration data management method, refer to Figure 2 As shown, the configuration data management method may include the following steps:

[0039] In step S210, a configuration data acquisition request for a client is received, and it is determined whether the configuration data acquisition request is a grayscale strategy;

[0040] In step S220, if the configuration data acquisition request belongs to the grayscale strategy, returning the grayscale configuration data corresponding to the configuration data acquisition request;

[0041] In step S230, if the configuration data acquisition request belongs to a non-grayscale strategy, the online configuration data corresponding to the configuration data acquisition request is returned.

[0042] In the configuration data management method provided in this exemplary embodiment, on the one hand, by judging whether the configuration data acquisition request is a grayscale policy, it is determined whether to return grayscale configuration data or online configuration data, so that the configuration data can support grayscale changes; on the other hand, by judging whether it is a grayscale policy to return the corresponding configuration data, the problem of full effect when modifying the configuration data is avoided, the impact on online users is avoided, the security of the configuration system is improved, and the user experience is improved at the same time.

[0043] Next, the specific steps of the configuration data management method in this exemplary embodiment are further explained with reference to the drawings.

[0044] In step S210, a configuration data acquisition request for a client is received, and it is determined whether the configuration data acquisition request is a grayscale strategy.

[0045] In this exemplary embodiment, the client refers to an application corresponding to the server and providing local services to users. Figure 3 As shown in the figure, the system mainly includes SOA (service-oriented architecture), client memory data and configuration system. Among them, service-oriented architecture (SOA) is a component model that connects different functional units of an application through well-defined interfaces and contracts between these services. Client memory data refers to the storage structure of memory data in the client.

[0046] In this exemplary embodiment, the configuration function for the client can be implemented through open source configuration systems such as Feature, Consul, etcd, Eureka, and Zookeeper. Among them, Eureka needs to explicitly configure health check support when used; Zookeeper and Etcd are unhealthy tasks when they lose connection with the service process. Consul completes synchronization across data centers through the Gossip protocol of WAN. In addition to Eureka, other configuration systems can support KV storage services externally. The trade-offs of CAP theory in product design Zookeeper supports server-side push changes, while Eureka, Consul, and Etcd all use long polling to achieve change perception.

[0047] In this example, the Zookeeper configuration system is used as an example. Figure 3 As shown in the figure, the system mainly includes SOA, client memory data, Zookeeper configuration system and the watch mechanism of Zookeeper configuration system, so as to detect data changes through the watch mechanism. Figure 4 As shown in the figure, the configuration system includes online nodes, which include applications, and the applications specifically include online business configuration and online switch configuration. In order to achieve grayscale release, the grayscale function is added to the configuration system to generate grayscale configuration data. Specifically, based on the online nodes, grayscale nodes are added to the storage structure of the configuration system Zookeeper, for example Figure 4As shown in . Based on the grayscale nodes added above, grayscale storage can be added to the storage structure of client memory data to generate grayscale configuration data. Grayscale nodes include applications, which specifically include whitelist data, client data, and version data, etc. In addition, they can also include online business configuration and online switch configuration.

[0048] The configuration data acquisition request may include request parameters for describing the client, and the request parameters include but are not limited to at least one of memory whitelist data, client data, and version data. After obtaining the request parameters, it can be determined whether the configuration data acquisition request is a grayscale strategy based on the request parameters. The grayscale strategy here refers to grayscale release, which refers to a release method that can smoothly transition between black and white. For example, AB test is a grayscale release method, allowing some users to continue using A and some users to start using B. If the user has no objection to B, then gradually expand the scope and migrate all users to B. Grayscale release can ensure the stability of the overall system, and problems can be discovered and adjusted in the initial grayscale, and new functional modifications can be quickly verified to ensure their impact.

[0049] Specifically, it is possible to determine whether the configuration data acquisition request is a grayscale strategy through the request parameters in the configuration data acquisition request. Specifically, three methods may be included, such as judging only through memory whitelist data, or judging only through client data, or judging through both memory whitelist data and client data. Among them, the memory whitelist data refers to a predetermined account pin, that is, a user account using the client. The client data includes specific data of the client type and the version number corresponding to each client type, such as name, version number, logo, etc. Among them, the client type may include IOS, Android, and page type H5, for example, and the version number refers to different versions corresponding to the application, such as test version, stable version, official version, etc. Or client 1 is Android version 9.2, client 2 is IOS version 9.2, and so on.

[0050] It should be noted that the request parameters included in the configuration data acquisition request, such as memory whitelist data and client data, can be stored in the thread cache in advance through a filter. The thread cache can be, for example, ThreadLocal. ThreadLocal is a variable that creates a copy in each thread, so each thread can access its own internal copy variable, ensuring data security. In this exemplary embodiment, by storing the request parameters in the thread cache, the request parameters stored in the thread cache can be directly matched and compared with the reference values ​​stored in the client, thereby improving operational efficiency. It should be added that the prerequisite for storing the request parameters in the thread cache is that the parameter format is agreed upon with the configuration data acquisition requester, or that the requester implements an agreed interface by itself, which also encapsulates the memory whitelist data and client data.

[0051] Next, the determination of whether it is a grayscale strategy is specifically described. In the first way, when using memory whitelist data to determine whether the configuration data acquisition request is a grayscale strategy, the memory whitelist data in the request parameter can be compared with the reference whitelist data of the client; if the memory whitelist data matches the reference whitelist data, it is determined that the configuration data acquisition request belongs to the grayscale strategy. The reference whitelist data of the client can be, for example, a user account belonging to the whitelist data determined in the client according to historical data, for example, the reference whitelist data may include account 1, account 2, account 3, account 4, etc. The memory whitelist data in the request parameter can be completely consistent with the reference whitelist data, or it may not be completely consistent. For different clients, the memory whitelist data is different. For example, the memory whitelist data in the request parameter includes account 2. Since the memory whitelist data exists in the reference whitelist data of the client, it can be considered that the two match successfully, so that the configuration data acquisition request can be determined to belong to the grayscale strategy. For another example, the memory whitelist data in the request parameter includes account 5. Since the memory whitelist data does not exist in the reference whitelist data of the client, it can be determined that the configuration data acquisition request does not belong to the grayscale strategy.

[0052] In the second method, the specific steps of using the client data to determine whether it is a grayscale strategy include: comparing the client data contained in the request parameter with the reference data of the client; if the client data contained in the request parameter matches the reference data of the client, it is determined that the configuration data acquisition request belongs to the grayscale strategy. Since it is not necessary to adopt the grayscale strategy for all versions of the client, the client data in this example refers to a certain version of each type of the client, and the specific version can be determined according to actual needs. For example, the client data is the name, version number, and identifier of the Android version 9.2 of the client 1, and the reference data of the client is the data of a certain version of the client, such as the name, version number, identifier, etc. corresponding to the Android version 9.2 of the client 1. Next, the client data of the Android version 9.2 of the client 1 contained in the request parameter can be compared and matched with the name, version number, identifier, etc. corresponding to the Android version 9.2 of the client 1. If both match successfully, it can be determined that the configuration data acquisition request belongs to the grayscale strategy; if any of the client data fails to match, it is determined that the configuration data acquisition request does not belong to the grayscale strategy.

[0053] In addition, the memory whitelist data can be combined with the client data to determine whether the configuration data acquisition request belongs to the grayscale strategy. The specific process is similar to the process of using only memory whitelist data and only client data, so it is not described in detail here.

[0054] In this exemplary embodiment, grayscale storage is added to the storage structure of the configuration system to solve the problem that some business functions cannot be partially grayscaled. In addition, a verification process for grayscale policies is added to enable configuration data to support whitelist verification and grayscale changes, thereby grayscale release by client and version.

[0055] In step S220, if the configuration data acquisition request belongs to the grayscale strategy, the grayscale configuration data corresponding to the configuration data acquisition request is returned.

[0056] In this exemplary embodiment, grayscale configuration data refers to the configuration data of the client that meets the grayscale policy, which may be, for example, the configuration data for the client in the internal testing stage, and the scope of grayscale configuration data may be greater than the scope of configuration data for the officially launched client. In this example, grayscale configuration data is generated by adding grayscale nodes to the storage structure of the Zookeeper configuration system, and adding grayscale storage to the storage structure of the client memory data based on the added grayscale nodes. Grayscale configuration data may include, but is not limited to, configuration parameters such as the name, version number, introduction, logo, icon, charging conditions, screenshots, time and quantity of grayscale releases, and user attribute information of the delivery object of the client. When manually changing the configuration data, only the grayscale configuration data can be changed without affecting other configuration data. If the configuration data acquisition request meets the grayscale policy, the client is grayscale released according to the grayscale configuration data.

[0057] The method in this exemplary embodiment avoids the problem of manual modification of configuration data causing full effect due to erroneous operation, and avoids affecting online users, thereby making the scope of configuration data changes controllable, making the configuration system more complete, and improving user experience.

[0058] In step S230, if the configuration data acquisition request belongs to a non-grayscale strategy, the online configuration data corresponding to the configuration data acquisition request is returned.

[0059] In this exemplary embodiment, if the memory whitelist data in the request parameters does not match the reference whitelist data of the client, or the client data in the request parameters does not match the reference data of the client, it can be considered that the client's configuration data acquisition request does not belong to the grayscale policy. Online configuration data refers to the configuration data corresponding to the client that has been online. The online configuration data may include but is not limited to the client's name, version number, introduction, logo, icon, charging conditions, screenshots, time and quantity of grayscale releases, and user attribute information of the delivery object and other configuration parameters, but the specific values ​​of these configuration parameters may be different from the grayscale configuration data. If the configuration data acquisition request does not meet the grayscale policy, the online configuration data is read.

[0060] It should be added that if neither the grayscale configuration data nor the online configuration data is read, the default configuration data corresponding to the configuration data acquisition request is returned. The default configuration data can be set in advance according to actual needs and is not specifically limited here.

[0061] By adding grayscale storage to the storage structure of the configuration system in this exemplary embodiment, the problem that business functions cannot be partially grayscale changed is solved. In addition, the verification process for the grayscale policy is added to support whitelist verification, so that grayscale releases are performed by client and version. In addition, the problem of manual modification of configuration data causing full effect after misoperation is avoided, and the impact on online users is avoided, so that the scope of configuration data changes can be controlled, making the configuration system more complete and improving the user experience.

[0062] Figures 5 to 7 A specific flow chart for managing configuration data is shown in FIG. Figure 5 Including the process of obtaining configuration data, the specific steps include:

[0063] Step S500, obtain configuration data. Step S501, read request parameters such as memory whitelist data, client data and version data. Step S502, compare and determine whether the configuration data acquisition request is a grayscale policy based on the request parameters. Step S503, determine whether the configuration data acquisition request is a grayscale policy. Step S504, if it is a grayscale policy, return the grayscale configuration data. Step S505, if it does not belong to a grayscale policy, return the online configuration data. Step S506, determine whether the grayscale configuration data and the online configuration data are read. If read, end the whole process. Step S507, if the grayscale configuration data and the online configuration data are not read, return the default configuration data.

[0064] Figure 6 The process of initializing configuration data is included, specifically including: step S610, initializing the configuration file. Step S611, reading the configuration data from the configuration system Zookeeper. Step S612, judging whether the reading is successful. If the reading is successful, execute step S613 to load the configuration data into the memory. Step S614, adding grayscale storage to the storage structure of the memory data in the client. Add grayscale data storage structure. Step S615, judging whether the loading into the memory is successful. Step S616, adding data change monitoring. If the reading fails, execute step S617 to obtain the configuration data from the local file. Step S618, judging whether the reading from the local file is successful. If successful, go to step S613. If failed, go to step S619 to determine the startup failure.

[0065] besides, Figure 7 The process of changing configuration data includes: step S720, changing configuration data. Step S721, determining the configuration data change in the configuration system Zookeeper. Step S722, notifying the listener of the change. Step S723, controlling the memory data change. Step S724, re-listening to the changed node.

[0066] pass Figures 5 to 7 The configuration data management method in the configuration data management system avoids the problem of manual modification of configuration data causing full effect after erroneous operation, and avoids the impact on online users, thereby making the scope of configuration data changes controllable, making the configuration system more complete, and improving the user experience.

[0067] In an exemplary embodiment of the present disclosure, a configuration data management device is also provided, referring to Figure 8 As shown, the device 800 includes:

[0068] The request determination module 801 is used to receive a configuration data acquisition request for a client and determine whether the configuration data acquisition request is a grayscale strategy;

[0069] A grayscale configuration module 802, configured to return grayscale configuration data corresponding to the configuration data acquisition request if the configuration data acquisition request belongs to the grayscale strategy;

[0070] The online configuration module 803 is used to return the online configuration data corresponding to the configuration data acquisition request if the configuration data acquisition request belongs to a non-grayscale strategy.

[0071] In an exemplary embodiment of the present disclosure, before receiving a configuration data acquisition request for a client, the device also includes: a node adding module, used to add grayscale nodes to the storage structure in the configuration system; a storage structure adjustment module, used to add grayscale storage to the storage structure of the client memory data according to the grayscale nodes to generate the grayscale configuration data.

[0072] In an exemplary embodiment of the present disclosure, the request judgment module includes: a judgment control module, used to judge whether the configuration data acquisition request is the grayscale policy through the request parameters in the configuration data acquisition request, and the request parameters include at least one of memory whitelist data, client data and version data.

[0073] In an exemplary embodiment of the present disclosure, the judgment control module includes: a first comparison module, used to compare the memory whitelist data in the request parameters with the reference whitelist data of the client; a first determination module, used to determine that the configuration data acquisition request belongs to the grayscale strategy if the memory whitelist data matches the reference whitelist data.

[0074] In an exemplary embodiment of the present disclosure, the judgment control module includes: a second comparison module, used to compare the client data contained in the request parameters with the reference data of the client; and a second determination module, used to determine that the configuration data acquisition request belongs to the grayscale strategy if the client data contained in the request parameters matches the reference data of the client.

[0075] In an exemplary embodiment of the present disclosure, the client data includes a version of the client.

[0076] In an exemplary embodiment of the present disclosure, the request parameters in the configuration data acquisition request are stored in the thread cache through a filter.

[0077] In an exemplary embodiment of the present disclosure, the device further includes: a default reading module, configured to return default configuration data corresponding to the configuration data acquisition request if the grayscale configuration data or the online configuration data is not read.

[0078] It should be noted that the specific details of each module in the above configuration data management device have been described in detail in the corresponding configuration data management method, so they will not be repeated here.

[0079] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0080] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0081] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0082] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".

[0083] Refer to the following Fig. 9 An electronic device 900 according to this embodiment of the present invention will be described. Fig. 9 The electronic device 900 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0084] like Fig. 9 As shown, the electronic device 900 is in the form of a general computing device. The components of the electronic device 900 may include but are not limited to: at least one processing unit 910, at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).

[0085] The storage unit stores program codes, which can be executed by the processing unit 910, so that the processing unit 910 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 910 can perform the following steps: Figure 2 Follow the steps shown in .

[0086] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and / or a cache storage unit 9202 , and may further include a read-only storage unit (ROM) 9203 .

[0087] The storage unit 920 may also include a program / utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0088] Bus 930 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0089] The electronic device 900 may also communicate with one or more external devices 1100 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 900, and / or may communicate with any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 950. Furthermore, the electronic device 900 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 via a bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0090] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0091] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0092] refer to Fig.10 As shown, a program product 1000 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0093] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0094] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0095] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0096] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0097] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0098] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A configuration data management method, It is characterized in that include: Adding a gray node to the storage structure in the configuration system, wherein the gray node includes an application, and the application includes whitelist data, client data and version data, online business configuration and online switch configuration; Adding grayscale storage to the storage structure of client memory data according to the grayscale node to generate grayscale configuration data; Receiving a configuration data acquisition request for the client, and determining whether the configuration data acquisition request is a grayscale strategy; If the configuration data acquisition request belongs to the grayscale strategy, returning the grayscale configuration data corresponding to the configuration data acquisition request; If the configuration data acquisition request belongs to a non-grayscale strategy, returning the online configuration data corresponding to the configuration data acquisition request; Wherein, judging whether the configuration data acquisition request is a grayscale strategy includes: Determining whether the configuration data acquisition request is the grayscale policy by using request parameters in the configuration data acquisition request, wherein the request parameters include memory whitelist data, client data, and version data; The memory whitelist data and the request parameters of the client data included in the configuration data acquisition request are stored in the thread cache through the filter. The thread cache creates a copy of the variable in each thread, and each thread accesses its own internal copy variable.

2. The configuration data management method according to claim 1, It is characterized in that Judging whether the configuration data acquisition request is the grayscale strategy by using the request parameters in the configuration data acquisition request includes: Compare the memory whitelist data in the request parameter with the reference whitelist data of the client; If the memory whitelist data matches the reference whitelist data, it is determined that the configuration data acquisition request belongs to the grayscale policy.

3. The configuration data management method according to claim 1, It is characterized in that Judging whether the configuration data acquisition request is the grayscale strategy by using the request parameters in the configuration data acquisition request includes: comparing the client data contained in the request parameters with reference data of the client; If the client data included in the request parameter matches the reference data of the client, it is determined that the configuration data acquisition request belongs to the grayscale strategy.

4. The configuration data management method according to claim 3, It is characterized in that The client data includes a version of the client.

5. The configuration data management method according to claim 1, It is characterized in that The method further comprises: If the grayscale configuration data or the online configuration data is not read, the default configuration data corresponding to the configuration data acquisition request is returned.

6. A configuration data management device, It is characterized in that include: A request judgment module is used to add a gray node to the storage structure in the configuration system, wherein the gray node includes an application, and the application includes whitelist data, client data and version data, online business configuration and online switch configuration; Adding grayscale storage to the storage structure of client memory data according to the grayscale node to generate grayscale configuration data; Receive a configuration data acquisition request for a client, and determine whether the configuration data acquisition request is a grayscale policy, wherein determining whether the configuration data acquisition request is a grayscale policy includes: determining whether the configuration data acquisition request is the grayscale policy through request parameters in the configuration data acquisition request, wherein the request parameters include memory whitelist data, client data, and version data; storing the memory whitelist data and the request parameters of the client data included in the configuration data acquisition request in a thread cache through a filter, wherein the thread cache creates a copy of the variable in each thread, and each thread accesses its own internal copy variable; A grayscale configuration module, configured to return grayscale configuration data corresponding to the configuration data acquisition request if the configuration data acquisition request belongs to the grayscale strategy; The online configuration module is used to return the online configuration data corresponding to the configuration data acquisition request if the configuration data acquisition request belongs to a non-grayscale strategy.

7. An electronic device, It is characterized in that include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the configuration data management method according to any one of claims 1 to 5 by executing the executable instructions.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the configuration data management method according to any one of claims 1 to 5 is implemented.