Methods, apparatuses, storage media, and electronic devices for processing configuration information

By acquiring and utilizing the dependencies of configuration items, the system automatically identifies relevant business services and updates the configuration file after obtaining consent. This solves the problems of slow business service startup and configuration errors in the information processing system, thereby improving system operating efficiency and accuracy.

CN114860304BActive Publication Date: 2025-10-31NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210455210.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-24
Publication Date
2025-10-31
Estimated Expiration
2042-04-24

AI Technical Summary

Technical Problem

In information processing systems, the accuracy of multiple configuration items needs to be manually checked when business services are started, which leads to slow startup, low system efficiency, and is prone to omissions and errors.

Method used

By obtaining the dependencies of the target configuration items, the relevant business services are automatically determined, and the consent of all relevant personnel is obtained before modifying the basic configuration items to avoid configuration conflicts. The configuration platform is used to automatically update the configuration files.

Benefits of technology

It improves the efficiency of business service startup, avoids omissions and errors during manual configuration, and ensures the accuracy and consistency of configuration files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114860304B_ABST
    Figure CN114860304B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, storage medium, and electronic device for processing configuration information. The method includes: obtaining a modification instruction, wherein the modification instruction is used to modify a target configuration item in the configuration information; responding to the modification instruction, obtaining a first configuration dependency relationship corresponding to the target configuration item, wherein the first configuration dependency relationship indicates whether a dependency relationship exists between the target configuration item and at least one service; determining a target service based on the target configuration item and the first configuration dependency relationship, wherein the target service is a service that has a dependency relationship with the target configuration item; and sending a modification instruction to a target client corresponding to the target service, wherein the target client is used to determine whether to modify the target configuration item based on the modification instruction. This invention solves the technical problem that omissions and errors are easily made when manually configuring or modifying service operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic information, and more specifically, to a method, apparatus, storage medium, and electronic device for processing configuration information. Background Technology

[0002] In current information processing systems, a business service often has dependencies on multiple configuration items, including its own configuration items and the configuration items of the public basic services associated with it. When a business service starts, a lot of manpower is needed to check the accuracy of each configuration item of the business service, and at the same time, the configuration items of the public basic services referenced by the business service must be sorted out, which results in slow business service startup and low system operating efficiency.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] At least some embodiments of the present invention provide a method, apparatus, storage medium and electronic device for processing configuration information, so as to at least solve the technical problem that omissions and errors are easy to occur when manually configuring or modifying service operations.

[0005] According to one embodiment of the present invention, a method for processing configuration information is provided, comprising:

[0006] Obtain modification instructions, which are used to modify target configuration items in the configuration information;

[0007] In response to the modification command, the first configuration dependency relationship corresponding to the target configuration item is obtained, wherein the first configuration dependency relationship is used to indicate whether there is a dependency relationship between the target configuration item and at least one service;

[0008] The target service is determined based on the target configuration item and the first configuration dependency, wherein the target service is the service that has a dependency relationship with the target configuration item;

[0009] A modification command is sent to the target client corresponding to the target service. The target client is used to determine whether to modify the target configuration item based on the modification command.

[0010] Optionally, if it is determined that the target configuration item will be modified, the method further includes: receiving a confirmation instruction from the target client, wherein the confirmation instruction indicates that the target client confirms that the target configuration item will be modified; in response to the confirmation instruction, modifying the target configuration item and generating a modification result; and sending the modification result to the target client, wherein the target client updates the configuration file of the target service according to the modification result.

[0011] Optionally, determining the target service based on the target configuration item and the first configuration dependency includes: obtaining the configuration tag of the target configuration item; and determining the target service containing the configuration tag based on the first configuration dependency.

[0012] Optionally, the method further includes: obtaining a registration instruction, wherein the registration instruction is used to register the first configuration item; in response to the registration instruction, generating a first configuration tag corresponding to the first configuration item, wherein the first configuration item is the currently added configuration item; and sending the first configuration tag to a first client corresponding to the first service, wherein the first service is a service that has a dependency relationship with the first configuration item, and the first client is used to update the configuration file of the first service according to the first configuration tag.

[0013] Optionally, the method further includes: obtaining a second service and a second configuration item, wherein the second service is a currently started service, and the second configuration item is a configuration item that has a dependency relationship with the second service; updating the second configuration dependency relationship based on the second service and the second configuration item, wherein the second configuration dependency relationship is used to indicate whether there is a dependency relationship between the second configuration item and at least one service.

[0014] Optionally, the method further includes: obtaining a third configuration dependency relationship corresponding to a third service, wherein the third service is a currently stopped service, and there is a configuration dependency relationship between the third configuration item in the third configuration dependency relationship and the third service; and deleting the configuration dependency relationship between the third configuration item and the third service in the third configuration dependency relationship.

[0015] Optionally, the method further includes: obtaining a first query instruction, wherein the first query instruction is used to query a fourth service that has a dependency relationship with the fourth configuration item; in response to the first query instruction, obtaining a fourth configuration dependency relationship corresponding to the fourth configuration item, wherein the fourth configuration dependency relationship is used to indicate whether there is a dependency relationship between the fourth configuration item and at least one service; and obtaining the fourth service based on the fourth configuration dependency relationship.

[0016] Optionally, the method further includes: obtaining a second query instruction, wherein the second query instruction is used to query a fifth configuration item that has a dependency relationship with the fifth service; in response to the second query instruction, obtaining the fifth configuration dependency relationship of the fifth service, wherein the fifth configuration item in the fifth configuration dependency relationship has a configuration dependency relationship with the fifth service; and obtaining the fifth configuration item based on the fifth configuration dependency relationship.

[0017] According to one embodiment of the present invention, a configuration information processing apparatus is also provided, comprising: a first acquisition module, configured to acquire a modification instruction, wherein the modification instruction is used to modify a target configuration item in the configuration information; a second acquisition module, configured to acquire a first configuration dependency relationship corresponding to the target configuration item in response to the modification instruction, wherein the first configuration dependency relationship is used to indicate whether there is a dependency relationship between the target configuration item and at least one service; a determination module, configured to determine a target service based on the target configuration item and the first configuration dependency relationship, wherein the target service is a service that has a dependency relationship with the target configuration item; and a sending module, configured to send the modification instruction to a target client corresponding to the target service, wherein the target client is used to determine whether to modify the target configuration item according to the modification instruction.

[0018] According to one embodiment of the present invention, a non-volatile storage medium is also provided, wherein a computer program is stored in the non-volatile storage medium, and the computer program is configured to execute the processing method of the configuration information in any of the above-mentioned items when running.

[0019] According to one embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the processing method for configuration information as described above.

[0020] In at least some embodiments of the present invention, by obtaining the dependencies of the modified configuration items and automatically determining the relevant business services based on the above dependencies, it is not necessary to manually query the business services to be modified one by one, thus avoiding the problem of incomplete business services determined due to the cumbersome query process. At the same time, when modifying the basic configuration items, all staff controlling the business services that have dependencies on the basic configuration items must agree before the basic configuration items are modified, which can effectively avoid configuration conflicts between multiple business services, thereby solving the technical problem that omissions and errors are easy to occur when manually configuring or modifying service business. Attached Figure Description

[0021] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0022] Figure 1 This is a hardware structure block diagram of a mobile terminal for a configuration information processing method according to an embodiment of the present invention.

[0023] Figure 2 This is a structural block diagram of a configuration information processing system according to an embodiment of the present invention;

[0024] Figure 3This is a flowchart of a method for processing configuration information according to one embodiment of the present invention;

[0025] Figure 4 This is a flowchart of a registration configuration item according to an embodiment of the present invention;

[0026] Figure 5 This is a structural block diagram of a configuration information processing apparatus according to one embodiment of the present invention. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] Currently, a business service may be associated with multiple basic service configuration items. Before starting a business service, staff must first review all the basic service configuration items referenced by the service and confirm that the configuration items are referenced correctly. Only after everything is completed can the business service be started. This process requires manual review and checking, which is overly tedious, time-consuming, and prone to omissions. In addition, there may be situations where multiple business services are associated with the same common basic service configuration item. When the configuration of the common basic service is modified, all associated business services will be affected. When the configuration item associated with the common basic service conflicts with the business service, manual confirmation of the configuration conflict is also required, and this confirmation process is also prone to omissions.

[0030] According to one embodiment of the present invention, an embodiment of a method for processing configuration information is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0031] This method embodiment can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smartphone (such as an Android phone, iOS phone, etc.), tablet computer, PDA, mobile Internet Device (MID), PAD, game console, and other terminal devices. Figure 1 This is a hardware structure block diagram of a mobile terminal for a configuration information processing method according to an embodiment of the present invention, as shown below. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a central processing unit (CPU), graphics processing unit (GPU), digital signal processing (DSP) chip, microprocessor (MCU), programmable logic device (FPGA), neural network processor (NPU), tensor processor (TPU), artificial intelligence (AI) type processor, etc.) and a memory 104 for storing data are also shown. Optionally, the mobile terminal may further include a transmission device 106 for communication functions, an input / output device 108, and a display device 110. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0032] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the configuration information processing method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the aforementioned configuration information processing method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0033] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0034] The inputs in input / output device 108 can come from multiple human interface devices (HIDs). Examples include keyboards and mice, gamepads, and other dedicated game controllers (such as steering wheels, fishing rods, dance mats, and remote controls). Some HIDs, in addition to providing input functions, can also provide output functions, such as force feedback and vibration from gamepads, and audio output from controllers.

[0035] Display device 110 may be, for example, a head-up display (HUD), a touchscreen liquid crystal display (LCD), and a touch display (also referred to as a "touchscreen" or "touch display"). The LCD allows a user to interact with the user interface of the mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), which allows the user to interact with the GUI by touching and / or gesturing on a touch-sensitive surface. Optional human-computer interaction functions include: creating web pages, drawing, word processing, creating electronic documents, playing games, video conferencing, instant messaging, sending and receiving emails, a call interface, playing digital video, playing digital music, and / or web browsing, etc. Executable instructions for performing the above human-computer interaction functions are configured / stored in one or more processor-executable computer program products or readable storage media. The configuration information processing method in one embodiment of this disclosure can run on a local terminal device or a server. When the configuration information processing method runs on a server, the method can be implemented and executed based on a cloud interaction system, which includes a server and client devices.

[0036] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of configuration information processing methods are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses game screen data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.

[0037] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.

[0038] Figure 2 This is a structural block diagram of a configuration information processing system according to an embodiment of the present invention, such as... Figure 2 As shown, the entire information configuration processing system is divided into three parts:

[0039] The first part is the database, which contains two tables: Config and Dependency. Config tables store the configuration tags for configuration items and the dependencies between business services and configuration items. For example, if the game service `play A` in the business platform has dependencies on configuration items `gift1` and `gift2`, the configuration in the Config table can optionally be configured as follows:

[0040] Config

[0041] {

[0042] config_service_name:“gift”# Public basic service name

[0043] config_type: "gift_config" # Configuration type

[0044] config_id:10#Configuration ID

[0045] config_value:“gift_10” # Configuration value

[0046] }

[0047] Alternatively, the configuration of the Denpendency table in the database can be as follows:

[0048] Dependency

[0049] {

[0050] app_service_name:“play_A”#Business service name

[0051] tag:(“gift”,“gift_config”,10) # Dependency configuration tag

[0052] }

[0053] The second part is the configuration platform, which is used to register, modify, synchronize, and monitor configuration items. The relevant steps are described below.

[0054] The third part is the business platform, which contains the business services that the entire system can perform. Each service provides a general external interface for listening to configuration change messages from the configuration platform.

[0055] In one possible implementation, the present invention provides a method for processing configuration information, which provides a graphical user interface through a terminal device, wherein the terminal device may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. Figure 3 This is a flowchart of a configuration information processing method according to one embodiment of the present invention. A graphical user interface is provided through a terminal device. The content displayed by the graphical user interface includes a touch area, such as... Figure 3 As shown, the method includes the following steps:

[0056] Step S302: Obtain modification instructions, wherein the modification instructions are used to modify the target configuration items in the configuration information.

[0057] When staff need to change the relationship between business services and configuration items, they can send modification instructions to the system. These instructions may include, but are not limited to: registering new configuration items and updating the Config table in the database; modifying and synchronizing new dependencies between business services and configuration items and updating the Denpendency table; and monitoring the dependencies between business services and configuration items to facilitate querying the configuration items that a business service depends on or the business services that depend on a configuration item.

[0058] Step S304: In response to the modification instruction, obtain the first configuration dependency relationship corresponding to the target configuration item, wherein the first configuration dependency relationship is used to indicate whether there is a dependency relationship between the target configuration item and at least one service.

[0059] The first configuration dependency mentioned above refers to the dependency relationship between the target configuration item and one or more business services. For example, if the configuration file of the game gameplay service play A in the business platform depends on the configuration item gift1 of the gift service gift, its first configuration dependency includes the following dependency: the game gameplay service play A depends on the configuration item gift1 of the gift service gift.

[0060] Once it is determined that the target configuration item needs to be modified, the business services that have a dependency relationship with the target configuration item need to be identified in the configuration platform. If there are none, the target configuration item is modified directly; if there are, step S306 is executed.

[0061] Step S306: Determine the target service based on the target configuration item and the first configuration dependency relationship, wherein the target service is a service that has a dependency relationship with the target configuration item.

[0062] As shown in step S304 above, when the target configuration item is gift1, its dependencies include the gameplay service play A depending on the configuration item gift1 to work. It can be determined that the target service of the target configuration item gift1 includes at least the gameplay service play A.

[0063] Since a target configuration item may have dependencies on multiple business services, if the target configuration item `gift1` also depends on game gameplay services such as `play B` and `play C`, then the first configuration dependency also includes: game gameplay service `play B` depends on configuration item `gift1` and game gameplay service `play C` depends on configuration item `gift1`. In this case, it can be determined that the target services include game gameplay services `play A`, `play B`, and `play C`.

[0064] Step S308: Send a modification instruction to the target client corresponding to the target service, wherein the target client is used to determine whether to modify the target configuration item based on the modification instruction.

[0065] The target client mentioned above is the client corresponding to the business service identified in step S306. When the target client receives a modification instruction for the target configuration item, the staff needs to review the modification instruction to determine whether the modification will have any adverse effects. Since a target configuration item may correspond to multiple business services, and the client corresponding to each business service will be handled by different staff, before modifying the target configuration item, all staff involved in the modification need to jointly determine whether to approve the modification, including the staff modifying the configuration item and all staff responsible for the clients of the business services that depend on the configuration item.

[0066] If the modification of the target configuration item has a significant negative impact on the business service, such as the business service function being missing or even stopping during operation, the staff will refuse to modify the target configuration item; if the impact is within an acceptable range, such as the business service function only experiencing occasional fluctuations and delays, the staff will agree to modify the target configuration item.

[0067] For example, let's say the target configuration item is `gift1`, and the dependent gameplay services are `play A`, `play B`, and `play C`. The clients corresponding to these services are `K1`, `K2`, and `K3`. The staff assigned to each client can be the same or different. If `gift1` needs to be modified, the staff members corresponding to clients `K1`, `K2`, and `K3` must each determine whether the modification will have a significant negative impact on the gameplay services `play A`, `play B`, and `play C`. If any staff member determines that the modification will have a significant negative impact and disagrees with the modification, then `gift1` will not be modified. Only when all staff members determine that the modification will not have a negative impact on the gameplay services `play A`, `play B`, and `play C` and agree to the modification can the configuration platform modify `gift1`.

[0068] Optionally, if staff want to modify the gift service configuration item in the configuration platform, they can do so as follows:

[0069] {

[0070] ("gift","gift_config",1):{name:"gift11",icon:"http: / / xxxx11"},

[0071] ("gift","gift_config",2):{name:"gift22",icon:"http: / / xxxx22"}

[0072] }

[0073] Then it is necessary to search the Denpendency table to identify all service operations that depend on configuration items gift1 and gift2. If the search results indicate that the current Denpendency table contains:

[0074] {

[0075] app_service_name:“play_A”

[0076] tag:("gift","gift_config",1)

[0077] }

[0078] {

[0079] app_service_name:“play_A”

[0080] tag:("gift","gift_config",2)

[0081] }

[0082] {

[0083] app_service_name:“play_B”

[0084] tag:("gift","gift_config",1)

[0085] }

[0086] {

[0087] app_service_name:“play_C”

[0088] tag:("gift","gift_config",2)

[0089] }

[0090] This identifies the service dependencies of configuration items gift1 and gift2 as the gameplay services play A, play B, and play C. At this point, a modification notification needs to be sent to the clients K1, K2, and K3 corresponding to the gameplay services play A, play B, and play C, notifying the relevant personnel to confirm whether modification is permissible. If modification is not possible, then configuration items gift1 and gift2 should not be modified; if modification is permissible, then the gameplay services play A, play B, and play C can be modified first. The modified configuration file is as follows:

[0091] {

[0092] ("gift","gift_config",1):{name:"gift11",icon:"http: / / xxxx11"},

[0093] ("gift","gift_config",2):{name:"gift22",icon:"http: / / xxxx22"}

[0094] }

[0095] After modifying the gameplay services play A, play B, and play C, their configuration values ​​can be synchronously updated to their respective configuration files through the business platform's general external interface.

[0096] By obtaining the dependencies of the modified configuration items and automatically determining the relevant business services based on these dependencies, there is no need for manual querying of each business service to be modified. This avoids the problem of incomplete business services being identified due to the cumbersome query process. At the same time, when modifying basic configuration items, all staff controlling business services that have dependencies on the basic configuration item must agree before the basic configuration item is modified. This effectively avoids configuration conflicts between multiple business services and solves the technical problems of omissions and errors that are prone to occur when manually configuring or modifying business services.

[0097] In one optional embodiment, once all staff members have determined that the target configuration item can be modified, the configuration platform receives a confirmation instruction from the target client, wherein the confirmation instruction indicates that the target client confirms the modification of the target configuration item; in response to the confirmation instruction, the target configuration item is modified, and a modification result is generated; the modification result is sent to the target client, wherein the target client updates the configuration file of the target service based on the modification result.

[0098] After receiving confirmation from staff that they agree to the modification, the configuration platform modifies the target configuration item and sends the result to the client corresponding to the business service. The client then updates the configuration file of the business service based on the modification result. Optionally, the modification result can also be synchronized to the Config and Denpendency tables in the database, allowing staff to query business services or configuration items based on the new database, thus improving system operating efficiency and staff efficiency in querying business services or configuration items.

[0099] In one optional embodiment, determining the target service based on the target configuration item and the first configuration dependency includes: obtaining the configuration tag of the target configuration item; and determining the target service containing the configuration tag based on the first configuration dependency.

[0100] In other words, the dependency relationship between the target configuration item and the target service can be represented by configuration tags. Each configuration tag is denoted as (target service name, service type, configuration value n). For example, if the configuration item gift1 has a dependency relationship with the game play service play A, and the game play service play A is a service used to transmit data information, then the configuration value is taken as 1. A configuration tag for the configuration item gift1 can be (gift, gift_config, 1), and in the Denpendency table, it forms two rows of dependency relationship with app_service_name: "play_A", indicating that the configuration item gift1 has a dependency relationship with the game play service play A. The configuration value n can be set by the staff and can be a positive integer starting from 0 in ascending order. It can be used to represent the nth configuration item giftn of the gift service gift.

[0101] Configuration tags determined by the dependencies between configuration items and business services can be saved to the Config table in the database. At the same time, business services and configuration tags can also be saved to the Denpendency table. The specific program for database configuration is not limited.

[0102] In an optional embodiment, the method for processing configuration information further includes: obtaining a registration instruction, wherein the registration instruction is used to register a first configuration item; in response to the registration instruction, generating a first configuration tag corresponding to the first configuration item, wherein the first configuration item is a currently added configuration item; and sending the first configuration tag to a first client corresponding to a first service, wherein the first service is a service that has a dependency relationship with the first configuration item, and the first client is used to update the configuration file of the first service according to the first configuration tag.

[0103] Since a configuration item can have dependencies on the configuration files of multiple business services, and similarly, a configuration file of a business service can have dependencies on multiple configuration items, configuring each dependency separately in the system would consume a large amount of memory space, and would also cause many inconveniences for staff when determining whether to modify the configuration item. Therefore, this embodiment proposes a method for registering configuration items. Figure 4 This is a flowchart of a registration configuration item according to an embodiment of the present invention, such as... Figure 4 As shown, the specific steps for registering configuration items and updating the business service configuration file are as follows:

[0104] Step S402: Obtain the registration instruction, wherein the registration instruction is used to register the first configuration item.

[0105] The dependencies between business services and configuration items may change. For example, the play A game service play A may become dependent on the new configuration item gift2, or the configuration item gift1 may become dependent on the new game service play D. Staff will then issue an instruction to the system to register the configuration items.

[0106] Step S404: In response to the registration instruction, generate a first configuration tag corresponding to the first configuration item, wherein the first configuration item is the currently added configuration item.

[0107] After receiving the instruction to register a configuration item, the configuration platform generates configuration tags based on the dependencies between business services and configuration items, and registers the new configuration item dependencies. For example, if a gameplay service `playA` depends on the configuration items `gift1` and `gift2` of the gift service `gift`, the configuration of registering the two configuration items `gift1` and `gift2` in the configuration platform could be as follows:

[0108] {

[0109] config_service_name: "gift"

[0110] config_type: "gift_config"

[0111] config_id:1

[0112] config_value:{

[0113] name: "Gift 1" # Gift Name

[0114] icon: "http: / / xxxx1"#gift icon

[0115] }

[0116] {

[0117] config_service_name: "gift"

[0118] config_type: "gift_config"

[0119] config_id:2

[0120] config_value:{

[0121] name: "Gift 2" #Gift Name

[0122] icon: "http: / / xxxx2" #gift icon

[0123] }

[0124] Correspondingly, the configuration tags for the gameplay service play A that reference the above two configuration items gift1 and gift2 in the configuration file can be:

[0125] ("gift","gift_config",1)

[0126] ("gift","gift_config",2)

[0127] Step S406: Send the first configuration tag to the first client corresponding to the first service, wherein the first service is a service that has a dependency relationship with the first configuration item, and the first client is used to update the configuration file of the first service according to the first configuration tag.

[0128] As shown in the example above, after the configuration platform registers a new configuration tag, two rows of dependency relationships can be generated in the Denpendency table of the database. The generation procedure can be:

[0129] {

[0130] app_service_name:“play_A”

[0131] tag:("gift","gift_config",1)

[0132] }

[0133] {

[0134] app_service_name:“play_A”

[0135] tag:("gift","gift_config",2)

[0136] }

[0137] Simultaneously, the new configuration tag is sent to the client corresponding to the gameplay service play A. The client updates the configuration file of the gameplay service play A based on the configuration tag. Optionally, the program that updates the configuration file can be:

[0138] {

[0139] (“gift”,“gift_config”,1):{name:“gift1”,icon:“http: / / xxxx1”},

[0140] ("gift","gift_config",2):{name:"gift2",icon:"http: / / xxxx2"}

[0141] }

[0142] In one optional embodiment, when the configuration file is updated, the interface request parameters of the business platform may be:

[0143] {

[0144] tag:(config_service_name,config_type,config_id)

[0145] config_value: "config_value"

[0146] }

[0147] When a business service receives an API request, it checks the existing configuration file and updates the configuration value of the corresponding configuration tag in the existing configuration file, for example:

[0148] The existing configuration files for the business services are

[0149] {

[0150] (“gift”,“gift_config”,1):{name:“gift1”,icon:“http: / / xxxx1”},

[0151] ("gift","gift_config",2):{name:"gift2",icon:"http: / / xxxx2"},

[0152] }

[0153] Upon receiving a request, the configuration file for that service is updated as follows:

[0154] {

[0155] ("gift","gift_config",1):{name:"gift11",icon:"http: / / xxxx11"}

[0156] ("gift","gift_config",2):{name:"gift22",icon:"http: / / xxxx22"}

[0157] }

[0158] By using the above method to register new configuration items, the new dependencies are updated in the configuration file of the business service, ensuring that no newly registered configuration items are missed and avoiding omissions or errors when modifying configuration items or business services in the future.

[0159] Corresponding to the above-described method for registering configuration items, the method for processing configuration information further includes: obtaining a second service and a second configuration item, wherein the second service is a currently running service and the second configuration item is a configuration item that has a dependency relationship with the second service; updating the second configuration dependency relationship based on the second service and the second configuration item, wherein the second configuration dependency relationship is used to indicate whether there is a dependency relationship between the second configuration item and at least one service.

[0160] Before a service starts, its corresponding configuration file needs to be scanned. Then, the dependencies of all configuration items are sent to the configuration platform to update the existing dependencies of that service. For example, when the gameplay service `play A` starts, if `play A` has configuration files that depend on the configuration items `gift1` and `gift2`, these dependencies need to be sent to the configuration platform. The configuration platform then updates the dependencies between `play A` and `gift1` and `gift2`, ensuring that `play A` does not encounter service errors due to missing configuration items during runtime.

[0161] Optionally, when the gameplay service play A starts, all rows with the line "app_service_name: "play_A" can be deleted from the Denpendency table. Then, configuration tags generated based on the dependencies of the gameplay service play A can be written to the Denpendency table. The format of the written tags can be:

[0162] {

[0163] app_service_name:“play_A”

[0164] tag:("gift","gift_config",1)

[0165] }

[0166] {

[0167] app_service_name:“play_A”

[0168] tag:("gift","gift_config",2)

[0169] }

[0170] Corresponding to the above-mentioned update configuration platform for business service dependencies, the configuration information processing method also includes deleting the business service dependencies in the configuration platform: obtaining the third configuration dependency corresponding to the third service, wherein the third service is a currently stopped service, and there is a configuration dependency between the third configuration item in the third configuration dependency and the third service; deleting the configuration dependency between the third configuration item and the third service in the third configuration dependency.

[0171] Before a service is shut down, it's necessary to identify and remove any configuration items in the configuration platform that have dependencies on it. For example, if the game gameplay service `play A` has dependencies on configuration items `gift1` and `gift2` in the configuration platform, then when stopping the gameplay service `play A`, these dependencies must be removed first, and then the gameplay service `play A` must be shut down.

[0172] Alternatively, when the gameplay service play A stops, all rows with app_service_name: "play_A" in the Denpendency table can be deleted, i.e., the aforementioned write program can be removed.

[0173] The method described above for starting and stopping business services quickly locates the referenced configuration tags based on dependencies, and then automatically notifies relevant business services to update configuration files and delete related configuration file information based on changes in configuration tags. This ensures information security, avoids omissions that may occur when manually querying configuration files, and improves the operating efficiency of business services.

[0174] Since there are too many dependencies between configuration items and business services, querying each configuration item that has a dependency on a business service would be tedious. Therefore, the configuration information processing method proposed in this application also includes a method for querying business services that have a dependency on a configuration item: obtaining a first query instruction, wherein the first query instruction is used to query a fourth service that has a dependency on a fourth configuration item; in response to the first query instruction, obtaining the fourth configuration dependency corresponding to the fourth configuration item, wherein the fourth configuration dependency indicates whether there is a dependency between the fourth configuration item and at least one service, and obtaining the fourth service based on the fourth configuration dependency.

[0175] Staff can query all business services that depend on a certain configuration item based on dependencies, so as to modify or use the business services.

[0176] For example, when a staff member wants to query business services that depend on the configuration item gift1, they can send the query command to the configuration platform. The configuration platform stores all configuration tags and their corresponding configuration values. After receiving the query command, the configuration platform retrieves the corresponding configuration tag and configuration value based on the configuration item gift1 in the command. Then, based on the configuration tag and configuration value, it can retrieve the business services that depend on the configuration item gift1. Taking the game gameplay services play A, play B, and play C as an example, after the configuration platform retrieves the game gameplay services play A, play B, and play C, it will return the query results to the staff member, who can then modify or delete the business services.

[0177] Similarly, the configuration information processing method proposed in this application also includes a method for querying configuration items that have a dependency relationship with a business service: obtaining a second query instruction, wherein the second query instruction is used to query a fifth configuration item that has a dependency relationship with a fifth service; in response to the second query instruction, obtaining the fifth configuration dependency relationship of the fifth service, wherein the fifth configuration item in the fifth configuration dependency relationship has a configuration dependency relationship with the fifth service; and obtaining the fifth configuration item based on the fifth configuration dependency relationship.

[0178] Staff can query all configuration items that a particular business service depends on based on dependencies, making it easier to modify or use these configuration items.

[0179] For example, when staff want to query configuration items that depend on the gameplay service "play A", they can send a query command to the configuration platform. The configuration platform stores all configuration tags and their corresponding configuration values. After receiving the query command, the configuration platform retrieves the corresponding configuration tags and configuration values ​​based on the gameplay service "play A" in the command. Then, based on the configuration tags and configuration values, it can retrieve the business services that depend on the gameplay service "play A". Taking configuration items "gift1" and "gift2" as examples, after the configuration platform retrieves the configuration items "gift1" and "gift2", it feeds back the query results to the staff. The staff can then modify or delete the business services, improving their work efficiency.

[0180] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.

[0181] This embodiment also provides a configuration information processing method and a configuration information processing apparatus. This apparatus is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the terms "unit" and "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0182] Figure 5 This is a structural block diagram of a configuration information processing apparatus according to one embodiment of the present invention. A graphical user interface is provided through a terminal device, and the content displayed in the graphical user interface includes a touch area, such as... Figure 5 As shown, the device includes:

[0183] The first acquisition module 502 is used to acquire modification instructions, wherein the modification instructions are used to modify the target configuration items in the configuration information;

[0184] The second acquisition module 504 is used to acquire the first configuration dependency relationship corresponding to the target configuration item in response to the modification instruction, wherein the first configuration dependency relationship is used to indicate whether there is a dependency relationship between the target configuration item and at least one service;

[0185] The determination module 506 is used to determine the target service based on the target configuration item and the first configuration dependency relationship, wherein the target service is a service that has a dependency relationship with the target configuration item;

[0186] The sending module 508 is used to send modification instructions to the target client corresponding to the target service. The target client is used to determine whether to modify the target configuration item based on the modification instructions.

[0187] Optionally, the device further includes: a receiving module for receiving a confirmation instruction from a target client, wherein the confirmation instruction indicates that the target client confirms the modification of the target configuration item; a modification module for modifying the target configuration item in response to the confirmation instruction and generating a modification result; and a sending module for sending the modification result to the target client, wherein the target client updates the configuration file of the target service according to the modification result.

[0188] Optionally, the determining module 506 includes: a first obtaining unit, used to obtain the configuration tag of the target configuration item; the first determining unit determines the target service containing the configuration tag based on the first configuration dependency relationship.

[0189] Optionally, the device further includes: a third acquisition module, configured to acquire a registration instruction, wherein the registration instruction is used to register the first configuration item; a generation module, configured to generate a first configuration tag corresponding to the first configuration item in response to the registration instruction, wherein the first configuration item is the currently added configuration item; and a second sending module, configured to send the first configuration tag to a first client corresponding to the first service, wherein the first service is a service that has a dependency relationship with the first configuration item, and the first client is used to update the configuration file of the first service according to the first configuration tag.

[0190] Optionally, the device further includes: a fourth acquisition module, configured to acquire a second service and a second configuration item, wherein the second service is a currently started service and the second configuration item is a configuration item that has a dependency relationship with the second service; and an update module, configured to update the second configuration dependency relationship based on the second service and the second configuration item, wherein the second configuration dependency relationship is used to indicate whether there is a dependency relationship between the second configuration item and at least one service.

[0191] Optionally, the device further includes: a fifth acquisition module, used to acquire a third configuration dependency relationship corresponding to a third service, wherein the third service is a currently stopped service, and there is a configuration dependency relationship between the third configuration item in the third configuration dependency relationship and the third service; and a deletion module, used to delete the configuration dependency relationship between the third configuration item and the third service in the third configuration dependency relationship.

[0192] Optionally, the device further includes: a sixth acquisition module, configured to acquire a first query instruction, wherein the first query instruction is used to query a fourth service that has a dependency relationship with the fourth configuration item; a first query module, configured to, in response to the first query instruction, acquire a fourth configuration dependency relationship corresponding to the fourth configuration item, wherein the fourth configuration dependency relationship is used to indicate whether there is a dependency relationship between the fourth configuration item and at least one service; and obtain the fourth service based on the fourth configuration dependency relationship.

[0193] Optionally, the device further includes: a seventh acquisition module, configured to acquire a second query instruction, wherein the second query instruction is used to query a fifth configuration item that has a dependency relationship with the fifth service; a second query module, configured to, in response to the second query instruction, acquire the fifth configuration dependency relationship of the fifth service, wherein the fifth configuration item in the fifth configuration dependency relationship has a configuration dependency relationship with the fifth service; and obtain the fifth configuration item based on the fifth configuration dependency relationship.

[0194] It should be noted that the above-mentioned units and modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but not limited to these: all the above-mentioned units and modules are located in the same processor; or, the above-mentioned units and modules are located in different processors in any combination.

[0195] Embodiments of the present invention also provide a non-volatile storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.

[0196] Optionally, in this embodiment, the non-volatile storage medium described above can be configured to store a computer program for performing the following steps:

[0197] S1, obtain the modification command, whereby the modification command is used to modify the target configuration item in the configuration information;

[0198] S2, in response to the modification command, obtains the first configuration dependency relationship corresponding to the target configuration item;

[0199] S3, determine the target service based on the target configuration items and the first configuration dependency;

[0200] S4, send the modification command to the target client corresponding to the target service.

[0201] Optionally, in this embodiment, the aforementioned non-volatile storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0202] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.

[0203] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0204] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0205] S1, obtain the modification command, whereby the modification command is used to modify the target configuration item in the configuration information;

[0206] S2, in response to the modification command, obtains the first configuration dependency relationship corresponding to the target configuration item;

[0207] S3, determine the target service based on the target configuration items and the first configuration dependency;

[0208] S4, send the modification command to the target client corresponding to the target service.

[0209] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.

[0210] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0211] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0212] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0213] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0214] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0215] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0216] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for processing configuration information, characterized in that, The method includes: Obtain modification instructions, wherein the modification instructions are used to modify the target configuration item in the configuration information; In response to the modification instruction, a first configuration dependency relationship corresponding to the target configuration item is obtained, wherein the first configuration dependency relationship is used to indicate whether there is a dependency relationship between the target configuration item and at least one service; The target service is determined based on the target configuration item and the first configuration dependency relationship, wherein the target service is a service that has a dependency relationship with the target configuration item; The modification instruction is sent to the target client corresponding to the target service, wherein the target client is used to review the modification instruction, determine the degree of impact of the current modification on the target service, and determine whether the degree of impact is within a preset range, so as to determine whether to modify the target configuration item; The method further includes: Receive a confirmation instruction from the target client, wherein the confirmation instruction indicates that the target client confirms the modification of the target configuration item; In response to the confirmation command, the target configuration item is modified, and a modification result is generated; The modification result is sent to the target client, and / or the modification result is synchronized to the configuration table and dependency table in the database, wherein the target client is used to update the configuration file of the target service according to the modification result; Determining the target service based on the target configuration item and the first configuration dependency includes: Obtain the configuration tag of the target configuration item, wherein the configuration tag is used to indicate the dependency relationship between the target configuration item and the target service; Based on the first configuration dependency relationship, the target service containing the configuration tag is determined.

2. The method according to claim 1, characterized in that, The method further includes: Obtain a registration instruction, wherein the registration instruction is used to register the first configuration item; In response to the registration instruction, a first configuration tag corresponding to the first configuration item is generated, wherein the first configuration item is the currently added configuration item; Send the first configuration tag to the first client corresponding to the first service, wherein the first service is a service that has a dependency relationship with the first configuration item, and the first client is used to update the configuration file of the first service according to the first configuration tag.

3. The method according to claim 1, characterized in that, The method further includes: Obtain the second service and the second configuration item, wherein the second service is the currently started service, and the second configuration item is the configuration item that the second service has a dependency on; The second configuration dependency is updated based on the second service and the second configuration item, wherein the second configuration dependency is used to indicate whether there is a dependency relationship between the second configuration item and the at least one service.

4. The method according to claim 1, characterized in that, The method further includes: Obtain the third configuration dependency relationship corresponding to the third service, wherein the third service is a currently stopped service, and there is a configuration dependency relationship between the third configuration item in the third configuration dependency relationship and the third service; Delete the configuration dependency between the third configuration item and the third service in the third configuration dependency relationship.

5. The method according to claim 1, characterized in that, The method further includes: Obtain a first query instruction, wherein the first query instruction is used to query a fourth service that has a dependency relationship with the fourth configuration item; In response to the first query instruction, the fourth configuration dependency relationship corresponding to the fourth configuration item is obtained, wherein the fourth configuration dependency relationship is used to indicate whether there is a dependency relationship between the fourth configuration item and the at least one service; The fourth service is obtained based on the fourth configuration dependency.

6. The method according to claim 1, characterized in that, The method further includes: Obtain a second query instruction, wherein the second query instruction is used to query a fifth configuration item that has a dependency relationship with the fifth service; In response to the second query instruction, the fifth configuration dependency of the fifth service is obtained, wherein the fifth configuration item in the fifth configuration dependency has a configuration dependency relationship with the fifth service; The fifth configuration item is obtained based on the fifth configuration dependency.

7. A configuration information processing apparatus, characterized in that, The device includes: The first acquisition module is used to acquire modification instructions, wherein the modification instructions are used to modify the target configuration item in the configuration information; The second acquisition module is used to acquire the first configuration dependency relationship corresponding to the target configuration item in response to the modification instruction, wherein the first configuration dependency relationship is used to indicate whether there is a dependency relationship between the target configuration item and at least one service; The determination module is used to determine the target service based on the target configuration item and the first configuration dependency relationship, wherein the target service is a service that has a dependency relationship with the target configuration item; The sending module is used to send the modification instruction to the target client corresponding to the target service, wherein the target client is used to review the modification instruction, determine the degree of impact of the current modification on the target service, and determine whether the degree of impact is within a preset range, so as to determine whether to modify the target configuration item; The device is further configured to receive a confirmation instruction from the target client, wherein the confirmation instruction indicates that the target client confirms the modification of the target configuration item; in response to the confirmation instruction, modify the target configuration item and generate a modification result; send the modification result to the target client, and / or synchronize the modification result to the configuration table and dependency table in the database, wherein the target client is configured to update the configuration file of the target service according to the modification result; The determining module is further configured to obtain the configuration tag of the target configuration item, wherein the configuration tag is used to represent the dependency relationship between the target configuration item and the target service; and to determine the target service containing the configuration tag based on the first configuration dependency relationship.

8. A non-volatile storage medium, characterized in that, The non-volatile storage medium stores a computer program, wherein the computer program is configured to execute the configuration information processing method according to any one of claims 1 to 6 when running.

9. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the configuration information processing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Configuration data processing method, configuration data processing apparatus, computer device and storage medium

    CN109474456A

  • Configuration management method, system and computer readable storage medium

    CN110719187A

  • Configuration changing method and system in service system, and computer readable storage medium

    CN112511359A