CN112667313B - Process starting method, device and system - Google Patents

Process starting method, device and system Download PDF

Info

Publication number
CN112667313B
CN112667313B CN202011544796.9A CN202011544796A CN112667313B CN 112667313 B CN112667313 B CN 112667313B CN 202011544796 A CN202011544796 A CN 202011544796A CN 112667313 B CN112667313 B CN 112667313B
Authority
CN
China
Prior art keywords
configuration
test
formal
data
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011544796.9A
Other languages
Chinese (zh)
Other versions
CN112667313A (en
Inventor
刘舟
王俊锐
杨帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Sanqi Mutual Entertainment Technology Co ltd
Original Assignee
Guangzhou Sanqi Mutual Entertainment Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Sanqi Mutual Entertainment Technology Co ltd filed Critical Guangzhou Sanqi Mutual Entertainment Technology Co ltd
Priority to CN202011544796.9A priority Critical patent/CN112667313B/en
Publication of CN112667313A publication Critical patent/CN112667313A/en
Application granted granted Critical
Publication of CN112667313B publication Critical patent/CN112667313B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses a method, a device and a system for starting a process, wherein the method comprises the following steps: responding to a process starting operation, and sending each test configuration group forming the target application program to the client, wherein the test configuration group comprises a plurality of test data configuration layers, and test configuration data for generating the target application program are packaged in the test data configuration layers; after detecting that the client completes the process starting test of the target application program according to each test configuration group, searching at least one formal configuration group according to each test configuration group; and covering the corresponding test configuration groups by the formal configuration groups to generate formal process configuration, and covering the test process configuration formed by the test configuration groups in the client according to the formal process configuration to enable the client to start the target application program according to the formal process configuration, wherein the formal configuration groups comprise a plurality of formal data configuration layers, and formal configuration data for generating the target application program are packaged in the formal data configuration layers.

Description

Process starting method, device and system
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, and a system for starting a process.
Background
In a distributed system, process starting data is generally required to be configured for servers in a cluster, so that an application program needing configuration access can be started by acquiring the process starting data through the servers when the program is started. When the configuration is changed, in order to avoid the risk generated by releasing all the configuration at one time, the test configuration is operated before the process is started, and the formal configuration is operated after the verification is finished. However, in practical application, although the test configuration and the formal configuration are the same in most data configurations, two sets of data need to be repeatedly configured, so that flexibility is poor, operation steps are complex, confusion and errors in configuration are easily caused, and process starting errors occur.
Disclosure of Invention
The purpose of the application is to at least solve one of the technical problems existing in the prior art, and provide a process starting method, a device and electronic equipment, so that repeated configuration is reduced, and the accuracy and instantaneity of starting an application process are improved.
The embodiment of the application provides a process starting method, which comprises the following steps:
responding to a process starting operation, and sending each test configuration group forming a target application program to a client, wherein the test configuration group comprises a plurality of test data configuration layers, and test configuration data for generating the target application program are packaged in the test data configuration layers;
After detecting that the client completes the process starting test of the target application program according to each test configuration group, searching at least one formal configuration group according to each test configuration group;
and covering the corresponding test configuration group by the formal configuration group to generate formal process configuration, and covering the test process configuration formed by the test configuration groups in the client according to the formal process configuration to enable the client to start the target application program according to the formal process configuration, wherein the formal configuration group comprises a plurality of formal data configuration layers, and formal configuration data for generating the target application program are packaged in the formal data configuration layers.
Further, the target application program has unique identity information, and the identity information is bound with version information of each test configuration group;
the response process starting operation sends each test configuration group forming the target application program to the client, and the response process starting operation comprises the following steps:
responding to a process starting operation, and acquiring corresponding version information according to the identity information in the process starting operation;
and sending each test configuration group corresponding to each version information to the client according to each version information.
Further, the step of overlaying the formal configuration group on the corresponding test configuration group to generate a formal process configuration, and overlaying the test process configuration generated by each test configuration group in the client according to the formal process configuration, includes:
and sending the formal configuration group to a client, and overlaying the corresponding test configuration group by the formal configuration group in the client to generate a formal process configuration overlaying the test process configuration in the client.
Further, the overlaying, in the client, the formal configuration group on the corresponding test configuration group includes:
and according to the coverage priority of each formal data configuration layer in the formal configuration group and the coverage priority of each test configuration data layer in the test configuration group corresponding to the formal configuration group, sending the formal data configuration layer with high coverage priority to the client, and covering the corresponding test data configuration layer with low coverage priority in the client.
Further, the step of overlaying the formal configuration group on the corresponding test configuration group in the client, and the step of generating the formal process configuration to start the target application program includes:
And in the client, the formal configuration group is subjected to hot update to cover the corresponding test configuration group, so that a formal process configuration is generated, and the target application program is started.
Further, before sending each test configuration group forming the target application program to the client, the method further comprises:
acquiring each test data configuration layer configured by a client, wherein each test data configuration layer has different configuration priorities;
and according to the configuration priority ordering of each test data configuration layer, the test configuration data of the test data configuration layer with high configuration priority covers the test configuration data of the test configuration data layer with low configuration priority, and the test configuration group is obtained.
Further, the configuration priority between each of the test data configuration layers is determined by at least one of the following:
determining according to the starting process of the target application program;
determining according to the application function of the target application program;
and determining according to the custom configuration priority.
Further, the client is composed of a terminal cluster, and each test configuration data layer is configured by different test configuration data through different subsets in the terminal cluster.
Further, the levels of the test configuration data layers are different from each other, and the configuration inlets of the test configuration data layers of different levels are different.
Further, the test configuration data includes address information of the configuration parameters.
Further, in an embodiment of the present application, a process starting apparatus is provided, including:
the data sending module is used for responding to the process starting operation and sending each test configuration group forming the target application program to the client;
the process starting module is used for covering the corresponding test configuration group by the formal configuration group to generate formal process configuration, and covering the test process configuration formed by the test configuration groups in the client according to the formal process configuration to enable the client to start the target application program according to the formal process configuration, wherein the formal configuration group comprises a plurality of formal data configuration layers, and formal configuration data for generating the target application program are packaged in the formal data configuration layers.
Further, in an embodiment of the present application, there is also provided a server, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the process start method as described in the above embodiments when executing the program.
Further, in an embodiment of the present application, a process starting system is provided, which includes a client, a gateway, and the server according to the foregoing embodiment, where the client is connected to the server, the gateway is connected to the client and the server, and the server sends, to the client through the gateway, each test configuration group and the formal configuration group that form a target application.
Further, an embodiment of the present application provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the process start method as described in the above embodiments when executing the program.
Further, the present embodiment provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the process starting method according to the above embodiment.
Compared with the prior art, after the test configuration group is obtained to finish the process starting test of the target application program, the embodiment searches the formal configuration group according to the test configuration group, and generates the formal process configuration to start the target application program by covering the formal configuration group with the corresponding test configuration group, so that two groups of data do not need to be repeatedly configured, the operation steps are simplified, and the flexibility is improved.
According to the embodiment, the unique identity information of the target application program is bound with the version information of the test configuration group, and the version information is acquired through the identity information, so that the test configuration group to be transmitted is determined, and the test configuration group corresponding to the target application program can be accurately transmitted.
According to the embodiment, the formal configuration group is sent to the client, and the corresponding test configuration group is covered by the formal configuration group in the client to generate the formal process configuration covering the test process configuration in the client, so that all data of the test process configuration are not required to be replaced by all data of the formal process configuration, and the starting instantaneity of the whole application process is enhanced.
According to the embodiment, the formal data configuration layer with the high coverage priority in the formal configuration group is sent to the test data configuration layer with the low coverage priority in the corresponding test configuration group in the client, so that all data of the formal configuration group does not need to be sent to the client to cover the test configuration group, and the starting instantaneity of the whole application process is further enhanced.
According to the embodiment, the formal process configuration is generated by covering the formal configuration group with the corresponding test configuration group in a hot update mode, so that the real-time starting of the whole application process can be updated immediately, and the real-time performance of starting the whole application process is further enhanced.
According to the embodiment, the test data configuration layers with high configuration priority are covered with the test data configuration layers with low configuration priority according to the ordering of different configuration priorities among the test data configuration layers, so that the test configuration group is obtained, the data with different priorities in the test data configuration layers are combined in a covering mode, the operation steps of the test configuration group are simplified, and the test configuration group is obtained without repeating the whole flow.
In the above embodiment, the configuration priority in each test data configuration layer may be configured according to the starting process or the application function of the target application program, and may also be configured according to the custom configuration parameter, which makes the configuration priority in each test data configuration layer capable of being configured according to multiple situations, and therefore, the application is wider.
The above embodiment enables different authority and more processing pertinence for different configuration data by configuring each test data configuration layer by different groups of sub-clusters in the terminal cluster through different test configuration data, and improves configuration efficiency by configuring by different groups of sub-clusters.
According to the embodiment, different configuration inlets are arranged on the test data configuration layers of different levels, so that the configuration modes of the configuration data of different levels are more targeted.
The embodiment can dynamically obtain the configuration value by setting the address information of the configuration parameters in the test configuration data, and avoid the influence of the change caused by the influence of the deployment environment or other conditions on the fixed configuration value.
Drawings
The present application is further described below with reference to the drawings and examples;
FIG. 1 is an application environment diagram of a process startup method in one embodiment;
FIG. 2 is a flow diagram of a process startup method in one embodiment;
FIG. 3 is a flow chart of a process start method according to another embodiment;
FIG. 4 is a block diagram of a process initiation device in one embodiment;
FIG. 5 is a block diagram of a process start device according to another embodiment;
FIG. 6 is a block diagram of a server in one embodiment;
FIG. 7 is a block diagram of a computer device in one embodiment;
FIG. 8 is a schematic diagram of a process start system in one embodiment.
Detailed Description
Reference will now be made in detail to the present embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein the purpose of the accompanying drawings is to supplement the description of the written description section with figures, so that one can intuitively and intuitively understand each technical feature and overall technical scheme of the present application, but not to limit the scope of protection of the present application.
In a distributed system, process starting data is generally required to be configured for servers in a cluster, so that an application program needing configuration access can be started by acquiring the process starting data through the servers when the program is started. In order to avoid abnormal starting of the application process, test configuration and formal configuration are required to be configured before the process is started, and the configuration test is firstly operated and then the formal configuration is operated when the process is started. However, in practical application, although the test configuration and the formal configuration are the same in most data configurations, two sets of data need to be repeatedly configured, so that flexibility is poor, operation steps are complex, confusion and errors in configuration are easily caused, and process starting errors occur. When the application program process is started, all data of the test configuration are replaced by all data of the formal configuration after the test configuration is completed, so that the starting instantaneity of the whole application process is poor.
In order to solve the above technical problem, as shown in fig. 1, an application environment diagram of a process starting method in one embodiment is shown. Referring to fig. 1, the process start system includes a client 110 and a server 120. The client 110 and the server 120 are connected through a network. The client 110 may be a desktop client or a mobile client, the mobile client 110 may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like, and the client 110 may be implemented by a stand-alone client or a client cluster formed by a plurality of clients. The server 120 may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
The process starting method provided in the embodiments of the present application will be described and illustrated in detail below by means of several specific embodiments.
As shown in FIG. 2, in one embodiment, a process initiation method is provided. The embodiment is mainly exemplified by the method applied to computer equipment. The computer device may be specifically the server 120 of fig. 1 described above.
Referring to fig. 2, the process starting method specifically includes the steps of:
s11, responding to a process starting operation, and sending each test configuration group forming the target application program to the client, wherein the test configuration group comprises a plurality of test data configuration layers, and test configuration data for generating the target application program are packaged in the test data configuration layers.
In this embodiment, the server transmits each test configuration group constituting the target application program to the client in response to a process start operation transmitted from the client in which the target application program is installed. The process starting operation refers to request information sent to the server through the client side where the target application program is located when the target application program is started, and the process starting operation comprises all test configuration groups required by the target application program when the target application program is started. The test configuration group refers to a code set used for carrying out configuration test on the target application program, the test data configuration layer refers to a parameter set used for carrying out configuration test on the target application program, the test configuration data refers to a set of partial parameters used for carrying out configuration test on the target application program, and each test configuration data is stored in a corresponding test data configuration layer in a packaged form.
For example, when the target application program "song in cloud city" needs to be started, the client 1 sends a process starting operation to the server, the server responds to the process starting operation, and determines, according to configuration information in the process starting operation, a test configuration group a required to be tested for starting the target application program "song in cloud city", the test configuration group a includes three test data configuration layers, namely an account recharging configuration layer, an account login configuration layer and an account positioning configuration layer, wherein test configuration data packaged in the account recharging configuration layer is abcd, test configuration data packaged in the account login configuration layer is efgh, and test configuration data packaged in the account positioning configuration layer is ijkl. The server acquires a test configuration group A consisting of three test data configuration layers from the database according to the process starting operation, and sends the test configuration group A to the client 1. In this embodiment, the database stores test configuration data, a test configuration data layer, a test configuration group, formal configuration data, a formal configuration data layer, and a formal configuration group.
In one embodiment, the target application has unique identity information that is bound to version information for each test configuration group.
Responding to the process starting operation, sending each test configuration group forming the target application program to the client, wherein the test configuration group comprises:
responding to the process starting operation, and acquiring corresponding version information according to the identity information in the process starting operation.
And sending each test configuration group corresponding to each version information to the client according to each version information.
In this embodiment, the server responds to a process start operation sent by a client provided with a target application program, and obtains corresponding version information according to identity information included in the process start operation. The process starting operation includes unique identity information of the target application program, where the identity information refers to identification information for specifying the target application program, and may be an address of the target application program, ISBN of the target application program, or a name abbreviation of the target application program. The version information refers to identification information of the test configuration group, and can be a version of the test configuration group or a custom identification of the test configuration group. The binding mode of the identity information and the version information can be information splicing or an index containing the version information in the identity information. In this embodiment, the specific form of the identity information and the version information is not specifically limited, and the binding manner of the identity information and the version information is not specifically limited.
For example, the identity information of the target application program "song in cloud city" is ysczg, the version information of the corresponding test configuration group is a11, meaning that the test configuration group a is changed 11 times, and the identity information and the version information can be bound to be ysczg-a11. The server finds version information A11 according to the identity information ysczg, so as to obtain a test configuration group A corresponding to the version information A11, and sends the test configuration group A to the client 1.
In this embodiment, the unique identity information of the target application program is bound with the version information of the test configuration group, and the version information is obtained through the identity information, so that the test configuration group to be transmitted is determined, and the test configuration group corresponding to the target application program can be accurately transmitted.
S12, after detecting that the client completes the process starting test of the target application program according to each test configuration group, searching at least one formal configuration group according to each test configuration group.
In this embodiment, after the client completes the process start test of the target application program, the server searches the corresponding formal configuration group according to each test configuration group. The formal configuration group refers to a code set for formally configuring the target application program, and comprises a plurality of formal configuration layers, wherein formal configuration data for generating the target application program are packaged in the formal configuration layers. The formal configuration layer refers to a set of parameters for performing formal configuration of the target application, and the formal configuration data refers to a set of partial parameters for performing formal configuration of the target application.
For example, after detecting that the client 1 completes the process start test of the target application program "song in cloud city" according to the test configuration group a, the server searches for the corresponding formal configuration group B from the database according to the test configuration group a. For the association manner between the test configuration group and the formal configuration group, the address of the corresponding formal configuration group can be attached to the test configuration group, for example, the last behavior "// the address of the formal configuration group 192.168.1.1" in the test configuration group; the test configuration group may also have the same identifier as the corresponding formal configuration group, e.g., the test configuration group is a11-3737, and the formal configuration group is B11-3737. In the present embodiment, the association manner of the test configuration group and the formal configuration group is not particularly limited.
And S13, covering the corresponding test configuration groups by the formal configuration groups to generate formal process configuration, and covering the test process configuration formed by the test configuration groups in the client according to the formal process configuration to enable the client to start the target application program according to the formal process configuration, wherein the formal configuration groups comprise a plurality of formal data configuration layers, and formal configuration data for generating the target application program are packaged in the formal data configuration layers.
In this embodiment, the server may overlay the formal configuration group with the corresponding test configuration group in the server, generate the formal process configuration, and send the formal process configuration to the client, so that the client may overlay the test process configuration according to the formal process configuration in the client, and start the target application according to the formal process configuration.
For example, the server uses the formal configuration group B of the target application "song in cloud city" to overlay the test configuration group a in the server. The specific covering process is as follows: the starting application program 'song in cloud city' needs an account recharging function, an account login function and an account positioning function, so that the test configuration group A and the formal configuration group B comprise three configuration data layers, namely an account recharging configuration layer, an account login configuration layer and an account positioning configuration layer. In the test configuration group a, an account recharging configuration layer for realizing the recharging function includes a parameter abcd, an account login configuration layer for realizing the account login function includes a parameter efgh, and an account positioning configuration layer for realizing the account positioning function includes a parameter ijkl. In the formal configuration group B, an account recharging configuration layer for realizing the recharging function comprises a parameter a ' bcd, an account login configuration layer for realizing the account login function comprises a parameter e ' fgh, and an account positioning configuration layer for realizing the account positioning function comprises a parameter i ' jkl. The parameters a and a ', e and e ', i and i ' are the same type of parameters, i.e. only one same position in the file exists. Therefore, the parameter a ' of the account recharging configuration layer in the formal configuration group B needs to be used for replacing the parameter a of the account recharging configuration layer in the test configuration group a, the parameter e ' of the account login configuration layer in the formal configuration group B needs to be used for replacing the parameter e of the account login configuration layer in the test configuration group a, and the parameter i ' of the account positioning configuration layer in the formal configuration group B needs to be used for replacing the parameter i of the account recharging configuration layer in the test configuration group a. At this time, the server may directly cover the formal configuration data a ', e ', i ' of each formal data configuration layer in the formal configuration group B with the test configuration data a, e, i of each test data configuration layer in the corresponding test configuration group a, and finally obtain the formal configuration group B by covering the test configuration group a. The server generates a formal process configuration according to the formal configuration group B after the coverage, and sends the formal process configuration to the client 1, and all the test process configurations are covered in the client according to the formal process configuration, so that the client starts a target application program 'song in cloud city' according to the formal process configuration.
The method comprises the steps of generating formal process configuration in a server, so that all data of the test process configuration are replaced by all data of the formal process configuration sent by the server after the test configuration is completed when an application program process is started, and the technical problem of poor instantaneity of starting the whole application process exists.
In order to solve the above technical problem, in one embodiment, overlaying a formal configuration group on a corresponding test configuration group to generate a formal process configuration, and overlaying the test process configuration generated by each test configuration group in a client according to the formal process configuration, including:
and sending the formal configuration group to the client, and overlaying the formal configuration group on the corresponding test configuration group in the client to generate a formal process configuration overlaying the test process configuration in the client.
In this embodiment, the server may send the formal configuration group to the client, and the formal configuration group is adopted in the client to cover the test configuration group, so as to finally generate the formal process configuration covering the test process configuration in the client. For example, the server transmits the formal configuration group B of the target application program "song in cloud city" to the client 1, and the test configuration group a is covered by the formal configuration group B in the client 1. The specific covering process is as follows: the starting application program 'song in cloud city' needs an account recharging function, an account login function and an account positioning function, so that the test configuration group A and the formal configuration group B comprise three configuration data layers, namely an account recharging configuration layer, an account login configuration layer and an account positioning configuration layer. In the test configuration group a, an account recharging configuration layer for realizing the recharging function includes a parameter abcd, an account login configuration layer for realizing the account login function includes a parameter efgh, and an account positioning configuration layer for realizing the account positioning function includes a parameter ijkl. In the formal configuration group B, an account recharging configuration layer for realizing the recharging function comprises a parameter a ' bcd, an account login configuration layer for realizing the account login function comprises a parameter e ' fgh, and an account positioning configuration layer for realizing the account positioning function comprises a parameter i ' jkl. The parameters a and a ', e and e ', i and i ' are the same type of parameters, i.e. only one same position in the file exists. Therefore, the parameter a ' of the account recharging configuration layer in the formal configuration group B needs to be used for replacing the parameter a of the account recharging configuration layer in the test configuration group a, the parameter e ' of the account login configuration layer in the formal configuration group B needs to be used for replacing the parameter e of the account login configuration layer in the test configuration group a, and the parameter i ' of the account positioning configuration layer in the formal configuration group B needs to be used for replacing the parameter i of the account recharging configuration layer in the test configuration group a. At this time, the server may directly cover the formal configuration data a ', e ', i ' of each formal data configuration layer in the formal configuration group B with the test configuration data a, e, i of each test data configuration layer in the corresponding test configuration group a, and finally obtain the formal configuration group B by covering the test configuration group a. The server generates formal process configuration in the client 1 according to the formal configuration group B after the coverage so as to cover test process configuration in the client according to the formal process configuration, and the client starts a target application program 'song in cloud city' according to the formal process configuration.
In this embodiment, the formal configuration group is sent to the client, and the corresponding test configuration group is covered by the formal configuration group in the client, so as to generate the formal process configuration covering the test process configuration in the client, so that all data of the test process configuration do not need to be replaced by all data of the formal process configuration, and instantaneity of starting the whole application process is enhanced.
In one embodiment, the step of overlaying the formal configuration group on the corresponding test configuration group in the client to generate the formal process configuration starting target application program includes:
and the formal configuration group is subjected to hot update to cover the corresponding test configuration group in the client, so that a formal process configuration starting target application program is generated.
In this embodiment, the server uses the formal configuration group to overlay the test configuration group in the client through a hot update manner, so as to generate the formal process configuration starting target application program. The hot update mode refers to an instant update mode encountered when a user opens a target application program after the client downloads and installs the target application.
In this embodiment, when the client opens the target application, the server searches a corresponding formal configuration group according to the test configuration group of the current target application, and sends the formal configuration group to the client, and the client covers the formal configuration group with the corresponding test configuration group to generate a formal process configuration starting target application.
In this embodiment, the formal process configuration is generated by covering the formal configuration group with the corresponding test configuration group in a hot update manner, so that the real-time performance of starting the whole application process is further enhanced.
In one embodiment, before sending each test configuration group that constitutes the target application to the client, the method further comprises:
acquiring each test data configuration layer configured by a client, wherein each test data configuration layer has different configuration priorities;
according to the configuration priority ordering of each test data configuration layer, the test configuration data of the test data configuration layer with high configuration priority is covered with the test configuration data of the test configuration data layer with low configuration priority, and a test configuration group is obtained.
In this embodiment, the server acquires each test data configuration layer configured by the client. For the manner of configuring each test data configuration layer by the client, each test data configuration layer may be configured for the client by responding to a data configuration operation initiated by the user. The data configuration operation refers to that a user selects a test data configuration layer and sets information of configuration priority of each test data configuration layer according to test configuration group parameters required by a target application program to be started. For example, the user needs to start an application program "song in cloud city", and at this time, the complete parameter of the test configuration set required by start of "song in cloud city" is abcdefghijkl, and the user needs to have an account recharging function, an account login function and an account positioning function. The parameters of the data configuration layers corresponding to the account recharging function, the account logging function and the account positioning function are abcd, d 'efgh and h' ijkl respectively. Wherein d and d ', h and h' are parameters of the same kind, i.e. only one of them can exist in the configuration file. At this time, a user may initiate a data configuration operation through the client, select a data configuration layer corresponding to the account recharging function, the account logging function and the account positioning function as a test data configuration layer, set a configuration priority of the account recharging configuration layer corresponding to the account recharging function to be (3), set a configuration priority of the account logging configuration layer corresponding to the account logging function to be (2), and set a configuration priority of the account positioning configuration layer corresponding to the account positioning function to be (1), wherein a larger number of the configuration priority indicates a higher configuration priority.
After the client configures each test configuration layer, the server acquires each test data configuration layer and the configuration priority of each test data configuration layer to acquire a test configuration group. And particularly, according to the configuration priority ordering of each test data configuration layer, the test data configuration layers corresponding to the account recharging function, the account login function and the account positioning function in sequence are obtained. The method comprises the steps of overlaying test configuration data of a test data configuration layer with high configuration priority on test configuration data of a test data configuration layer with low configuration priority, obtaining a test configuration group, namely overlaying test configuration data d ' efgh of an account login configuration layer with configuration priority (2) on test configuration data h ' ijkl of an account positioning configuration layer with configuration priority (1), obtaining test configuration data d ' efghijkl of a combined test configuration layer, enabling the configuration priority of the combined test configuration layer to be one with larger configuration priority in an overlaying merging process, namely overlaying priority (2), overlaying test configuration data abcd ' of a combined test configuration layer with configuration priority (2) on test configuration data abcd ' of a combined test configuration layer with configuration priority (2), obtaining test configuration data abcdcghijkl of the combined test configuration layer, and finally obtaining data of the test configuration group as abcdcghjkl.
In this embodiment, the test configuration group is obtained by covering the test data configuration layer with the high configuration priority over the test data configuration layer with the low configuration priority according to the ordering of different configuration priorities among the test data configuration layers, so that the test configuration group is obtained by combining the data with different priorities in the test data configuration layer in a coverage manner, the operation steps of obtaining the test configuration group are simplified, and the test configuration group is obtained without repeating the whole flow.
In one embodiment, the configuration priority between the test data configuration layers is determined by at least one of:
determining according to the starting process of the target application program;
determining according to the application function of the target application program;
and determining according to the custom configuration priority.
In this embodiment, the server configures the configuration priority through each test data configuration layer configured by the client and the configuration priority between each test data configuration layer, and for the configuration priority, the configuration may be configured according to a starting process of the target application program, may be configured according to an application function of the target application program, and may also be configured according to a custom configuration parameter. For example, the coverage priority of each test data configuration layer may be configured according to the stages of the start-up process of the target application program "song in cloud city" including hardware initialization, execution of the start-up loader, loading and starting the kernel image, and the like. The coverage priority of each test data configuration layer can be configured according to the application functions of the target application program 'song in cloud city', including an account recharging function, an account login function and an account positioning function. The coverage priority of each test data configuration layer can be configured according to the custom configuration parameters of the target application program 'song in cloud city', including network interface selection, operating system selection and the like.
In this embodiment, the configuration priority in each test data configuration layer may be configured according to a starting process or an application function of a target application program, and may also be configured according to a custom configuration parameter, which enables the configuration priority in each test data configuration layer to be configured according to multiple situations, and thus, the application is wider.
In one embodiment, the client is composed of a terminal cluster, and each test configuration data layer is configured by different test configuration data from different subsets of the terminal cluster.
In this embodiment, the client may be composed of a terminal cluster. Because the configuration file A, namely the test configuration group, is organized in the form of test data configuration layers, and the functions realized by the test data configuration layers are different, each test data configuration layer is a specific configuration content, the terminal clusters of the client can be divided into different groups of sub-clusters according to each test data configuration layer. And then the client terminal is prepared from different groups of sub-groups in the terminal cluster of the client terminal. And because the functions realized by the test data configuration layers are different, the test configuration data adopted by the test data configuration layers configured by the subsets of different groups are different. The sub-clusters refer to terminal sub-clusters of the client according to different test data configuration layers. For example, 100 computers in the terminal cluster need three test data configuration layers corresponding to functions according to the application program 'song in cloud city', and the 100 computers can be divided into three different subsets to configure the respective test data configuration layers. In addition, for each test data configuration layer, configuration may be performed by different people through different groups of sub-clusters in the terminal cluster of the client.
In this embodiment, each test data configuration layer is configured by different test configuration data through different subsets of the terminal clusters, so that different authorities and processing pertinence can be provided for different configuration data, and the configuration efficiency can be improved by configuring the subsets of different groups.
In one embodiment, the levels of the test configuration data layers are different from each other, and the configuration entries of the test configuration data layers of different levels are different.
In this embodiment, the levels of the test data configuration layers are different, where a level refers to a level set by a user for each test data configuration layer in one configuration group, where the levels of the test data configuration layers are different from each other, and configuration entries of the test data configuration layers of different levels are different.
For example, the test configuration group includes a test data configuration layer for realizing the corresponding function of recharging the account, a test data configuration layer for realizing the function of logging in the account, and a test data configuration layer for realizing the function of positioning the account. The configuration inlet of the test data configuration layer corresponding to the account recharging function is set as a container data source, the configuration inlet of the test data configuration layer for the account login function is set as a local data source, and the configuration inlet of the test data configuration layer for the account positioning function is set as a third-party interface data source.
In this embodiment, different configuration entries are set for the test data configuration layers of different levels, so that the configuration modes of the configuration data of different levels are more targeted.
In one embodiment, the test configuration data includes address information for the configuration parameters.
In this embodiment, the configuration parameters in the test configuration data may need to be changed due to the change of the deployment environment or other conditions, for example, when the network accessed in the starting process of the application program changes, the corresponding configuration parameters may need to be changed from a to a' to start the application program due to different network operators. At this time, the server may define some configuration parameters that may need to be dynamically changed by using the configuration placeholder key $ { XXX }, or may replace it with address information that may need to be dynamically changed, so that the server obtains the value of the relevant parameter from the address information after determining the required parameter when starting the application.
In this embodiment, by setting address information of the configuration parameters in the test configuration data, the configuration values can be dynamically obtained, and the influence of variations caused by the influence of the deployment environment or other conditions on the fixed configuration values is avoided.
In the above embodiment, after the test configuration group is obtained to complete the process starting test on the target application program, the formal configuration group is searched according to the test configuration group, and the formal process configuration is generated by covering the formal configuration group with the corresponding test configuration group to start the target application program, so that two groups of data do not need to be repeatedly configured, the operation steps are simplified, and the flexibility is improved.
In another embodiment, as shown in FIG. 3, a process initiation method is provided. The embodiment is mainly exemplified by the method applied to computer equipment. The computer device may be specifically the server 120 of fig. 1 described above.
Referring to fig. 3, the process starting method specifically includes the steps of:
s21, responding to a process starting operation, and sending each test configuration group forming the target application program to the client, wherein the test configuration group comprises a plurality of test data configuration layers, and test configuration data for generating the target application program are packaged in the test data configuration layers.
The steps are the same as those of the above embodiments, and specific analyses may refer to the above embodiments, so that repetition is avoided and details are not repeated here.
S22, after detecting that the client completes the process starting test of the target application program according to each test configuration group, searching at least one formal configuration group according to each test configuration group.
The steps are the same as those of the above embodiments, and specific analyses may refer to the above embodiments, so that repetition is avoided and details are not repeated here.
S23, according to the coverage priority of each formal data configuration layer in the formal configuration group and the coverage priority of each test configuration data layer in the test configuration group corresponding to the formal configuration group, transmitting the formal data configuration layer with high coverage priority to the client, and covering the corresponding test data configuration layer with low coverage priority in the client to generate formal process configuration of test process configuration in the covered client so as to enable the client to start the target application program according to the formal process configuration, wherein the formal configuration group comprises a plurality of formal data configuration layers, and formal configuration data for generating the target application program is packaged in the formal data configuration layers.
In this embodiment, the server sends the formal data configuration layer with the high coverage priority to the client, and the corresponding test data configuration layer with the low coverage priority is covered by adopting the formal data configuration layer with the high coverage priority in the client. For example, the starting application program "song in cloud city" needs an account recharging function, an account login function and an account positioning function, so that the test configuration group a and the formal configuration group B each include three configuration data layers, namely an account recharging configuration layer, an account login configuration layer and an account positioning configuration layer. In the test configuration group a, an account recharging configuration layer for realizing the recharging function includes a parameter abcd, an account login configuration layer for realizing the account login function includes a parameter efgh, and an account positioning configuration layer for realizing the account positioning function includes a parameter ijkl. In the formal configuration group B, an account recharging configuration layer for realizing the recharging function comprises a parameter a' bcd, an account login configuration layer for realizing the account login function comprises a parameter efgh, and an account positioning configuration layer for realizing the account positioning function comprises a parameter ijkl. The parameters a and a' are similar parameters, namely, only one same position in the file exists. Therefore, the parameter a 'of the account recharging configuration layer in the test configuration group a needs to be replaced by the parameter a' of the account recharging configuration layer in the formal configuration group B. At this time, the coverage priority of the account recharging configuration layer of the test configuration group a may be set to (1), and the coverage priority of the account recharging configuration layer of the formal configuration group B may be set to (2). And the coverage priorities of the account login configuration layer and the account positioning configuration layer of the test configuration group A are set to be (1), and the coverage priorities of the account login configuration layer and the account positioning configuration layer of the formal configuration group B are set to be (1). At this time, the server sends the account recharging configuration layer with the coverage priority of (2) in the formal configuration group B to the client 1, and the corresponding account recharging configuration layer with the coverage priority of (2) in the test configuration group a with the coverage priority of (1) is adopted in the client 1 to cover the account recharging configuration layer. Because the coverage priorities are (1), the account login configuration layer and the account positioning configuration layer in the formal configuration group B do not need to be sent to the client 1 to cover the account login configuration layer and the account positioning configuration layer in the test configuration group A. Generating formal process configuration and covering test process configuration in the client 1 according to the finally obtained account recharging configuration layer with the parameter of a' bcd, the account login configuration layer with the parameter of efgh and the account positioning configuration layer with the parameter of ijkl, so that the client 1 starts a target application program according to the formal process configuration,
In this embodiment, the formal data configuration layer with high coverage priority in the formal configuration group is sent to the test data configuration layer with low coverage priority in the corresponding test configuration group in the client, so that all data of the formal configuration is not required to be sent to the client to cover the test configuration group, and the real-time performance of starting the whole application process is further enhanced.
In one embodiment, as shown in fig. 4, there is provided a process starting apparatus, including:
the data sending module 101 is configured to send each test configuration group that composes the target application program to the client in response to the process start operation.
The process starting module 102 is configured to overlay the formal configuration group with the corresponding test configuration group to generate a formal process configuration, and overlay the test process configuration composed of the test configuration groups in the client according to the formal process configuration, so that the client starts the target application program according to the formal process configuration, where the formal configuration group includes a plurality of formal data configuration layers, and formal configuration data for generating the target application program is encapsulated in the formal data configuration layers.
In one embodiment, the target application has unique identity information, which is bound to version information of each test configuration group;
The data sending module 101 is further configured to:
responding to the process starting operation, and acquiring corresponding version information according to the identity information in the process starting operation.
And sending each test configuration group corresponding to each version information to the client according to each version information.
In one embodiment, the process initiation module 102 is further configured to:
and sending the formal configuration group to the client, and overlaying the formal configuration group on the corresponding test configuration group in the client to generate a formal process configuration overlaying the test process configuration in the client.
In one embodiment, the process initiation module 102 is further configured to:
and according to the coverage priority of each formal data configuration layer in the formal configuration group and the coverage priority of each test configuration data layer in the test configuration group corresponding to the formal configuration group, transmitting the formal data configuration layer with high coverage priority to the client, and covering the corresponding test data configuration layer with low coverage priority in the client.
In one embodiment, the process initiation module 102 is further configured to:
and the formal configuration group is subjected to hot update to cover the corresponding test configuration group in the client, so that a formal process configuration starting target application program is generated.
In another embodiment, as shown in fig. 5, there is provided a process starting apparatus, including:
the data sending module 101 is configured to send each test configuration group that composes the target application program to the client in response to the process start operation.
The process starting module 102 is configured to send at least one formal configuration group to the client after detecting that the client completes the process starting test of the target application according to each test configuration group, and overlay the formal configuration group with the corresponding test configuration group in the client to generate a formal process configuration starting target application.
The test configuration module 103 is configured to obtain each test data configuration layer configured by the client, where each test data configuration layer has different configuration priorities, and according to the configuration priorities of each test data configuration layer, the test configuration data of the test data configuration layer with a high configuration priority is overlaid on the test configuration data of the test configuration data layer with a low configuration priority, so as to obtain a test configuration group.
In one embodiment, the configuration priority among the test data configuration layers obtained in test configuration module 103 is determined by at least one of:
Determining according to the starting process of the target application program;
determining according to the application function of the target application program;
and determining according to the custom configuration priority.
In one embodiment, the client is composed of a terminal cluster, and each test configuration data layer is configured by different test configuration data from different subsets of the terminal cluster.
In one embodiment, the levels of the test configuration data layers are different from each other, and the configuration entries of the test configuration data layers of different levels are different.
In one embodiment, the test configuration data includes address information for the configuration parameters.
In one embodiment, a server is provided, as shown in fig. 6, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the process start method as described in the above embodiments when executing the program.
In one embodiment, a computer apparatus is provided, as shown in FIG. 7, comprising a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. The memory includes a nonvolatile 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 that, when executed by a processor, causes the processor to implement a process start method. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform a process start method. It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the process starting apparatus provided herein may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 7. The memory of the computer device may store the various program modules that make up the process-starting apparatus. The computer program constituted by the respective program modules causes the processor to execute the steps in the process start method of the respective embodiments of the present application described in the present specification.
In one embodiment, there is provided an electronic device including: memory, a processor and a computer program stored on the memory and executable on the processor, which when executing the program performs the steps of the above-described process start method. The steps of the process start method herein may be the steps in the process start method of the above embodiments.
In one embodiment, a process starting system is provided, as shown in fig. 8, and includes a client, a gateway, and a server as described in the foregoing embodiment, where the client is connected to the server, the gateway is connected to the client and the server, and the server sends each test configuration group and the formal configuration group that form the target application program to the client through the gateway.
In one embodiment, a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the steps of the above-described process start method is provided. The steps of the process start method herein may be the steps in the process start method of the above embodiments.
While the foregoing is directed to the preferred embodiments of the present application, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the present application, such changes and modifications are also intended to be within the scope of the present application.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.

Claims (13)

1. A process start method, comprising:
responding to a process starting operation, and sending each test configuration group forming a target application program to a client, wherein the test configuration group comprises a plurality of test data configuration layers, and test configuration data for generating the target application program are packaged in the test data configuration layers;
after detecting that the client completes the process starting test of the target application program according to each test configuration group, searching at least one formal configuration group according to each test configuration group;
and covering the corresponding test configuration group by the formal configuration group to generate formal process configuration, and covering the test process configuration formed by the test configuration groups in the client according to the formal process configuration to enable the client to start the target application program according to the formal process configuration, wherein the formal configuration group comprises a plurality of formal data configuration layers, and formal configuration data for generating the target application program are packaged in the formal data configuration layers.
2. The process start-up method according to claim 1, wherein the target application has unique identity information bound to version information of each of the test configuration groups;
The response process starting operation sends each test configuration group forming the target application program to the client, and the response process starting operation comprises the following steps:
responding to a process starting operation, and acquiring corresponding version information according to the identity information in the process starting operation;
and sending each test configuration group corresponding to each version information to the client according to each version information.
3. The process starting method according to claim 1, wherein the overlaying the formal configuration group with the corresponding test configuration group generates a formal process configuration, and overlaying the test process configuration generated by each test configuration group in the client according to the formal process configuration, includes:
and sending the formal configuration group to a client, and overlaying the corresponding test configuration group by the formal configuration group in the client to generate a formal process configuration overlaying the test process configuration in the client.
4. A process start-up method according to claim 3, wherein said overlaying said formal configuration group over said corresponding test configuration group in a client comprises:
and according to the coverage priority of each formal data configuration layer in the formal configuration group and the coverage priority of each test configuration data layer in the test configuration group corresponding to the formal configuration group, sending the formal data configuration layer with high coverage priority to the client, and covering the corresponding test data configuration layer with low coverage priority in the client.
5. The process start-up method according to claim 3 or 4, wherein said overlaying the formal configuration group over the corresponding test configuration group in the client to generate a formal process configuration overlaying the test process configuration in the client comprises:
and overlaying the formal configuration group on the corresponding test configuration group through hot update in the client so as to generate a formal process configuration overlaying the test process configuration in the client.
6. The process start method according to claim 1, further comprising, before transmitting each test configuration group constituting the target application to the client:
acquiring each test data configuration layer configured by a client, wherein each test data configuration layer has different configuration priorities;
and according to the configuration priority ordering of each test data configuration layer, the test configuration data of the test data configuration layer with high configuration priority covers the test configuration data of the test configuration data layer with low configuration priority, and the test configuration group is obtained.
7. The process start-up method of claim 6, wherein the configuration priority between each of the test data configuration layers is determined by at least one of:
Determining according to the starting process of the target application program;
determining according to the application function of the target application program;
and determining according to the custom configuration priority.
8. The process start-up method according to claim 6, wherein the client consists of a terminal cluster, and each of the test configuration data layers is configured by a different subset of the terminal clusters through different test configuration data.
9. The process start-up method according to claim 6 or 8, wherein the levels of the test configuration data layers are different from each other, and the configuration entries of the test configuration data layers of different levels are different.
10. The process start-up method of claim 6, wherein the test configuration data includes address information of configuration parameters.
11. A process start device, comprising:
the system comprises a data sending module, a client and a target application program, wherein the data sending module is used for responding to a process starting operation and sending each test configuration group forming the target application program to the client, the test configuration group comprises a plurality of test data configuration layers, and test configuration data for generating the target application program are packaged in the test data configuration layers;
The data searching module is used for searching at least one formal configuration group according to each test configuration group after detecting that the client completes the process starting test of the target application program according to each test configuration group;
the process starting module is used for covering the corresponding test configuration group by the formal configuration group to generate formal process configuration, and covering the test process configuration formed by the test configuration groups in the client according to the formal process configuration to enable the client to start the target application program according to the formal process configuration, wherein the formal configuration group comprises a plurality of formal data configuration layers, and formal configuration data for generating the target application program are packaged in the formal data configuration layers.
12. A server, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the process starting method according to any of claims 1 to 10 when executing the program.
13. A process starting system, comprising a client, a gateway and a server according to claim 12, wherein the client is connected with the server, the gateway is connected with the client and the server, and the server sends each test configuration group and formal configuration group forming a target application program to the client through the gateway.
CN202011544796.9A 2020-12-23 2020-12-23 Process starting method, device and system Active CN112667313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011544796.9A CN112667313B (en) 2020-12-23 2020-12-23 Process starting method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011544796.9A CN112667313B (en) 2020-12-23 2020-12-23 Process starting method, device and system

Publications (2)

Publication Number Publication Date
CN112667313A CN112667313A (en) 2021-04-16
CN112667313B true CN112667313B (en) 2023-04-21

Family

ID=75408188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011544796.9A Active CN112667313B (en) 2020-12-23 2020-12-23 Process starting method, device and system

Country Status (1)

Country Link
CN (1) CN112667313B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080151B (en) * 2022-07-22 2023-07-14 平安银行股份有限公司 APP starting flow control method, computer readable storage medium and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648725A (en) * 2016-09-07 2017-05-10 努比亚技术有限公司 Terminal, server and configuration file upgrading method
CN109002332A (en) * 2017-06-05 2018-12-14 阿里巴巴集团控股有限公司 A kind of process initiation, configuration method and device, system
CN110795336A (en) * 2019-09-25 2020-02-14 腾讯科技(深圳)有限公司 Application program control method, device, equipment and readable storage medium
CN111767062A (en) * 2019-03-13 2020-10-13 北京字节跳动网络技术有限公司 Application configuration data updating method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8850398B1 (en) * 2011-04-24 2014-09-30 Israel L'Heureux Automated testing of application programs from an application program ecosystem

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648725A (en) * 2016-09-07 2017-05-10 努比亚技术有限公司 Terminal, server and configuration file upgrading method
CN109002332A (en) * 2017-06-05 2018-12-14 阿里巴巴集团控股有限公司 A kind of process initiation, configuration method and device, system
CN111767062A (en) * 2019-03-13 2020-10-13 北京字节跳动网络技术有限公司 Application configuration data updating method, device, equipment and storage medium
CN110795336A (en) * 2019-09-25 2020-02-14 腾讯科技(深圳)有限公司 Application program control method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN112667313A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN105389191B (en) A kind of method for upgrading software based on LAN, device and system
RU2421785C2 (en) Automated control of device drivers
WO2019082066A1 (en) Cognitive learning workflow execution
CN107957837B (en) Method and device for generating shortcut of webpage application program and terminal equipment
US11018931B2 (en) Data driven user interface for configuring device settings
CN106681921B (en) Method and device for realizing data parameterization
CN111404990A (en) File transmission method, device, client and storage medium
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
CN110968331B (en) Method and device for running application program
CN107360165B (en) Terminal device, cloud server and method and device for managing and controlling operating system
CN110750415B (en) Interface service configuration method, device, medium and computer equipment
CN106873970B (en) Installation method and device of operating system
EP3019956A1 (en) Method and apparatus for firmware virtualization
CN108415698A (en) The method that control is added in the technical ability of voice dialogue platform
CN112667313B (en) Process starting method, device and system
CN104504587A (en) Advertisement monitoring method and device, electronic apparatus
CN110764788A (en) Cloud storage deployment method and device, computer equipment and readable storage medium
CN111177703B (en) Method and device for determining data integrity of operating system
CN111399860A (en) Light application deployment method and device, computer equipment and storage medium
CN109542462B (en) System environment deployment method, storage medium and server
US10694001B2 (en) Method, apparatus and system for uploading a file
CN113157337A (en) Application program starting method and device, terminal equipment and storage medium
CN113051026B (en) Virtual machine creating method and device and storage medium
CN109639629B (en) Data access processing method and device, computer equipment and storage medium
US11606251B2 (en) Deploying a server stack having a cross-server dependency

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant