Intelligent configuration method, device, equipment and storage medium of application system
By obtaining component information and system information of the application system, generating variable use cases and testing environments, and detecting performance status, it solves the problem of high labor costs for developers to allocate component parameters by themselves, and realizes intelligent component selection and saves labor costs.
Patent Information
- Application Number
- CN202111531721.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2041-12-14
AI Technical Summary
When assembling an application system, developers need to configure various component parameters themselves, resulting in high labor costs.
By obtaining component information and system information of the application system, determining variable dimensions, generating variable use cases and test environments, detecting performance status, selecting components that meet the requirements to configure the application system, and realizing intelligent component selection.
No need for developers to arrange tests by themselves, saving labor costs and realizing intelligent component selection.
Smart Images

Figure CN114328192B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to an intelligent configuration method, device, equipment and storage medium for an application system. Background Art
[0002] The application system environment requires a combination of host hardware, database, middleware, code, and other components to provide services. How to achieve the optimal configuration of multiple components according to different usage environments to achieve the greatest value at the lowest cost and provide the best performance and services is the common goal of all companies in the industry. At present, when assembling application systems, developers adjust various component parameters by themselves and then test them. Based on the test results, they select other components for assembly system. However, this consumes a relatively high labor cost. Summary of the invention
[0003] The main purpose of the present invention is to provide an intelligent configuration method, device, equipment and storage medium for an application system, aiming to solve the problem of high manpower cost for developers to configure various component parameters by themselves.
[0004] The present invention provides an intelligent configuration method for an application system, comprising:
[0005] Acquire partial component information and system information to be configured; wherein the partial component information is information of a part of components included in the application system;
[0006] Determine the variable dimension of the application system to be configured based on the partial component information and the system information;
[0007] Inputting the partial component information and the variable dimension into a preset container to obtain a variable use case and a variable test environment;
[0008] Assigning values to the variable use case and the variable test environment, and detecting performance status information of the variable use case under the variable test environment after the assignment;
[0009] The variable use cases whose performance status information meets preset requirements are recorded as qualified use cases and extracted;
[0010] Obtaining qualified component information required by the qualified use case, and calculating cost information of the qualified component information;
[0011] Based on the cost information and / or the performance status information, a target use case is selected from the qualified use cases to configure an application system.
[0012] Furthermore, the step of determining the variable dimension of the application system to be configured based on the partial component information and the system information includes:
[0013] Determine dimension information of the application system to be configured based on the system information;
[0014] The target dimension of the partial component information is parsed, and other dimensions in the dimension information except the target dimension are recorded as variable dimensions.
[0015] Furthermore, the step of inputting the partial component information and the variable dimension into a preset container to obtain a variable use case and a variable test environment includes:
[0016] Extracting the first field in the partial component information;
[0017] inputting the variable dimension and the first field into the container;
[0018] The corresponding second field in the container is converted into a variable based on the variable dimension, and the first field replaces the corresponding second field, so as to obtain a corresponding variable use case and a variable test environment.
[0019] Furthermore, the step of converting the corresponding second field in the container into a variable based on the variable dimension, and replacing the corresponding second field with the first field, thereby obtaining a corresponding variable use case and a variable test environment, includes:
[0020] detecting a second field in the container corresponding to the variable dimension;
[0021] The variable use case and the variable test environment are obtained by replacing the second field with a preset special identifier; wherein the preset special identifier is a variable that replaces the second field, and the variable use case or variable test environment having the special identifier cannot be detected.
[0022] Furthermore, before the step of assigning values to the variable use case and the variable test environment and detecting the performance status information of the variable use case under the variable test environment after the assignment, the step further includes:
[0023] Obtaining a functional relationship between the database operation amount and time y=f(t), wherein y represents the operation amount, t represents time, and f(t) represents a functional relationship between time and the operation amount;
[0024] According to the formula Calculate the total amount of operation within each set time length; where I represents the total amount of operation, a is the set time length, and f 1 (t0) = 0, f 1 (t) represents the first-order derivative of f(t), and f(t0±Δt)≥f(t0), Δt→0;
[0025] Determine the start time of processing the variable use case based on the total amount of operations within each set time length
[0026] Furthermore, before the step of obtaining the qualified component information required for the qualified use case and calculating the cost information of the qualified component information, the step further includes:
[0027] Obtaining the number of the qualified use cases;
[0028] Determining whether the quantity is less than a quantity threshold;
[0029] If so, the partial component information is deemed unqualified.
[0030] Furthermore, the step of assigning values to the variable use case and the variable test environment includes:
[0031] Inputting the partial component information and the variable dimension into a pre-trained system configuration model to obtain a plurality of configuration use cases; wherein the system configuration model is trained by using different component information as model input and corresponding use cases and test environments as model output;
[0032] Obtain target parameters of the configuration use case;
[0033] The variable use case and the variable test environment are assigned values based on the target parameters.
[0034] The present invention also provides an intelligent configuration device for an application system, comprising:
[0035] An acquisition module, used to acquire partial component information and system information to be configured; wherein the partial component information is information of a part of components included in the application system;
[0036] A determination module, configured to determine a variable dimension of the application system to be configured based on the partial component information and the system information;
[0037] An input module, used for inputting the partial component information and the variable dimension into a preset container to obtain a variable use case and a variable test environment;
[0038] An assignment module, used for assigning values to the variable use case and the variable test environment, and detecting performance status information of the variable use case under the variable test environment after the assignment;
[0039] An extraction module, used to record and extract the variable use cases whose performance status information meets preset requirements as qualified use cases;
[0040] A calculation module, used for obtaining qualified component information required by the qualified use case and calculating cost information of the qualified component information;
[0041] A selection module is used to select a target use case from the qualified use cases to configure an application system based on the cost information and / or the performance status information.
[0042] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0043] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.
[0044] The beneficial effects of the present invention are as follows: by obtaining partial component information and system information to be configured, the variable dimensions of the application system to be configured are determined, thereby obtaining a variable use case and a variable test environment, assigning and detecting the performance status information of the variable use case in the variable test environment after the assignment, and selecting the target use case to configure the application system. Thus, intelligent selection of components of the application system is realized, and developers do not need to allocate tests by themselves, saving labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flowchart of an intelligent configuration method of an application system according to an embodiment of the present invention;
[0046] Figure 2 It is a schematic block diagram of the structure of an intelligent configuration device of an application system according to an embodiment of the present invention;
[0047] Figure 3 A schematic block diagram of the structure of a computer device according to an embodiment of the present application.
[0048] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly. The connection can be a direct connection or an indirect connection.
[0051] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone.
[0052] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0053] Reference Figure 1 The present invention proposes an intelligent configuration method for an application system, which comprises:
[0054] S1: Obtaining partial component information and system information to be configured; wherein the partial component information is information of a part of components included in the application system;
[0055] S2: Determine the variable dimension of the application system to be configured based on the partial component information and the system information;
[0056] S3: inputting the partial component information and the variable dimension into a preset container to obtain a variable use case and a variable test environment;
[0057] S4: assigning values to the variable use case and the variable test environment, and detecting performance status information of the variable use case under the variable test environment after the assignment;
[0058] S5: Record the variable use cases whose performance status information meets preset requirements as qualified use cases and extract them;
[0059] S6: Obtain qualified component information required by the qualified use case, and calculate cost information of the qualified component information;
[0060] S7: Based on the cost information and / or the performance status information, select a target use case from the qualified use cases to configure an application system.
[0061] As described in step S1 above, obtain partial component information and system information to be configured. Partial component information is information about partial components, and partial components include any one or more of the computing unit, controller, memory, peripheral interface and peripheral device of the application system, which may include content information, attribute information, etc. of partial components, and system information is scenario information, function information, etc. used by the system. The partial component information can be information corresponding to components developed by developers themselves, or it can be information corresponding to existing components. Partial component information is information about partial components, and partial components can be one component or multiple components.
[0062] As described in step S2 above, the variable dimensions of the application system to be configured are determined based on the partial component information and the system information. The system information contains the usage scenarios and functional information of the corresponding system, and the components corresponding to the partial component information can only implement partial functions. Therefore, the dimensions corresponding to the remaining other functions are the variable dimensions of the application system to be configured.
[0063] As described in step S3 above, the partial component information and the variable dimension are input into a preset container to obtain a variable use case and a variable test environment. Among them, the container (docker) is an open source application container engine that allows developers to package their applications and dependent packages into a portable container, and then publish them to any popular Linux machine, and virtualization can also be achieved. That is, through it, the corresponding partial component information and variable dimensions can be received to facilitate the subsequent configuration of corresponding parameters, forming various specific use cases and variable test environments.
[0064] As described in the above step S4, the variable use case and the variable test environment are assigned, and the performance status information of the variable use case under the variable test environment after the assignment is detected. The way of assignment can be by setting the corresponding field to a variable, wherein the variable is actually a link, which can be replaced by different parameters to obtain various specific use cases and various test environments, and the way of detecting the performance status information can be through prometheus (an open source monitoring and alarm system) or zabbix (an enterprise-level open source solution based on a WEB interface that provides distributed system monitoring and network monitoring functions) to realize the detection of performance status information, and the performance status information is actually a score, and the higher the score, the better the performance status information.
[0065] As described in step S5 above, the variable use cases whose performance status information meets the preset requirements are recorded as qualified use cases and extracted. The preset requirements are pre-set requirements, for example, the performance status information is the number of days in the test environment within 30 days when the number of website visitors is within the set number range. Assuming that the pre-set requirement requires more than 25 days within the set number range, the variable use case is recorded as a qualified use case.
[0066] As described in step S6 above, the qualified component information required for the qualified use case is obtained, and the cost information of the qualified component information is calculated. Any use case is composed of a combination of corresponding host hardware, database, middleware, code, and other components, so it is necessary to obtain the corresponding qualified component information and calculate the cost information of the qualified component information, wherein the cost information can be accumulated by adding up the costs corresponding to each component, that is, the costs of each component are pre-recorded. After obtaining the corresponding qualified component information here, the costs of each component are accumulated to obtain the cost information.
[0067] As described in the above step S7, based on the cost information and / or the performance status information, a target use case is selected from the qualified use cases to configure the application system. The method of selecting qualified use cases can be selected according to the needs of the user. For example, if the user chooses cost priority, only cost information can be given for selection. If the user chooses performance priority, only performance status information can be used for selection. If the user chooses cost-performance priority, then based on a preset cost-performance calculation formula, for example, the ratio of the value corresponding to the performance status information to the value corresponding to the cost information, the corresponding cost-performance value is obtained, and then the largest cost-performance value is selected. Various combinations can also be sent to the user so that the user can select the corresponding target use case for configuring the application system according to the cost information and performance status information. Thereby, the intelligent selection of components of the application system is realized, and there is no need for developers to allocate tests by themselves, saving manpower costs.
[0068] In one embodiment, the step S2 of determining the variable dimension of the application system to be configured based on the partial component information and the system information includes:
[0069] S201: Determine dimension information of the application system to be configured based on the system information;
[0070] S202: Parse the target dimension of the partial component information, and record other dimensions in the dimension information except the target dimension as variable dimensions.
[0071] As described in the above steps S201-S202, the determination of variable dimensions is achieved. Specifically, the corresponding system information is obtained, that is, the developer sets the category for the application system to be configured, so that the various dimensions preset in the application system can be obtained. Since some component information is some invariant parameters configured by the developer himself, that is, the immutable dimensions are predetermined, then all dimensions in the dimension information except the target dimension can be recorded as variable dimensions. It should be noted that there are some unimportant dimensions in other dimensions. According to the preset dimension importance level or the degree of influence on the application system, the values with an influence greater than the preset degree can be selected as variable dimensions, and the rest are set as immutable dimensions and can be set to common values.
[0072] In one embodiment, the step S3 of inputting the partial component information and the variable dimension into a preset container to obtain a variable use case and a variable test environment includes:
[0073] S301: extracting the first field in the partial component information;
[0074] S302: inputting the variable dimension and the first field into the container;
[0075] S303: Convert the corresponding second field in the container into a variable based on the variable dimension, and replace the corresponding second field with the first field, so as to obtain a corresponding variable use case and a variable test environment.
[0076] As described in the above steps S301-S303, the acquisition of the corresponding variable use case is realized. Specifically, the corresponding second field in the container is determined according to the variable dimension, so as to convert the second field into a variable, and the corresponding second field is replaced by the first field to obtain the variable use case and the variable test environment. Among them, the variable use case and the variable test environment mean that the use case in the container can be expanded, and the expansion is achieved by replacing the variables in the container with specific parameters. The variable has several attributes, which specifically include variable description, variable data type and variable initial value. The several attributes are obtained according to the attributes of the information of the variable dimension, for example, the value range of the variable dimension can be obtained in advance. It should be noted that the first field and the second field are specifically code fields, the first field represents the code corresponding to the part of the component information, and the second field represents the code pre-stored in the category corresponding to the part of the component information in the container, which can be the same as or different from the code corresponding to the part of the component information.
[0077] In one embodiment, the step S303 of converting the corresponding second field in the container into a variable based on the variable dimension and replacing the corresponding second field with the first field to obtain a corresponding variable use case and a variable test environment includes:
[0078] S3041: Detecting a second field in the container corresponding to the variable dimension;
[0079] S3042: Replace the second field with a preset special identifier to obtain the variable use case and the variable test environment; wherein the preset special identifier is a variable that replaces the second field, and the variable use case or variable test environment with the special identifier cannot be detected.
[0080] As described in the above steps S3041-S3042, the replacement of the second field by the variable is realized. Specifically, the second field of the dimension value corresponding to the variable dimension in the container is detected, that is, the description of the dimension value corresponding to the variable dimension in the variable use case, and then the second field of this part is detected and replaced by a special identifier, wherein the preset special identifier is a variable that replaces the second field, and the variable use case with the special identifier cannot be executed by the database. The special identifier can specifically be "${day_no}", which is a special identifier of the date, and its expression in the variable use case is the composition of the year, month and day, such as 20210808, 20210809, etc. Thereby, the automatic replacement of the second field by the variable is realized, without the need to invest human resources, and the automated expansion of the variable use case is realized.
[0081] In one embodiment, before step S4 of assigning values to the variable use case and the variable test environment and detecting the performance status information of the variable use case under the variable test environment after the assignment, the method further includes:
[0082] S311: Obtaining a functional relationship between the database operation amount and time y=f(t), wherein y represents the operation amount, t represents time, and f(t) represents a functional relationship between time and the operation amount;
[0083] S312: According to the formula Calculate the total amount of operation within each set time length; where I represents the total amount of operation, a is the set time length, and f 1 (t0) = 0, f 1 (t) represents the first-order derivative of f(t), and f(t0±Δt)≥f(t0), Δt→0;
[0084] S313: Determine the start time of processing the variable use case according to the total amount of operations within each set time length
[0085] As described in the above steps S311-S313, the start time of the variable use case is realized That is, first obtain the functional relationship between the memory running amount and time, where the functional relationship can be a linear relationship, a curve relationship, or a more complex corresponding relationship, etc., but there is only one corresponding memory running amount for different time points, and then calculate the total running amount within each set time length according to the formula. In order to parse and process the variable use cases as quickly as possible to prevent some variable use cases from being shelved, the total running amount is relatively small near the minimum value. Therefore, the time period of the total running amount can be set at the minimum value t0, so the start time is set to Among them, a is the set time length, which is greater than or equal to the analysis processing time, thereby ensuring that the variable use case analysis processing time is in the non-busy phase of the database, making the variable use case analysis processing effect more efficient.
[0086] In one embodiment, before the step S6 of obtaining the qualified component information required for the qualified use case and calculating the cost information of the qualified component information, the step further includes:
[0087] S501: Obtain the number of qualified use cases;
[0088] S502: Determine whether the quantity is less than a quantity threshold;
[0089] S503: If yes, it is determined that the partial component information is unqualified.
[0090] As described in the above steps S501-S503, the detection of partial component information is implemented. Since some components in the partial component information may be newly developed by the developer, or the components in the partial component information may be incompatible, there may be some problems. At this time, it can be determined based on the number of qualified use cases. When the period is greater than or equal to the quantity threshold, the partial component information can be considered qualified, that is, the partial component information provided by the developer is available. If it is less than the quantity threshold, it can be considered that the partial component information provided by the developer is unavailable. At this time, feedback can be given to the developer, who can improve the partial component information.
[0091] In one embodiment, the step S4 of assigning values to the variable use case and the variable test environment includes:
[0092] S401: Inputting the partial component information and the variable dimension into a pre-trained system configuration model to obtain a plurality of configuration use cases; wherein the system configuration model is trained by using different component information as model input and corresponding use cases and test environments as model output;
[0093] S402: Obtain target parameters of the configuration use case;
[0094] S403: Assign values to the variable use case and the variable test environment based on the target parameters.
[0095] As described in the above steps S401-S403, the acquisition of specific use cases is achieved, that is, some component information and variable dimensions are input into the pre-trained system configuration model. The system configuration model can be a neural network model, which is trained by using different component information as the input of the model, and the use cases and test environments corresponding to the component information as the output of the model, so that a pre-trained system configuration model can be obtained, and then the target parameters are obtained. The target parameters can be parameters set by the user or obtained from a pre-stored parameter table, and then the variable use cases and the variable test environment are assigned. Thus, the assignment process is completed, and specific variable use cases and the variable test environment are obtained.
[0096] Reference Figure 2 The present invention also provides an intelligent configuration device for an application system, comprising:
[0097] The acquisition module 10 is used to acquire partial component information and system information to be configured; wherein the partial component information is information of a part of the components included in the application system;
[0098] A determination module 20, configured to determine a variable dimension of the application system to be configured based on the partial component information and the system information;
[0099] An input module 30, used to input the partial component information and the variable dimension into a preset container to obtain a variable use case and a variable test environment;
[0100] An assignment module 40, configured to assign values to the variable use case and the variable test environment, and detect performance status information of the variable use case under the variable test environment after the assignment;
[0101] An extraction module 50, configured to record and extract the variable use cases whose performance status information meets preset requirements as qualified use cases;
[0102] A calculation module 60, configured to obtain qualified component information required for the qualified use case and calculate cost information of the qualified component information;
[0103] The selection module 70 is used to select a target use case from the qualified use cases to configure the application system based on the cost information and / or the performance status information.
[0104] In one embodiment, the determination module 20 includes:
[0105] A dimension information determination submodule, used to determine the dimension information of the application system to be configured based on the system information;
[0106] The target dimension parsing submodule is used to parse the target dimension of the partial component information, and record other dimensions in the dimension information except the target dimension as variable dimensions.
[0107] In one embodiment, the input module 30 includes:
[0108] A first field extraction submodule, used to extract the first field in the partial component information;
[0109] A first field input submodule, used for inputting the variable dimension and the first field into the container;
[0110] The variable conversion submodule is used to convert the corresponding second field in the container into a variable based on the variable dimension, and replace the corresponding second field with the first field, so as to obtain the corresponding variable use case and variable test environment.
[0111] In one embodiment, the variable conversion submodule includes:
[0112] A detection unit, configured to detect a second field in the container corresponding to the variable dimension;
[0113] A replacement unit is used to replace the second field with a preset special identifier to obtain the variable use case and the variable test environment; wherein the preset special identifier is a variable that replaces the second field, and the variable use case or variable test environment with the special identifier cannot be detected.
[0114] In one embodiment, the intelligent configuration device of the application system further includes:
[0115] A function relationship acquisition module, used to acquire the function relationship y=f(t) between the database operation amount and time, wherein y represents the operation amount, t represents time, and f(t) represents the function relationship between time and the operation amount;
[0116] Run the total calculation module to calculate the total amount according to the formula Calculate the total amount of operation within each set time length; where I represents the total amount of operation, a is the set time length, and f 1 (t0) = 0, f 1 (t) represents the first-order derivative of f(t), and f(t0±Δt)≥f(t0), Δt→0;
[0117] A start time determination module is used to determine the start time of processing the variable use case according to the total amount of operations within each set time length.
[0118] In one embodiment, the calculation module 60 further includes:
[0119] A quantity acquisition submodule, used to acquire the quantity of the qualified use cases;
[0120] A quantity determination submodule, used to determine whether the quantity is less than a quantity threshold;
[0121] The identification submodule is used to determine that the information of some components is unqualified if so.
[0122] In one embodiment, the assignment module 40 includes:
[0123] A component information input submodule, used to input the partial component information and the variable dimension into a pre-trained system configuration model to obtain a plurality of configuration use cases; wherein the system configuration model is trained by using different component information as model input and corresponding use cases and test environments as model output;
[0124] A target parameter acquisition submodule, used to acquire the target parameters of the configuration use case;
[0125] An assignment submodule is used to assign values to the variable use case and the variable test environment based on the target parameters.
[0126] The beneficial effects of the present invention are as follows: by obtaining partial component information and system information to be configured, the variable dimensions of the application system to be configured are determined, thereby obtaining a variable use case and a variable test environment, assigning and detecting the performance status information of the variable use case in the variable test environment after the assignment, and selecting the target use case to configure the application system. Thus, intelligent selection of components of the application system is realized, and developers do not need to allocate tests by themselves, saving labor costs.
[0127] Reference Figure 3 In an embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store various component information, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the intelligent configuration method of the application system described in any of the above embodiments can be implemented.
[0128] Those skilled in the art will understand that Figure 3The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.
[0129] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the intelligent configuration method of the application system described in any of the above embodiments can be implemented.
[0130] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0131] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.
[0132] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0133] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0134] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.
Claims
1. An intelligent configuration method for an application system, characterized in that: include: Acquire partial component information and system information to be configured; wherein the partial component information is information of a part of components included in the application system; Determine the variable dimension of the application system to be configured based on the partial component information and the system information; Inputting the partial component information and the variable dimension into a preset container to obtain a variable use case and a variable test environment; Assigning values to the variable use case and the variable test environment, and detecting performance status information of the variable use case under the variable test environment after the assignment; The variable use cases whose performance status information meets preset requirements are recorded as qualified use cases and extracted; Obtaining qualified component information required by the qualified use case, and calculating cost information of the qualified component information; Based on the cost information and / or the performance status information, selecting a target use case from the qualified use cases to configure an application system; The step of inputting the partial component information and the variable dimension into a preset container to obtain a variable use case and a variable test environment includes: Extracting the first field in the partial component information; inputting the variable dimension and the first field into the container; Converting the corresponding second field in the container into a variable based on the variable dimension, and replacing the corresponding second field with the first field, thereby obtaining a corresponding variable use case and a variable test environment; The step of converting the corresponding second field in the container into a variable based on the variable dimension, and replacing the corresponding second field with the first field, thereby obtaining a corresponding variable use case and a variable test environment, includes: detecting a second field in the container corresponding to the variable dimension; The variable use case and the variable test environment are obtained by replacing the second field with a preset special identifier; wherein the preset special identifier is a variable that replaces the second field, and the variable use case or variable test environment having the special identifier cannot be tested; The step of assigning values to the variable use case and the variable test environment includes: Inputting the partial component information and the variable dimension into a pre-trained system configuration model to obtain a plurality of configuration use cases; wherein the system configuration model is trained by using different component information as model input and corresponding use cases and test environments as model output; Obtain target parameters of the configuration use case; The variable use case and the variable test environment are assigned values based on the target parameters.
2. The intelligent configuration method of the application system according to claim 1, characterized in that: The step of determining the variable dimension of the application system to be configured based on the partial component information and the system information includes: Determine dimension information of the application system to be configured based on the system information; The target dimension of the partial component information is parsed, and other dimensions in the dimension information except the target dimension are recorded as variable dimensions.
3. The intelligent configuration method of the application system according to claim 1, characterized in that: Before the step of assigning values to the variable use case and the variable test environment and detecting the performance status information of the variable use case under the variable test environment after the assignment, the step further includes: Get the functional relationship between database operation volume and time ,in, represents the running amount, Indicates time, It represents the functional relationship between time and running amount; According to the formula Calculate the total amount of operation within each set time length; where, represents the running total, For the set time length, =0, express The first-order derivative of ; Determine the start time of processing the variable use case based on the total amount of operations within each set time length .
4. The intelligent configuration method of the application system according to claim 1, characterized in that: Before the step of obtaining the qualified component information required for the qualified use case and calculating the cost information of the qualified component information, the method further includes: Obtaining the number of the qualified use cases; Determining whether the quantity is less than a quantity threshold; If so, the partial component information is deemed unqualified.
5. An intelligent configuration device for an application system, used to execute the method according to any one of claims 1 to 4, characterized in that: include: An acquisition module, used to acquire partial component information and system information to be configured; wherein the partial component information is information of a part of components included in the application system; A determination module, configured to determine a variable dimension of the application system to be configured based on the partial component information and the system information; An input module, used for inputting the partial component information and the variable dimension into a preset container to obtain a variable use case and a variable test environment; An assignment module, used for assigning values to the variable use case and the variable test environment, and detecting performance status information of the variable use case under the variable test environment after the assignment; An extraction module, used to record and extract the variable use cases whose performance status information meets preset requirements as qualified use cases; A calculation module, used for obtaining qualified component information required by the qualified use case and calculating cost information of the qualified component information; A selection module is used to select a target use case from the qualified use cases to configure an application system based on the cost information and / or the performance status information.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
