Configuration scheduling method, device and system

By dynamically acquiring and updating configuration information, it solves the problem of unknown or dynamically changing configuration node addresses in the game business, realizes flexible scheduling and collaborative completion of applications, and improves the real-time and flexibility of the business.

CN112667350BActive Publication Date: 2024-09-27GUANGZHOU SANQI MUTUAL ENTERTAINMENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202011572356.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-23
Publication Date
2024-09-27
Estimated Expiration
2040-12-23

AI Technical Summary

Technical Problem

In game business scenarios where applications are scheduled on a large scale, the address of the configuration node may be unknown or dynamically changed when the process is started, causing the application to fail to be scheduled and affecting the collaborative completion of the game business.

Method used

By obtaining identity information from the application's container environment, matching the configuration node group, dynamically obtaining configuration information, and updating the container when the configuration changes, avoiding writing the configuration node address into the code, and adapting to dynamic configuration changes.

Benefits of technology

It realizes application scheduling under dynamic configuration, improves the collaborative completion ability of multiple applications, simplifies configuration operations, and improves flexibility and real-time performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112667350B
    Figure CN112667350B
Patent Text Reader

Abstract

The present application discloses a configuration scheduling method, device and system, the method comprising: in response to an application startup operation, obtaining identity information of the application from a container environment where the application of a client is located; matching a corresponding first configuration node group according to the identity information, so that when receiving corresponding first address information reported by the first configuration node group, first configuration information is obtained from the first configuration node group according to the first address information, and the first configuration information is sent to the application, wherein the first configuration node group includes at least one first configuration node, and the first address information includes address information of each of the first configuration nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a configuration scheduling method, device and system. Background Art

[0002] In a distributed system, when a program is started, the application is usually started by obtaining the configuration information on the configuration node. Therefore, in order to obtain the configuration information, the application will write the address of the configuration node into the code during the development of the program code. However, in the game business scenario that requires large-scale scheduling of applications, there are too many addresses of configuration nodes that need to be obtained. The addresses of some configuration nodes may be modified or known only when the process is started, resulting in the inability to schedule the corresponding application, thereby affecting the scheduling of other applications in the game business scenario, resulting in multiple applications not being able to cooperate well to complete the corresponding game business. Summary of the invention

[0003] The purpose of the present application is to solve at least one of the technical problems existing in the prior art, and to provide a configuration scheduling method, device and system to realize dynamic configuration of configuration information and quickly complete related game services.

[0004] The present application provides a configuration scheduling method, including:

[0005] In response to the application startup operation, the identity information of the application is obtained from the container environment where the client application is located;

[0006] According to the identity information, a corresponding first configuration node group is matched, so that when corresponding first address information reported by the first configuration node group is received, first configuration information is obtained from the first configuration node group according to the first address information, and the first configuration information is sent to the application, wherein the first configuration node group includes at least one first configuration node, and the first address information includes address information of each of the first configuration nodes.

[0007] Furthermore, the embodiment of the present application also includes:

[0008] Sending the first configuration information to a first configuration container of the application and detecting a configuration change instruction;

[0009] When the configuration change instruction is received, second configuration information is obtained from the second configuration node group that matches the configuration change instruction and sent to the application, so that a second configuration container covering the first configuration container is created in the application according to the second configuration information, the second configuration node group includes at least one second configuration node, and the second address information includes address information of each second configuration node.

[0010] Further, the acquiring second configuration information from the second configuration node group matching the configuration change instruction and sending it to the application program includes:

[0011] Obtaining node information in the configuration change instruction;

[0012] matching a corresponding second configuration node group according to the node information, so that when receiving corresponding second address information reported by the second configuration node group, acquiring the second configuration information from the second configuration node group according to the second address information;

[0013] The second configuration information is sent to the application.

[0014] Further, acquiring first configuration information from the first configuration node group according to the first address information includes:

[0015] According to the first address information, a plurality of data configuration groups are acquired from the first configuration node group, wherein the data configuration groups include a plurality of data configuration layers, and the data configuration layers encapsulate configuration data for starting the application program;

[0016] According to the overwriting priority of each of the configuration groups, the configuration groups with higher priorities are sequentially overwritten with the configuration groups with lower priorities to generate the first configuration information.

[0017] Further, acquiring multiple data configuration groups from the first configuration node group according to the first address information includes:

[0018] According to the first address information, data configuration groups corresponding to the first configuration nodes in the first configuration node group are acquired.

[0019] Further, the step of sequentially overwriting the configuration groups with lower priorities with the configuration groups with higher priorities according to the overwriting priorities of the configuration groups includes:

[0020] According to the coverage priority of each data configuration layer of the first configuration group in each of the configuration groups, and the coverage priority of each data configuration layer of the second configuration group in each of the configuration groups, the data configuration layer with high coverage priority in the first configuration group covers the data layer with low coverage priority in the second configuration group.

[0021] Furthermore, the coverage priority between the data configuration layers is determined by at least one of the following methods:

[0022] Determined according to the startup process of the target application;

[0023] Determined according to the application function of the target application;

[0024] Determined by custom configuration priority.

[0025] Furthermore, the configuration data includes address information of configuration parameters.

[0026] Furthermore, in an embodiment of the present application, a configuration scheduling device is also provided, including:

[0027] An information acquisition module, used to respond to an application startup operation and obtain the identity information of the application from the container environment where the client application is located;

[0028] A configuration scheduling module is configured to match a corresponding first configuration node group according to the identity information, so that when receiving the first address information corresponding to the first configuration node group, the first configuration information is obtained from the first configuration node group according to the first address information, and the first configuration information is sent to the application, wherein the first configuration node group includes at least one first configuration node, and the first address information includes address information of each of the first configuration nodes.

[0029] Furthermore, in an embodiment of the present application, a server is also provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the configuration scheduling method as described in the above embodiment is implemented.

[0030] Furthermore, in an embodiment of the present application, a configuration scheduling system is also provided, including a client, a gateway, a configuration node group and a server as described in the above embodiment, the client is connected to the server, the gateway is permanently connected to the client and the server, and the server is connected to each configuration node in the configuration node group.

[0031] Furthermore, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the configuration scheduling method as described in the above embodiment is implemented.

[0032] Furthermore, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the configuration scheduling method described in the above embodiment.

[0033] Compared with the prior art, the above embodiment obtains the identity information of the application from the container environment where the application is located, and matches the first configuration node group according to the identity information, so that when the server receives the first address information reported by the first configuration node group, it obtains the first configuration information according to the first address information and sends it to the application. Therefore, there is no need to write the address of the configuration node into the code of the application, avoiding the situation where the address of some configuration nodes is not obtained until the process starts, resulting in scheduling failure. It is well adapted to the situation of dynamic configuration, so that multiple applications can better cooperate to complete the game business.

[0034] The above embodiment detects the configuration change instruction, and when receiving the configuration change instruction, obtains the second configuration information from the corresponding second configuration node group and sends it to the application, thereby creating a second configuration container to cover the first configuration container, so that when the configuration information of the container needs to be added or modified, there is no need to restart the container, and the service can be better continued during the configuration information update process.

[0035] The above embodiment obtains the node information of the configuration change instruction and matches the second configuration node group, so that when the server receives the second address information reported by the second configuration node group, it obtains the second configuration information according to the second address information, thereby eliminating the need to write the address of the node corresponding to the configuration change instruction into the code of the application program, better adapting to the situation of dynamic update of configuration information, and enabling multiple applications to better cooperate to complete the game business.

[0036] The above embodiment generates the first configuration information by acquiring multiple data configuration groups from the first configuration node, and overwriting the low-priority configuration group with the high-priority configuration group according to the overwriting priority of each configuration group. A more suitable configuration group can be selected, and the configuration information can be changed by modifying the overwriting priority, so there is no need to repeatedly configure multiple data, which simplifies the operation steps and improves flexibility.

[0037] The above embodiment can fully consider the configuration information of each configuration node and better select the corresponding configuration information to schedule the application by acquiring each data configuration group corresponding to each first configuration node from each first configuration node in the first configuration node group.

[0038] The above embodiment further enhances the real-time performance of the entire configuration scheduling process by overwriting the data configuration layer with a high coverage priority in the first configuration group with the corresponding data configuration layer with a low coverage priority in the second configuration group, thereby eliminating the need to overwrite the second configuration group with all the data in the first configuration group.

[0039] In the above embodiment, the coverage priority in each data configuration layer can be configured according to the startup process or application function of the target application, and can also be configured according to custom configuration parameters, which enables the coverage priority of each data configuration layer to be configured according to a variety of situations and has a wider application.

[0040] The above embodiment can dynamically obtain the configuration value by setting the address information of the configuration parameter in the configuration data, thereby avoiding the influence of changes caused by the deployment environment or other conditions on the fixed configuration value. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The present application is further described below with reference to the accompanying drawings and embodiments;

[0042] Figure 1 An application environment diagram of a configuration scheduling method in an embodiment;

[0043] Figure 2 A schematic diagram of a flow chart of a configuration scheduling method in an embodiment;

[0044] Figure 3 A schematic diagram of a flow chart of a method for configuring a scheduling in another embodiment;

[0045] Figure 4 A structural block diagram of a configuration scheduling device in an embodiment;

[0046] Figure 5 A structural block diagram of a configuration scheduling device in another embodiment;

[0047] Figure 6 A structural block diagram of a server in one embodiment;

[0048] Figure 7 is a structural block diagram of a computer device in one embodiment;

[0049] Figure 8 A schematic diagram of the structure of configuring a scheduling system in an embodiment. DETAILED DESCRIPTION

[0050] This section will describe in detail the specific embodiments of the present application. The preferred embodiments of the present application are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present application, but it cannot be understood as a limitation on the scope of protection of the present application.

[0051] In a distributed system, when a program is started, the application is usually started by obtaining the configuration information on the configuration node. Therefore, in order to obtain the configuration information, the application will write the address of the configuration node into the code during the development of the program code. However, in the game business scenario where large-scale scheduling of applications is required, there are too many addresses of configuration nodes that need to be obtained, and the addresses of some configuration nodes may be modified or known only when the process is started, resulting in the corresponding application being unable to be scheduled, thereby affecting the scheduling of other applications in the game business scenario, resulting in multiple applications not being able to cooperate well to complete the corresponding game business. Among them, the distributed system is usually a software system built on the network, the configuration node is usually a network device customized in the system for traffic transmission, and the configuration information is usually data stored in the memory. In the game business scenario, the distributed system can be a computer cluster built on the network, the configuration node can be a server connected to multiple client networks respectively, and the configuration information can be a configuration parameter that can drive the game application installed in the client.

[0052] In order to solve the above technical problems, Figure 1 FIG. 1 is an application environment diagram of a configuration scheduling method in an embodiment. Figure 1 , the configuration scheduling system includes a client 110, a server 120 and a configuration center 130. The client 110 and the server 120 are respectively connected to the configuration center 130 through a network. The client 110 can be a desktop client or a mobile client. The mobile client 110 can be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The client 110 can be implemented with an independent client or a client cluster composed of multiple clients. The server 120 can be implemented with an independent server or a server cluster composed of multiple servers. The configuration center 130 can be implemented with an independent server or a server cluster composed of multiple servers. Among them, the client is used to provide an operation interface, so that the user can set the identity information or input the startup command of the application through the operation interface of the client; multiple configuration node groups are configured in the server cluster, and relevant configuration information can be obtained from them according to the address information of the multiple configuration node groups; the configuration center is used to obtain configuration information from the server to start the application installed on the user side.

[0053] The configuration scheduling method provided in the embodiments of the present application will be introduced and explained in detail through several specific embodiments.

[0054] like Figure 2 As shown, in one embodiment, a configuration scheduling method is provided. This embodiment mainly uses the method applied to a computer device as an example. The computer device can specifically be the above-mentioned Figure 1 Configuration center 130 in.

[0055] Reference Figure 2 , the configuration scheduling method specifically includes the following steps:

[0056] S11. In response to the application startup operation, the identity information of the application is obtained from the container environment where the client application is located.

[0057] In this embodiment, the configuration center responds to the startup operation of the application installed in the client, wherein the startup operation refers to the request information issued when the application needs to be started to obtain relevant configuration information. At this time, the configuration center obtains the identity information of the application from the container environment where the client's application is located according to the startup operation. Among them, the identity information is usually a unique ID corresponding to the application, which is used to enable the configuration center and the server to uniquely and accurately identify the application. The ID can be a custom code of the application or the address of the application. In this embodiment, the content and form of the identity information are not specifically limited.

[0058] In this embodiment, the container environment where the application is located is the container image file where the application is located. In the process of writing the container image file of the application, the identity information corresponding to the application is written.

[0059] For example, compile a container image file for the application "Game A", which includes the operating system Windows 10, application files, and custom identity information of "Game A". When the application "Game A" is started, it needs to connect to the business server, so the identity information needs to be associated with the business server. For example, the identity information of "Game A" obtained by the configuration center is ysczg-B, which indicates that the application "Game A" is bound to the business server B.

[0060] S12. Match the corresponding first configuration node group according to the identity information, so that when receiving the first address information corresponding to the first configuration node group reported by the first configuration node group, obtain the first configuration information from the first configuration node group according to the first address information, and send the first configuration information to the application, wherein the first configuration node group includes at least one first configuration node, and the first address information includes address information of each first configuration node.

[0061] In this embodiment, the configuration center matches the corresponding first configuration node group in the server based on the identity information. Since the application needs to connect to the server to obtain relevant configuration information in the server when it starts, but the port and IP of the server are constantly changing, it is difficult for the application to connect to the server. At this time, after the configuration center matches the corresponding first configuration node group, it receives the first address information uploaded by the first configuration node group. The configuration center obtains the first configuration information based on the first address information, and sends the first configuration information to the application to start the application. Among them, the first configuration node group refers to each server node corresponding to the server or server cluster, the first address information refers to the port address of each server node corresponding to the server or server cluster, and the first configuration information refers to a set of parameters for starting the application.

[0062] For example, when the application "Game A" is started, it needs to connect to the business server B to obtain the configuration information of the business server for implementing the account recharge function, account login function and account positioning function. At this time, the configuration center matches the business server B according to the identity information ysczg-B. The first node configuration group corresponding to the business server B includes three configuration nodes, namely configuration node 1, configuration node 2 and configuration node 3. Due to the dependency relationship between the application and the server, when the application "Game A" is started, the configuration nodes 1, 2 and 3 corresponding to the business server B will all be started. After configuration nodes 1, 2, and 3 are started, they will upload the current port address information 192.168.1.1, 192.168.1.2, and 192.168.1.3 to the configuration center. The configuration center obtains the configuration information abcd for implementing the account recharge function, the configuration information efgh for implementing the account login function, and the configuration information ijkl for implementing the account location function from configuration nodes 1, 2, and 3, respectively, based on the received port address information 192.168.1.1, 192.168.1.2, and 192.168.1.3 of configuration nodes 1, 2, and 3. The application "Game A" is started according to the configuration information abcdefghijkl.

[0063] In one embodiment, obtaining first configuration information from a first configuration node group according to the first address information includes:

[0064] According to the first address information, a plurality of data configuration groups are obtained from the first configuration node group, wherein the data configuration groups include a plurality of data configuration layers, and the data configuration layers encapsulate configuration data for starting the application program;

[0065] According to the overwriting priority of each configuration group, the configuration groups with higher priorities are sequentially overwritten with the configuration groups with lower priorities to generate the first configuration information.

[0066] In this embodiment, the configuration center obtains multiple data configuration groups from the first configuration node group based on the first address information uploaded by each first configuration node group. Among them, the data configuration group refers to the code set required for the startup and operation of the application. The data configuration layer refers to a parameter set formed by the combination of configuration data required for the startup and operation of the application. Configuration data refers to a set of partial parameters required for the startup and operation of the application. After obtaining multiple data configuration groups, the configuration center will overwrite the data configuration group with a low coverage priority with the data configuration group with a high coverage priority according to the coverage priority of each data configuration group. Among them, the coverage priority refers to the level set at the current moment according to the importance of the data configuration group during the startup or operation of the application, and the coverage priority can be set manually.

[0067] For example, for the "Game A" application on the platform, the configuration center obtains data configuration group 1 with configuration information abcdefghijkl, data configuration group 2 with configuration information a'bcdefghijkl, and data configuration group 3 with configuration information abcdefghijkl' from configuration nodes 1, 2, and 3, respectively, based on the received port address information 192.168.1.1, 192.168.1.2, and 192.168.1.3 of configuration nodes 1, 2, and 3. The application "Game A" needs to be started according to the configuration information abcdefghijkl. At this time, the user can set the coverage priority of each data configuration group in configuration nodes 1, 2, and 3 in business server B. According to the configuration information required for the startup of the application "Game A" at the current moment, the coverage priority of data configuration group 1 can be set to (2), and the coverage priorities of data configuration groups 2 and 3 can be set to (1). At this time, the configuration center uses the data configuration group 1 with the overwriting priority of (2) to overwrite the data configuration group 2 and data configuration group 3 with the overwriting priority of (1), and obtains the configuration information abcdefghijkl based on the finally obtained data configuration group 1. When the configuration information required by the application changes, the corresponding configuration information can be obtained by modifying the overwriting priority.

[0068] In this embodiment, by acquiring multiple data configuration groups from the first configuration node, the first configuration information is generated by overwriting the low-priority configuration group with the high-priority configuration group according to the overwriting priority of each configuration group. A more suitable configuration group can be selected, and the configuration information can be changed by modifying the overwriting priority, so there is no need to repeatedly configure multiple data, which simplifies the operation steps and improves flexibility.

[0069] In one embodiment, acquiring multiple data configuration groups from a first configuration node group according to the first address information includes:

[0070] According to the first address information, data configuration groups corresponding to the first configuration nodes in the first configuration node group are obtained.

[0071] In this embodiment, each first configuration node has a corresponding data configuration group, wherein there is a one-to-one correspondence between the first configuration nodes and the data configuration groups.

[0072] In this embodiment, by acquiring data configuration groups corresponding to each first configuration node from each first configuration node in the first configuration node group, the configuration information of each configuration node can be fully considered, and the corresponding configuration information can be better selected to schedule the application.

[0073] In one embodiment, according to the overwriting priority of each configuration group, the configuration groups with higher priorities overwrite the configuration groups with lower priorities in sequence, including:

[0074] According to the coverage priority of each data configuration layer of the first configuration group in each configuration group and the coverage priority of each data configuration layer of the second configuration group in each configuration group, the data configuration layer with high coverage priority in the first configuration group covers the data layer with low coverage priority in the second configuration group.

[0075] In this embodiment, each configuration group includes a first configuration group and a second configuration group, and each configuration group includes a data configuration layer. The user can set an overwrite priority for the data configuration layer so that the configuration center can overwrite and replace the data configuration layer in the configuration group according to the overwrite priority of the data configuration layer.

[0076] For example, for the application "Game A" on the platform, starting the application "Game A" requires configuration information a'bcdefghijkl', and the configuration center obtains data configuration group 1 with configuration information abcdefghijkl, data configuration group 2 with configuration information a'bcdefghijkl, and data configuration group 3 with configuration information abcdefghijkl' from configuration nodes 1, 2, and 3 respectively according to the port address information 192.168.1.1, 192.168.1.2, and 192.168.1.3 of the received configuration nodes 1, 2, and 3, wherein data configuration group 1 includes configuration Data configuration layer 1-1 with information abcd, data configuration layer 1-2 with information efgh, and data configuration layer 1-3 with information ijkl; data configuration group 2 includes data configuration layer 2-1 with information a'bcd, data configuration layer 2-2 with information efgh, and data configuration layer 2-3 with information ijkl; data configuration group 3 includes data configuration layer 3-1 with information abcd, data configuration layer 3-2 with information efgh, and data configuration layer 3-3 with information ijkl'; parameters a and a', l and l' are the same type of parameters, that is, there can only be one in the same position in the file. In this case, it is generally necessary to rewrite the configuration information to start the application "Game A". In this embodiment, the overwriting priority of data configuration layers 1-1, 1-2 and 1-3 in configuration module 1 can be set to (1). The overwriting priority of data configuration layer 2-1 in configuration module 2 is set to (2), and the overwriting priority of data configuration layers 2-2 and 2-3 is set to (1). The overwriting priority of data configuration layer 3-3 in configuration module 3 is set to (2), and the overwriting priority of data configuration layers 3-1 and 3-2 is set to (1). At this time, the configuration center will overwrite the corresponding data configuration layers 1-1 and 3-1 with overwriting priority (1) with data configuration layer 2-1 with overwriting priority (2), and the resulting configuration information is ijkl'. The data configuration layer 3-3 with overwriting priority (2) will overwrite the corresponding data configuration layers 1-3 and 2-3 with overwriting priority (1), and the resulting configuration information is a'bcd. Since the overwriting priority of data configuration layers 1-2, 2-2 and 3-2 with configuration information efgh are all (1), the configuration center can arbitrarily select one of the data configuration layers to generate configuration information. Therefore, the configuration information finally generated is a'bcdefghijkl'.

[0077] In this embodiment, by overwriting the data configuration layer with a high coverage priority in the first configuration group with the corresponding data configuration layer with a low coverage priority in the second configuration group, there is no need to overwrite the second configuration group with all the data of the first configuration group, thereby further enhancing the real-time performance of the entire configuration scheduling process, and eliminating the need to reconfigure the configuration information, thereby simplifying the operating steps and improving flexibility.

[0078] In one embodiment, the overlay priority between the data configuration layers is determined by at least one of the following methods:

[0079] Determined by the startup process of the target application;

[0080] Determined based on the application functionality of the target application;

[0081] Determined by custom configuration priority.

[0082] In this embodiment, the user configures the coverage priority of each data configuration layer, which can be configured according to the startup process of the target application, the application function of the target application, or the custom configuration parameters. For example, the coverage priority of each data configuration layer can be configured based on the startup process of the target application "Game A", which includes hardware initialization, execution of the boot loader, loading and starting the kernel image, etc. The coverage priority of each data configuration layer can also be configured based on the application functions of the target application "Game A", which include the recharge function, account input function, and push reception function. The coverage priority of each data configuration layer can also be configured based on the custom configuration parameters of the target application "Game A", which include network interface selection and operating system selection.

[0083] In this embodiment, the coverage priority in each data configuration layer can be configured according to the startup process or application function of the target application, and can also be configured according to custom configuration parameters. This allows the coverage priority of each data configuration layer to be configured according to a variety of situations and has a wider application range.

[0084] In one embodiment, the configuration data includes address information of configuration parameters.

[0085] In this embodiment, the configuration parameters in the configuration data may need to be changed due to changes in the deployment environment or other conditions. For example, when the network connected to the application changes during startup, the corresponding configuration parameters may need to be changed from a to a' in order to start the application due to different network operators. At this time, the server can use the configuration placeholder key: ${XXX} to define certain configuration parameters that may need to be dynamically changed, or use the address information of the configuration parameters that may need to be dynamically changed to replace them, so that the server determines the parameters required when starting the application and then obtains the value of the relevant parameter from the address information.

[0086] In this embodiment, by setting the address information of the configuration parameter in the configuration data, the configuration value can be obtained dynamically, thereby avoiding the influence of changes caused by the deployment environment or other conditions on the fixed configuration value.

[0087] In the above embodiment, the configuration center can obtain configuration information from the node configuration group corresponding to the server through the Kubernetes platform, and can schedule the application container through the Kubernetes platform to implement the scheduling of the application. The input of the configuration information is input into the container of the application on the Kubernetes platform for configuration.

[0088] In the above embodiment, by obtaining the identity information of the application from the container environment where the application is located, and matching the first configuration node group according to the identity information, when the server receives the first address information reported by the first configuration node group, it obtains the first configuration information according to the first address information and sends it to the application, thereby eliminating the need to write the address of the configuration node into the application code, avoiding the situation where the address of some configuration nodes is not obtained until the process starts, resulting in scheduling failure, and being well adapted to dynamic configuration situations, so that multiple applications can better cooperate to complete game services.

[0089] like Figure 3 As shown, in another embodiment, a configuration scheduling method is provided. This embodiment mainly uses the method applied to a computer device as an example. The computer device can specifically be the above-mentioned Figure 1 Configuration center 130 in.

[0090] Reference Figure 3 , the configuration scheduling method specifically includes the following steps:

[0091] S21. In response to the application startup operation, the identity information of the application is obtained from the container environment where the client application is located.

[0092] This step is the same as that in the above embodiment. The specific analysis can refer to the above embodiment. In order to avoid repetition, it will not be described here.

[0093] S22. Match the corresponding first configuration node group according to the identity information, so that when receiving the first address information corresponding to the first configuration node group, obtain the first configuration information from the first configuration node group according to the first address information, and send the first configuration information to the application, wherein the first configuration node group includes at least one first configuration node, and the first address information includes address information of each first configuration node.

[0094] This step is the same as that in the above embodiment. The specific analysis can refer to the above embodiment. In order to avoid repetition, it will not be described here.

[0095] S23: Send the first configuration information to a first configuration container of the application program, and detect a configuration change instruction.

[0096] In this embodiment, the configuration center sends the first configuration information to the first configuration container of the application. For example, the configuration center obtains the configuration information abcd for implementing the account recharge function, the configuration information efgh for implementing the account login function, and the configuration information ijkl for implementing the account positioning function from configuration nodes 1, 2, and 3, respectively, and sends them to the configuration container 1 for storing the configuration information of the application "Game A". At this time, the configuration container 1 stores the configuration information abcdefghijkl of the application "Game A".

[0097] Afterwards, the configuration center detects the configuration change instruction sent by the application, where the configuration change instruction refers to the request information sent by the application when part of the configuration needs to be changed during operation. The change instruction can include the corresponding server information where the changed part of the configuration is located. For example, in the application "Game A", the configuration information efgh that implements the account login function needs to be changed to the configuration information e'fgh that implements the account logout function. The server where the configuration information e'fgh that implements the account logout function is located is the business server A, and the change instruction can be bg-A.

[0098] S24. When receiving a configuration change instruction, obtain second configuration information from a second configuration node group that matches the configuration change instruction and send the second configuration information to the application program, so as to create a second configuration container covering the first configuration container in the application program according to the second configuration information, wherein the second configuration node group includes at least one second configuration node, and the second address information includes address information of each second configuration node.

[0099] In this embodiment, the configuration center receives the configuration change instruction sent by the application, matches the second configuration node group corresponding to the server according to the server associated in the change instruction, obtains the second configuration information in the second configuration node group, and sends the second configuration information to the application, so that a second configuration container is created in the application to store the second configuration information and the first configuration information that does not need to be changed, and the configuration center then uses the second configuration container to cover the first configuration container. The second configuration node group refers to each server node corresponding to the server or server cluster, and the second configuration information refers to a set of parameters used for the application to implement specific functions.

[0100] For example, the configuration center receives the configuration change instruction bg-A sent by the application "Game A", connects to the business server A, and in order to obtain the configuration information for implementing the account logout function in the business server A, the configuration center matches the business server A according to the change instruction bg-A. The second node configuration group corresponding to the business server A includes three configuration nodes, namely, configuration node 4, configuration node 5 and configuration node 6. These three configuration nodes store the configuration information for implementing the account push function, the configuration information for implementing the account logout function, and the configuration information for implementing the account reminder function. After the configuration center matches the business server A, since it only needs to change the configuration information for implementing the account login function in the application "Game A" to the configuration information for implementing the account logout function, it only needs to obtain the configuration information e'fgh for implementing the account logout function from the configuration node 5. After obtaining, the application "Game A" can create a second configuration container according to the changed and modified configuration information abcde'fghijkl, and overwrite the first configuration container according to the second configuration container, wherein the overwriting method can be replacement. In this embodiment, the overwriting method is not specifically limited.

[0101] In one embodiment, obtaining second configuration information from a second configuration node group matching the configuration change instruction and sending the second configuration information to the application program includes:

[0102] Get the node information in the configuration change instruction;

[0103] Matching the corresponding second configuration node group according to the node information, so that when receiving the corresponding second address information reported by the second configuration node group, obtaining the second configuration information from the second configuration node group according to the second address information;

[0104] The second configuration information is sent to the application.

[0105] In this embodiment, the configuration center receives the configuration change instruction sent by the application, matches the second configuration node group corresponding to the server according to the server associated in the change instruction, receives the second address information uploaded by the second configuration node group, obtains the second configuration information according to the second address information, and sends the second configuration information to the application, so that a second configuration container is created in the application to store the second configuration information and the first configuration information that does not need to be changed, and the configuration center then uses the second configuration container to cover the first configuration container. Among them, the second configuration node group refers to each server node corresponding to the server or server cluster, and the second address information refers to the port address of each server node corresponding to the server or server cluster.

[0106] For example, the configuration center receives the configuration change instruction bg-A sent by the application "Game A", connects to the business server A, and in order to obtain the configuration information for implementing the account logout function in the business server A, the configuration center matches the business server A according to the change instruction bg-A. The second node configuration group corresponding to the business server A includes three configuration nodes, namely configuration node 4, configuration node 5 and configuration node 6. These three configuration nodes store the configuration information for implementing the account push function, the configuration information for implementing the account logout function, and the configuration information for implementing the account reminder function. When the configuration center matches the business server A, the configuration nodes 4, 5, and 6 corresponding to the business server A will all be started. After starting, configuration nodes 4, 5, and 6 will upload the current port address information 192.168.1.4, 192.168.1.5, and 192.168.1.6 to the configuration center. The configuration center receives the port address information 192.168.1.3, 192.168.1.4, and 192.168.1.5 of configuration nodes 4, 5, and 6. Since only the configuration information for implementing the account login function in the application "Game A" needs to be changed to the configuration information for implementing the account logout function, only the configuration information e'fgh for implementing the account logout function needs to be obtained from configuration node 5. After obtaining, the application "Game A" can create a second configuration container according to the changed configuration information abcde'fghijkl, and overwrite the first configuration container according to the second configuration container, wherein the overwriting method can be replacement. In this embodiment, the overwriting method is not specifically limited.

[0107] In this embodiment, by obtaining the node information of the configuration change instruction and matching the second configuration node group, when the server receives the second address information reported by the second configuration node group, it obtains the second configuration information according to the second address information, thereby eliminating the need to write the address of the node corresponding to the configuration change instruction into the application code, better adapting to the dynamic update of configuration information, and enabling multiple applications to better cooperate to complete game services.

[0108] In the above embodiment, by detecting the configuration change instruction, and upon receiving the configuration change instruction, obtaining the second configuration information from the corresponding second configuration node group and sending it to the application, a second configuration container is created to cover the first configuration container, so that when the configuration information of the container needs to be added or modified, there is no need to restart the container, and the service can be better continued during the configuration information update process.

[0109] In one embodiment, Figure 4 As shown, a configuration scheduling device is provided, comprising:

[0110] The information acquisition module 101 is used to respond to the application startup operation and obtain the identity information of the application from the container environment where the client application is located.

[0111] The configuration scheduling module 102 is used to match the corresponding first configuration node group according to the identity information, so that when receiving the first address information corresponding to the first configuration node group reported by the first configuration node group, the first configuration information is obtained from the first configuration node group according to the first address information, and the first configuration information is sent to the application, wherein the first configuration node group includes at least one first configuration node, and the first address information includes address information of each first configuration node.

[0112] In one embodiment, the scheduling module 102 is configured to:

[0113] According to the first address information, a plurality of data configuration groups are obtained from the first configuration node group, wherein the data configuration groups include a plurality of data configuration layers, and the data configuration layers encapsulate configuration data for starting the application program;

[0114] According to the overwriting priority of each configuration group, the configuration groups with higher priorities are sequentially overwritten with the configuration groups with lower priorities to generate the first configuration information.

[0115] In one embodiment, the configuration data includes address information of configuration parameters.

[0116] In one embodiment, the scheduling module 102 is configured to:

[0117] According to the first address information, data configuration groups corresponding to the first configuration nodes in the first configuration node group are obtained.

[0118] In one embodiment, the scheduling module 102 is configured to:

[0119] According to the coverage priority of each data configuration layer of the first configuration group in each configuration group and the coverage priority of each data configuration layer of the second configuration group in each configuration group, the data configuration layer with high coverage priority in the first configuration group covers the data layer with low coverage priority in the second configuration group.

[0120] In one embodiment, the scheduling module 102 is configured to:

[0121] Determine the override priority between data configuration layers by at least one of the following methods:

[0122] Determined by the startup process of the target application;

[0123] Determined based on the application functionality of the target application;

[0124] Determined by custom configuration priority.

[0125] In another embodiment, Figure 5 As shown, a configuration scheduling device is provided, comprising:

[0126] The information acquisition module 101 is used to respond to the application startup operation and obtain the identity information of the application from the container environment where the client application is located.

[0127] The configuration scheduling module 102 is used to match the corresponding first configuration node group according to the identity information, so that when receiving the first address information corresponding to the first configuration node group reported by the first configuration node group, the first configuration information is obtained from the first configuration node group according to the first address information, and the first configuration information is sent to the application, wherein the first configuration node group includes at least one first configuration node, and the first address information includes address information of each first configuration node.

[0128] The configuration change module 103 is used to send the first configuration information to the first configuration container of the application and detect the configuration change instruction; when receiving the configuration change instruction, obtain the second configuration information from the second configuration node group matching the configuration change instruction and send it to the application, so as to create a second configuration container covering the first configuration container in the application according to the second configuration information, and the second configuration node group includes at least one second configuration node.

[0129] In one embodiment, the configuration change module 103 is further used to:

[0130] Get the node information in the configuration change instruction;

[0131] Matching the corresponding second configuration node group according to the node information, so that when receiving the corresponding second address information reported by the second configuration node group, obtaining the second configuration information from the second configuration node group according to the second address information, where the second address information includes the address information of each second configuration node;

[0132] The second configuration information is sent to the application.

[0133] In one embodiment, a server is provided, such as Figure 6 As shown, it includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the configuration scheduling method as described in the above embodiment is implemented.

[0134] In one embodiment, a computer device is provided, such as Figure 7As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected via a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the configuration scheduling method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute the configuration scheduling method. Those skilled in the art can understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0135] In one embodiment, the configuration scheduling device provided by the present application can be implemented in the form of a computer program. The computer program can be Figure 7 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the configuration scheduling device. The computer program composed of various program modules enables the processor to execute the steps of the configuration scheduling method of various embodiments of the present application described in this specification.

[0136] In one embodiment, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of the above-mentioned configuration scheduling method when executing the program. The steps of the configuration scheduling method here may be the steps of the configuration scheduling method in the above-mentioned various embodiments.

[0137] In one embodiment, a configuration scheduling system is provided, such as Figure 8 As shown, it includes a client, a gateway, a configuration node group and a server as described in the above embodiment, the client is connected to the server, the gateway is permanently connected to the client and the server, and the server is connected to each configuration node in the configuration node group.

[0138] In this embodiment, config is a microservice-based configuration center, which can obtain configuration files from container data sources, third-party interface data sources, local data sources or themis. Themis is a middle-office server used to connect to microservice systems with multiple different business functions. config obtains node configuration groups and corresponding configuration information from the middle-office server. Users set the coverage priority of each node configuration group through the client's operation interface function. Config implements the coverage of data configuration groups according to the coverage priority of each data configuration group to obtain configuration information. When the application starts, the configuration information can be obtained through the broker. The broker can use the RSocket intelligent gateway. The client is the web client of themis, which is used to display the operation interface. The application is an application that needs to be configured and accessed, and can continue to obtain new configuration changes from the config configuration center in subsequent operations.

[0139] In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, wherein the computer-executable instructions are used to cause a computer to execute the steps of the above-mentioned configuration scheduling method. The steps of the configuration scheduling method here may be the steps of the configuration scheduling method in the above-mentioned various embodiments.

[0140] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications are also considered to be within the scope of protection of the present application.

[0141] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

Claims

1. A configuration scheduling method, It is characterized in that include: In response to the application startup operation, the identity information of the application is obtained from the container environment where the client application is located; According to the identity information, the corresponding first configuration node group is matched, so that when the first address information corresponding to the first configuration node group is received, multiple data configuration groups are obtained from the first configuration node group according to the first address information, wherein the data configuration group includes multiple data configuration layers, and the data configuration layer encapsulates the configuration data for starting the application; according to the overwriting priority of each of the configuration groups, the configuration groups with high priority are sequentially overwritten with the configuration groups with low priority to generate first configuration information, and the first configuration information is sent to the application, wherein the first configuration node group includes at least one first configuration node, and the first address information includes address information of each of the first configuration nodes.

2. The configuration scheduling method according to claim 1, It is characterized in that Also includes: Sending the first configuration information to a first configuration container of the application and detecting a configuration change instruction; When the configuration change instruction is received, second configuration information is obtained from a second configuration node group that matches the configuration change instruction and sent to the application, so that a second configuration container covering the first configuration container is created in the application according to the second configuration information, and the second configuration node group includes at least one second configuration node.

3. The configuration scheduling method according to claim 2, It is characterized in that The acquiring second configuration information from the second configuration node group matching the configuration change instruction and sending it to the application program includes: Obtaining node information in the configuration change instruction; matching a corresponding second configuration node group according to the node information, so that when receiving corresponding second address information reported by the second configuration node group, acquiring the second configuration information from the second configuration node group according to the second address information, wherein the second address information includes address information of each second configuration node; The second configuration information is sent to the application.

4. The configuration scheduling method according to claim 1, It is characterized in that The acquiring a plurality of data configuration groups from the first configuration node group according to the first address information includes: According to the first address information, data configuration groups corresponding to each first configuration node in the first configuration node group are acquired.

5. The configuration scheduling method according to claim 1 or 4, It is characterized in that The step of sequentially overwriting the configuration groups with lower priorities with the configuration groups with higher priorities according to the overwriting priorities of the configuration groups comprises: According to the coverage priority of each data configuration layer of the first configuration group in each of the configuration groups, and the coverage priority of each data configuration layer of the second configuration group in each of the configuration groups, the data configuration layer with high coverage priority in the first configuration group covers the data configuration layer with low coverage priority in the second configuration group.

6. The configuration scheduling method according to claim 5, It is characterized in that The overlay priority between the data configuration layers is determined by at least one of the following methods: Determined according to a startup process of the application; Determined according to the application functionality of the application; Determined by custom configuration priority.

7. The configuration scheduling method according to claim 1, It is characterized in that The configuration data includes address information of configuration parameters.

8. A configuration scheduling device, It is characterized in that include: An information acquisition module, used to respond to an application startup operation and obtain the identity information of the application from the container environment where the client application is located; A configuration scheduling module is used to match the corresponding first configuration node group according to the identity information, so that when receiving the corresponding first address information reported by the first configuration node group, multiple data configuration groups are obtained from the first configuration node group according to the first address information, wherein the data configuration group includes multiple data configuration layers, and the data configuration layer encapsulates configuration data for starting the application; according to the overwriting priority of each of the configuration groups, the configuration groups with high priority are sequentially overwritten with the configuration groups with low priority to generate first configuration information, and the first configuration information is sent to the application, wherein the first configuration node group includes at least one first configuration node, and the first address information includes address information of each of the first configuration nodes.

9. A server, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the configuration scheduling method according to any one of claims 1 to 7 when executing the computer program.

10. A configuration scheduling system, It is characterized in that It comprises a client, a gateway, a configuration node group and a server as claimed in claim 9, wherein the client is connected to the server, the gateway is permanently connected to the client and the server, and the server is connected to each configuration node in the configuration node group.

Citation Information

Patent Citations

  • Mobile terminal flow processing method based on content distribution network, apparatus and system thereof

    CN106034330A

  • Application deployment method and device

    CN106533713A

  • Container application deployment method and device, computer equipment and storage medium

    CN108958927A

  • Container processing method and device, main body server, system and storage medium

    CN109992354A

  • Online experiment method and device

    CN111176782A