CN116627902A - Configuration parameter positioning method, device, computer equipment and storage medium - Google Patents

Configuration parameter positioning method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116627902A
CN116627902A CN202310723433.9A CN202310723433A CN116627902A CN 116627902 A CN116627902 A CN 116627902A CN 202310723433 A CN202310723433 A CN 202310723433A CN 116627902 A CN116627902 A CN 116627902A
Authority
CN
China
Prior art keywords
configuration
file
training
configuration file
category
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.)
Pending
Application number
CN202310723433.9A
Other languages
Chinese (zh)
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310723433.9A priority Critical patent/CN116627902A/en
Publication of CN116627902A publication Critical patent/CN116627902A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The application provides a method, a device, computer equipment and a storage medium for positioning configuration parameters, which relate to the technical field of distributed systems and comprise the following steps: receiving a configuration request sent by a terminal; calling a preset mature classification model according to a configuration request to determine a configuration category corresponding to the configuration file, and determining configuration parameters in the configuration file according to a locating point corresponding to the configuration category; wherein the configuration category characterizes a type to which the content in the configuration file relates; anchor points are metadata under the configuration category that characterizes the properties or features of the configuration parameters in the configuration file; and generating a configuration response according to the configuration request and the position of the configuration parameter, and sending the configuration response to the terminal. The application realizes the technical effect of automatically identifying the configuration parameters in the configuration files, and avoids the problem of low configuration parameter identification efficiency caused by manually searching the configuration parameters of the configuration files in each service system in the distributed system in sequence.

Description

Configuration parameter positioning method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of distributed systems, and in particular, to a method and apparatus for positioning configuration parameters, a computer device, and a storage medium.
Background
In a large group of banking industries, computer systems providing service support for banking businesses are usually a large number of computer systems, which form a huge group to cooperate with each other to integrally provide processing of banking businesses.
With the development of distributed technology, the architecture of computer systems in the banking industry has increased in duty cycle in the form of distributed computing. The content of the configuration parameters of the application program of the distributed system has a certain similarity, for example, the application program mostly interacts with the database system, has similar front-end technology and has similar communication protocol, and the configuration parameters used by the similarity points also have a certain similarity.
However, the inventor finds that the current positioning of the configuration parameters in the configuration files in the service system still adopts a manual identification mode, so that the identification efficiency is low.
Disclosure of Invention
The application provides a configuration parameter positioning method, a device, computer equipment and a storage medium, which are used for solving the problem that the identification efficiency is low due to the fact that a manual identification mode is still adopted for positioning configuration parameters in a configuration file in a service system.
In a first aspect, the present application provides a method for positioning configuration parameters, including:
receiving a configuration request sent by a terminal; wherein the configuration request has a configuration file; the configuration request is used for indicating and identifying the position of the configuration parameters in the configuration file; the configuration file is a computer file used for defining the parameter configuration and initial setting of an application program and/or a database system in a business system; the service system is a distributed server in a distributed system; the distributed system is formed by connecting a plurality of distributed servers through a network, an application program in each distributed server is used for realizing at least one service function, and a database system in each distributed server is used for providing service data for realizing the service function;
calling a preset mature classification model according to the configuration request to determine a configuration category corresponding to the configuration file, and determining configuration parameters in the configuration file according to a positioning point corresponding to the configuration category; wherein the configuration category characterizes a type to which the content in the configuration file relates; the anchor points are metadata under the configuration category for characterizing the attributes or features of the configuration parameters in the configuration file;
Generating a configuration response according to the configuration request and the position of the configuration parameter, and sending the configuration response to the terminal; the configuration response is used for displaying the position of each configuration parameter in the configuration file of the service system in the terminal.
In the above scheme, the receiving the configuration request sent by the terminal includes:
sending an input page to the terminal; the input page is provided with a file input box for inputting configuration files and/or a file selection box for selecting the configuration files; the input page is also provided with an information input box for inputting the indication object and/or an information selection box for selecting the indication object;
receiving a configuration file input by the terminal in the file input box or a configuration file selected in the file selection box;
and generating a configuration request according to the configuration file.
In the above scheme, the step of calling a preset mature classification model according to the configuration request to determine the configuration category corresponding to the configuration file, and determining the configuration parameter in the configuration file according to the positioning point corresponding to the configuration category comprises the following steps:
triggering the mature classification model to operate according to the configuration request, and inputting a configuration file in the configuration request into the mature classification model;
Invoking the mature classification model to perform feature extraction on the configuration file to obtain at least one configuration category, and acquiring a positioning point corresponding to the configuration category; the feature extraction is used for determining a configuration category to which the configuration file belongs according to the feature of the content in the configuration file;
and calling the mature classification model to determine configuration parameters in the configuration file according to the positioning points corresponding to the configuration categories.
In the above scheme, invoking the mature classification model to perform feature extraction on the configuration file to obtain at least one configuration class, including:
calling a natural language module in the mature classification model to perform word segmentation processing on the configuration file to obtain at least one configuration vocabulary;
entering the at least one configuration vocabulary into an input layer of a network model in the mature classification model, wherein the input layer converts the configuration vocabulary into a configuration vector;
the middle layer of the network model performs feature extraction on the configuration vectors in the input layer to obtain feature vectors; the feature vector characterizes the content of each configuration vocabulary and the association relation among each configuration vocabulary;
And the middle layer outputs the feature vector to an output layer of the network model, and the output layer generates a configuration category according to the feature vector.
In the above scheme, invoking the mature classification model to determine the configuration parameters in the configuration file according to the positioning points corresponding to the configuration categories includes:
setting the locating point as a keyword of a regular module in the classification model;
and calling a regular module in the classification model, and inquiring the configuration parameters corresponding to the locating points in the configuration file according to the keywords to obtain the configuration parameters corresponding to the locating points.
In the above scheme, generating a configuration response according to the configuration request and the position of the configuration parameter, and sending the configuration response to the terminal, including:
generating a response header according to the request header of the configuration request;
generating position information according to the position of the configuration parameters in the configuration file;
and generating a response body from the position information, and integrating the response head and the response body to generate a configuration response.
In the above scheme, generating the location information according to the location of the configuration parameter in the configuration file includes:
Accessing a system file of a business system where the configuration file is located, wherein the system file is provided with an environment variable of each configuration parameter in the configuration file; the environment variables include: a directory path for being searched and/or an executable path for being run;
acquiring environment variables of the configuration parameters in the configuration file from the system file;
setting the environment variable as position information.
In the above scheme, before receiving the configuration request sent by the terminal, the method further includes:
obtaining a training sample; wherein the training sample comprises: training configuration files and training configuration categories;
calling a natural language processing model of the initial classification model, and performing word segmentation processing on the training configuration file to obtain at least one training vocabulary;
inputting the training vocabulary into an input layer of a network model in the initial classification model, and inputting the training configuration category into an output layer of the network model of the initial classification model;
and training the middle layer of the network model of the initial classification model according to the training vocabulary in the input layer and the training configuration category of the output layer, so that the middle layer can determine the training configuration category according to the training vocabulary.
In the above scheme, obtaining the training sample includes:
acquiring a training configuration file;
carrying out structuring treatment on the training configuration file to obtain structured information, and extracting at least one training positioning point in the structured information;
and determining at least one training configuration category of the training configuration file according to the training positioning point.
In a second aspect, the present application provides a configuration parameter positioning device, including:
the input module is used for receiving a configuration request sent by the terminal; wherein the configuration request has a configuration file; the configuration request is used for indicating and identifying the position of the configuration parameters in the configuration file; the configuration file is a computer file used for defining the parameter configuration and initial setting of an application program and/or a database system in a business system; the service system is a distributed server in a distributed system; the distributed system is formed by connecting a plurality of distributed servers through a network, an application program in each distributed server is used for realizing at least one service function, and a database system in each distributed server is used for providing service data for realizing the service function;
The processing module is used for calling a preset mature classification model according to the configuration request to determine a configuration category corresponding to the configuration file, and determining configuration parameters in the configuration file according to a positioning point corresponding to the configuration category; wherein the configuration category characterizes a type to which the content in the configuration file relates; the anchor points are metadata under the configuration category for characterizing the attributes or features of the configuration parameters in the configuration file;
the output module is used for generating a configuration response according to the configuration request and the position of the configuration parameter and sending the configuration response to the terminal; the configuration response is used for displaying the position of each configuration parameter in the configuration file of the service system in the terminal.
In a third aspect, the present application provides a computer device comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory to implement the methods described above.
In a fourth aspect, the present application provides a computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method described above.
In a fifth aspect, the application provides a computer program product comprising a computer program which, when executed by a processor, implements the method described above.
The application provides a configuration parameter positioning method, a device, computer equipment and a storage medium.
Firstly, the configuration category of the configuration file is identified through the mature classification model so as to determine the type related to the content in the configuration file with high probability, then, the attribute or characteristic unit data reflecting the configuration parameters in the configuration file is identified through the locating point under the type, and the configuration parameters corresponding to the metadata are acquired.
The technical effect of automatically identifying the configuration parameters in the configuration files is achieved, and the problem of low configuration parameter identification efficiency caused by manually searching the configuration parameters of the configuration files in each service system in the distributed system in sequence is avoided.
Generating a configuration response according to the configuration request and the position of the configuration parameter so as to realize the generation of the configuration response matched with the configuration request; by sending the configuration response to the terminal, the technical effect of feeding back the position information in the configuration file to the terminal for display is achieved, and the efficiency of reading the position information by the terminal is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a configuration parameter positioning method according to the present application;
FIG. 2 is a flowchart of an embodiment 1 of a configuration parameter positioning method according to the present application;
FIG. 3 is a flowchart of an embodiment 2 of a configuration parameter positioning method according to the present application;
FIG. 4 is a block diagram of an embodiment 3 of a configuration parameter positioning apparatus according to the present application;
fig. 5 is a schematic diagram of a hardware structure of a computer device in the computer device according to the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with related laws and regulations and standards, and provide corresponding operation entries for the user to select authorization or rejection.
It should be noted that the method, the device, the computer equipment and the storage medium for positioning configuration parameters can be used in the technical field of blockchain, and can also be used in any field except the technical field of blockchain.
The specific application scene of the application is as follows: in a large group of banking industries, computer systems providing service support for banking businesses are usually a large number of computer systems, which form a huge group to cooperate with each other to integrally provide processing of banking businesses.
With the development of banking and the development of computer technology, computer system groups in banks are continuously developed and produced on line. Different developers and different design ideas of the computer systems can lead to different configuration parameter organization forms of the application programs, and configuration parameter forms with different forms are easy to form under the condition of not having the same specification.
With the development of distributed technology, the architecture of computer systems in the banking industry has increased in duty cycle in the form of distributed computing. The content of the configuration parameters of the application program of the distributed system has a certain similarity, for example, the application program mostly interacts with the database system, has similar front-end technology and has similar communication protocol, and the configuration parameters used by the similarity points also have a certain similarity.
However, the similarity does not mean the exact identity, and for the operation and maintenance of the system group, repeated work is generated, and when a certain type of configuration parameters with similarity are changed, the actual operation steps of maintenance personnel are not consistent, which leads to manpower waste.
Referring to fig. 1, the present application is connected to a terminal 12 and a distributed server 14 in a distributed system 13 by providing a server 11 running a configuration parameter positioning method, the distributed server 14 being used as a service system; the terminal 12 is also adapted to connect with a distributed server 14.
The server 11 receives a configuration request sent by the terminal 12; wherein the configuration request has a configuration file; the configuration request is used for indicating and identifying the position of the configuration parameters in the configuration file; the configuration file is a computer file used for defining the parameter configuration and initial setting of an application program and/or a database system in a business system; the service system is one of the distributed servers 14 in the distributed system 13; the distributed system 13 is formed by connecting a plurality of distributed servers 14 through a network, wherein an application program in each distributed server 14 is used for realizing at least one service function, and each distributed database system in the server is used for providing service data for realizing the service function;
The server 11 calls a preset mature classification model according to the configuration request to determine the configuration category corresponding to the configuration file, and determines the configuration parameters in the configuration file according to the positioning point corresponding to the configuration category; wherein the configuration category characterizes a type to which the content in the configuration file relates; anchor points are metadata under the configuration category that characterizes the properties or features of the configuration parameters in the configuration file;
the server 11 generates a configuration response according to the configuration request and the position of the configuration parameter, and transmits the configuration response to the terminal 12; wherein the configuration response is used to show the location of each configuration parameter in the configuration file of the service system in the terminal 12.
Thus, for modern computer distributed servers 13, i.e. business systems, are made up of a plurality of applications, the configuration files of which are all in text form. Text processing in artificial intelligence techniques is mainly natural language processing techniques to find configuration items under specific categories, whose fragment composition structures in application configuration parameters.
On the premise of such an application program configuration parameter with similarity, the similar points are found out by utilizing an artificial intelligence technology, and the similar points are changed into uniform and consistent change operation actions, so that the change processing operation is automated, and the labor burden is reduced.
Thereby realizing the technical effect of positioning the changed position in the configuration parameters of the application program before forming the automatic operation before carrying out the automatic configuration of the configuration parameters.
According to the configuration parameter positioning method provided by the application, in the financial institution alliance, the client only needs to complete one-time risk assessment, and the whole alliance chain can share the risk assessment information of the client. And the technology of the block chain is applied, so that the client risk assessment is guaranteed to have the characteristic of non-falsification, the accuracy of information is guaranteed, and the risk control efficiency is improved. Because of adopting the encryption technology, the client information is not easy to leak and crack. Aims to solve the technical problems in the prior art.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example 1:
referring to fig. 2, the present application provides a method for positioning configuration parameters, which includes:
S201: receiving a configuration request sent by a terminal; wherein the configuration request has a configuration file; the configuration request is used for indicating and identifying the position of the configuration parameters in the configuration file; the configuration file is a computer file used for defining the parameter configuration and initial setting of an application program and/or a database system in a business system; the service system is a distributed server in the distributed system; the distributed system is formed by connecting a plurality of distributed servers through a network, an application program in each distributed server is used for realizing at least one service function, and each distributed server is used for providing service data for realizing the service function by a database system in the server.
In the step, a configuration request sent by a terminal is received, wherein the configuration request is provided with a configuration file of a service system, and the configuration file is an application program and/or a database system in the service system;
the application program is a generic term for a program installed in a service system, and generally includes a process of a driver, and a process of general-purpose software such as a view software and a decompression software. An application refers to a database application management system that a program developer is to develop and may be an entity's financial management system, personnel management system, etc.
The database System DBS (Data Base System, DBS for short) is typically composed of software, databases, and Data administrators. The software mainly comprises an operating system, various host languages, a utility program and a database management system, is a software system for providing data for a storage, maintenance and application system which can be operated practically, and is an aggregate of a storage medium, a processing object and a management system.
In a preferred embodiment, the receiving the configuration request sent by the terminal includes:
sending an input page to a terminal; the input page is provided with a file input box for inputting configuration files and/or a file selection box for selecting the configuration files; the input page is also provided with an information input box for inputting the indication object and/or an information selection box for selecting the indication object;
receiving a configuration file input by a terminal in a file input box or a configuration file selected in a file selection box;
and generating a configuration request according to the configuration file.
Illustratively, the file input box and/or the information input box is constructed using the InputField input box component; the InputField input box component is mainly used for managing input content, and can control the length, type display and the like of input text.
Creating a file selection frame and/or an information selection frame by adopting a Select drop-down frame component; wherein the Select drop-down box component is operative to Select one (or more) of a number of candidates. In traditional web page development, the selector is often referred to as a drop-down box, drop-down list, one of the most commonly used form elements.
S202: calling a preset mature classification model according to a configuration request to determine a configuration category corresponding to the configuration file, and determining configuration parameters in the configuration file according to a locating point corresponding to the configuration category; wherein the configuration category characterizes a type to which the content in the configuration file relates; anchor points are metadata under the configuration category that characterizes the properties or characteristics of the configuration parameters in the configuration file.
In this step, the configuration category of the configuration file is first identified through the mature classification model to determine the type involved in the content in the configuration file with high probability, and then the attribute or feature unit data reflecting the configuration parameters in the configuration file is identified through the locating point under the type, and the configuration parameters corresponding to the metadata are obtained.
The technical effect of automatically identifying the configuration parameters in the configuration files is achieved, and the problem of low configuration parameter identification efficiency caused by manually searching the configuration parameters of the configuration files in each service system in the distributed system in sequence is avoided.
In a preferred embodiment, determining a configuration category corresponding to the configuration file according to the configuration request calling a preset mature classification model, and determining a configuration parameter in the configuration file according to an anchor point corresponding to the configuration category includes:
triggering the mature classification model to run according to the configuration request, and inputting a configuration file in the configuration request into the mature classification model;
invoking the mature classification model to perform feature extraction on the configuration file to obtain at least one configuration category, and acquiring a positioning point corresponding to the configuration category; the feature extraction is used for determining the configuration category to which the configuration file belongs according to the feature of the content in the configuration file;
and calling the mature classification model to determine configuration parameters in the configuration file according to the positioning points corresponding to the configuration categories.
Illustratively, the maturity classification model is typically in a standby state to reduce the consumption of computational effort, as well as the consumption of energy, by the maturity classification model;
triggering the mature classification model to run according to the configuration request, so that the mature classification model can execute identification operation according to the configuration request;
the method comprises the steps of performing feature extraction on a configuration file through a mature classification model to identify meanings expressed by content of the configuration file, and further determining configuration categories of the configuration file;
The configuration file may belong to more than one configuration category, so that at least one configuration category is identified through the mature classification model, and the configuration category to which the configuration file belongs is comprehensively identified;
and calling the mature classification model to comprehensively identify configuration parameters in the configuration file according to positioning points corresponding to the configuration categories, so as to ensure the comprehensiveness and accuracy of configuration parameter identification.
Further, invoking the mature classification model to perform feature extraction on the configuration file to obtain at least one configuration feature, including:
calling a natural language module in the mature classification model to perform word segmentation processing on the configuration file to obtain at least one configuration vocabulary;
entering at least one configuration vocabulary into an input layer of a network model in the mature classification model, and converting the configuration vocabulary into a configuration vector by the input layer;
the middle layer of the network model performs feature extraction on the configuration vectors in the input layer to obtain feature vectors; the feature vector characterizes the content of each configuration word and the association relation among each configuration word;
the middle layer outputs the feature vector to an output layer of the network model, and the output layer generates a configuration category according to the feature vector.
The natural language module is, for example, NLP (Natural Language Processing) module, which is a technology for interactive communication with a machine using natural language used for human communication. The natural language is made readable and understandable by a computer through artificial processing. Related research for natural language processing begins with human exploration of machine translation. Although natural language processing involves multidimensional operations such as speech, grammar, semantics, speech and the like, in brief, the basic task of natural language processing is to divide words into corpora to be processed based on the modes of ontology dictionary, word frequency statistics, contextual semantic analysis and the like, so as to form term units which take the minimum part of speech as a unit and are rich in semantics, namely "natural language processing" which is commonly known by people.
The word segmentation processing is a technology for carrying out word segmentation by various matching methods according to the keyword strings of the users after query processing is carried out on the keyword strings of the users submitted queries.
Feature extraction is called feature extractor, which is to reduce some original input data dimensions or to reassemble original features for subsequent use. In simple terms, there are two roles: reducing data, and sorting existing data features.
The input layer is a data feature input layer, and the number of input data features corresponds to the number of neurons of the network.
The middle layer is the middle layer of the network, the number of hidden layers can be 0 or a plurality of layers, the function of the middle layer is to accept the output of the network of the previous layer as the current input value, and the current result is calculated and output to the next layer.
The output layer is the network layer of the final result output. The number of neurons of the output layer represents the number of class labels.
Further, invoking the mature classification model to determine configuration parameters in the configuration file according to the positioning points corresponding to the configuration categories, including:
setting the positioning points as keywords of the regular modules in the classification model;
and calling a regular module in the classification model, and inquiring the configuration parameters corresponding to the locating points in the configuration file according to the keywords to obtain the configuration parameters corresponding to the locating points.
Illustratively, a regular module is a computer module running a regular expression, also known as a regular expression, (Regular Expression, often abbreviated as regex, regex p, or RE in code), a text pattern that includes common characters (e.g., letters between a and z) and special characters (called "meta-characters"), a concept of computer science. Regular expressions use a single string to describe, match a series of strings that match a certain syntactic rule, and are typically used to retrieve, replace, text that meets a certain pattern (rule).
S203: generating a configuration response according to the configuration request and the position of the configuration parameter, and sending the configuration response to the terminal; wherein the configuration response is used to show the location of each configuration parameter in the configuration file of the service system in the terminal.
In the step, a configuration response is generated according to the configuration request and the position of the configuration parameter, so that the configuration response matched with the configuration request is generated; by sending the configuration response to the terminal, the technical effect of feeding back the position information in the configuration file to the terminal for display is achieved, and the efficiency of reading the position information by the terminal is improved.
In a preferred embodiment, generating a configuration response according to the configuration request and the location of the configuration parameter, and transmitting the configuration response to the terminal, comprises:
generating a response header according to the request header of the configuration request;
generating position information according to the position of the configuration parameters in the configuration file;
generating a response body from the position information, and integrating the response head and the response body to generate a configuration response.
The request header is used to illustratively specify who or what is sending the request, where the request originated, or the client's preferences and capabilities. The server may try to provide a better response to the client based on the client information given by the request header.
The response header is used to transfer additional information to the client in the response message, thus ensuring that the final generated configuration response can be accurately matched to the terminal by generating the response header from the request header.
The response body is used for outputting the content to the terminal, so that the position information in the configuration file is used as the response body and the configuration response is generated, and the technical effect of outputting the position information to the terminal is realized.
Further, generating location information according to the location of the configuration parameters in the configuration file includes:
accessing a system file of a business system where the configuration file is located, wherein the system file is provided with an environment variable of each configuration parameter in the configuration file; the environment variables include: a directory path for being searched and/or an executable path for being run;
and acquiring the environment variable of the configuration parameters in the configuration file from the system file, and setting the environment variable as the position information.
Illustratively, the directory PATH is a PATH variable, which is a directory PATH for storing searchable programs, and if the program to be run is not in the current directory, the operating system may search the directories recorded in the PATH variable in turn, and if the program to be run is found in these directories, the operating system may run.
The executable path is a path variable, and the path variable is used for directly running a certain program of the service system without inputting a suffix name of the program.
Example 2:
referring to fig. 3, the present application provides a method for positioning configuration parameters, including:
s301: obtaining a training sample; wherein the training samples comprise: training profiles and training configuration categories.
The training configuration file is a configuration file in any training service system in the distributed system, the training service system is one or more distributed servers in the distributed system, and the training configuration file in the training service system is used for training the initial classification model and obtaining a mature classification model;
for example: the distributed system is provided with 1000 distributed servers; the location settings of the configuration parameters in the configuration files of the application programs and/or database systems in the respective distributed servers are typically similar or even identical; therefore, the configuration files of the 10 distributed servers can be used as training configuration files for training the initial classification model to obtain a mature classification model; and then, the configuration parameters in the configuration files of the rest 990 distributed servers in the distributed system are identified through the mature classification model, so that the technical effect of quickly identifying the positions of the configuration parameters in the configuration files of the distributed servers in the same distributed system is realized.
Further, obtaining a training sample includes:
acquiring a training configuration file;
carrying out structuring treatment on the training configuration file to obtain structured information, and extracting at least one training positioning point in the structured information;
at least one training configuration class of the training configuration file is determined from the training anchor points.
Illustratively, the training configuration file is structured to improve the efficiency of acquiring the training positioning points, and in this embodiment, the training configuration file is in a YAML file format, and is subjected to format conversion to obtain the structured information of the key value pair format; wherein, the key value pair format is a Json format, and the primary key can be a character string or a number; the key value can be a character string, a numerical value or an array. In the key value pair format, metadata is usually taken as a main key, and configuration parameters corresponding to the metadata are taken as key values, so that the required training positioning points can be obtained directly by acquiring the main key and identifying the main key through a preset positioning point rule; anchor point rules are computer rules that are predefined for the type and/or content and/or keywords of anchor points.
Illustratively, the business system includes a system a and a system B; the parameter objects of system a include: application A1 and application A2; the parameter objects of system B include: application B1 and application B2.
Application A1 of system a has configuration file 1 and configuration file 2 therein.
Application A2 of system a has configuration file 2 and configuration file 3 therein.
The application B1 of the system B has a configuration file 3 and a configuration file 4 therein.
The application B2 of the system B has a configuration file 4 and a configuration file 1 therein.
The metadata in profile 1 includes IP and port number.
The metadata in profile 2 includes heap memory quantity and entry function name.
The metadata of profile 3 includes a file descriptor maximum and a temporary file path.
The metadata of the configuration file 4 includes protocol settings and encryption algorithm selections.
From the metadata in profile 1 including IP and port number, it is determined that the training profile class of profile 1 is mysql database connection settings.
According to the metadata in the configuration file 2 including the heap memory quantity and the entry function name, determining that the training configuration class of the configuration file 2 is a JAVA virtual machine starting parameter.
From the metadata of profile 3 including the file descriptor maximum and the temporary file path, it is determined that the training profile 3 is a Linux operating system environment variable.
According to the metadata of the configuration file 4 including protocol settings and encryption algorithm selections, it is determined that the training configuration class of the configuration file 4 is the IPC dependent software SDK parameter configuration.
Thus, the training configuration class of application A1 of System A is mysql database connection settings and JAVA virtual machine startup parameters.
The training configuration class of the application program A2 of the system A is JAVA virtual machine starting parameters and Linux operating system environment variables.
S302: and obtaining a natural language processing model calling the initial classification model, and performing word segmentation processing on the training configuration file to obtain at least one training vocabulary.
S303: the training vocabulary is input into an input layer of the network model in the initial classification model, and the training configuration category is input into an output layer of the network model of the initial classification model.
S304: and training the middle layer of the network model of the initial classification model according to the training vocabulary in the input layer and the training configuration category of the output layer, so that the middle layer can determine the training configuration category according to the training vocabulary.
Therefore, the training vocabulary is generated according to the natural language model, and the training configuration categories are input into the output layer by the input layer, so that the middle layer of the training configuration categories can be accurately determined according to the training configuration files, and the technical effect of configuration category identification of configuration files of other service systems in the distributed system can be conveniently carried out later.
S305: receiving a configuration request sent by a terminal; wherein the configuration request has a configuration file; the configuration request is used for indicating and identifying the position of the configuration parameters in the configuration file; the configuration file is a computer file used for defining the parameter configuration and initial setting of an application program and/or a database system in a business system; the service system is a distributed server in the distributed system; the distributed system is formed by connecting a plurality of distributed servers through a network, an application program in each distributed server is used for realizing at least one service function, and each distributed server is used for providing service data for realizing the service function by a database system in the server.
This step corresponds to S201 in embodiment 1, and thus will not be described here.
S306: calling a preset mature classification model according to a configuration request to determine a configuration category corresponding to the configuration file, and determining configuration parameters in the configuration file according to a locating point corresponding to the configuration category; wherein the configuration category characterizes a type to which the content in the configuration file relates; anchor points are metadata under the configuration category that characterizes the properties or characteristics of the configuration parameters in the configuration file.
This step corresponds to S202 in embodiment 1, and thus will not be described here.
S307: generating a configuration response according to the configuration request and the position of the configuration parameter, and sending the configuration response to the terminal; wherein the configuration response is used to show the location of each configuration parameter in the configuration file of the service system in the terminal.
This step corresponds to S203 in embodiment 1, and thus will not be described here.
Example 3:
referring to fig. 4, the present application provides a configuration parameter positioning apparatus 4, which includes:
an input module 45, configured to receive a configuration request sent by a terminal; wherein the configuration request has a configuration file; the configuration request is used for indicating and identifying the position of the configuration parameters in the configuration file; the configuration file is a computer file used for defining the parameter configuration and initial setting of an application program and/or a database system in a business system; the service system is a distributed server in the distributed system; the distributed system is formed by connecting a plurality of distributed servers through a network, an application program in each distributed server is used for realizing at least one service function, and each distributed server is used for providing service data for realizing the service function by a database system in the server;
The processing module 46 is configured to invoke a preset mature classification model according to the configuration request to determine a configuration category corresponding to the configuration file, and determine a configuration parameter in the configuration file according to an anchor point corresponding to the configuration category; wherein the configuration category characterizes a type to which the content in the configuration file relates; anchor points are metadata under the configuration category that characterizes the properties or features of the configuration parameters in the configuration file;
an output module 47 for generating a configuration response according to the configuration request and the location of the configuration parameter, and transmitting the configuration response to the terminal; wherein the configuration response is used to show the location of each configuration parameter in the configuration file of the service system in the terminal.
Optionally, the configuration parameter positioning device 4 further includes:
a sample input module 41 for obtaining training samples; wherein the training samples comprise: training profiles and training configuration categories.
The word segmentation module 42 is configured to obtain a natural language processing model that invokes the initial classification model, and perform word segmentation on the training configuration file to obtain at least one training vocabulary.
The training input module 43 is configured to obtain an input layer of the network model for inputting the training vocabulary into the initial classification model, and input the training configuration category into an output layer of the network model of the initial classification model.
The training execution module 44 is configured to train the middle layer of the network model of the initial classification model according to the training vocabulary in the input layer and the training configuration class of the output layer, so that the middle layer can determine the training configuration class according to the training vocabulary.
Example 4:
fig. 5 is a block diagram of a computer device, which computer device 3 may be a control circuit in the information management system 1, which refers to one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic element implementations in an information management system for performing a configuration parameter positioning method, according to an exemplary embodiment.
Specifically, the computer device 3 includes: a processor 52 and a memory 51 communicatively coupled to the processor 52; the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory 51 to implement the above-mentioned configuration parameter positioning method, where the components of the configuration parameter positioning device may be dispersed in different computer devices, and the computer device 3 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including a stand-alone server, or a server cluster formed by multiple application servers) that execute a program, or the like. The computer device of the present embodiment includes at least, but is not limited to: a memory 51, a processor 52, which may be communicatively coupled to each other via a system bus, as shown in fig. 5. It should be noted that fig. 5 only shows a computer device with components-but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead. In the present embodiment, the memory 51 (i.e., readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory 51 may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 51 may also be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like. Of course, the memory 51 may also include both internal storage units of the computer device and external storage devices. In this embodiment, the memory 51 is typically used to store an operating system installed in a computer device and various application software, such as program codes of the configuration parameter positioning apparatus of the third embodiment. Further, the memory 51 may also be used to temporarily store various types of data that have been output or are to be output. Processor 52 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 52 is typically used to control the overall operation of the computer device. In this embodiment, the processor 52 is configured to execute the program code stored in the memory 51 or process data, for example, execute the configuration parameter positioning device, so as to implement the configuration parameter positioning method of the foregoing embodiment.
The integrated modules, which are implemented in the form of software functional modules, may be stored in a computer readable storage medium. The software functional modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or processor to perform some of the steps of the methods of the various embodiments of the application. It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU for short), other general purpose processors, digital signal processor (Digital Signal Processor, DSP for short), application specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution. The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile memory NVM, such as at least one magnetic disk memory, and may also be a U-disk, a removable hard disk, a read-only memory, a magnetic disk or optical disk, etc.
To achieve the above object, the present application also provides a computer-readable storage medium such as a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which computer-executable instructions are stored, which when executed by the processor 52, perform the corresponding functions. The computer-readable storage medium of the present embodiment is used to store computer-executable instructions that implement the configuration parameter positioning method, which when executed by the processor 52 implement the configuration parameter positioning method of the above-described embodiment.
The storage medium may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). It is also possible that the processor and the storage medium reside as discrete components in a computer device or a master device.
The application provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described configuration parameter positioning method.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (12)

1. A method for locating configuration parameters, comprising:
receiving a configuration request sent by a terminal; wherein the configuration request has a configuration file; the configuration request is used for indicating and identifying the position of the configuration parameters in the configuration file; the configuration file is a computer file used for defining the parameter configuration and initial setting of an application program and/or a database system in a business system; the service system is a distributed server in a distributed system; the distributed system is formed by connecting a plurality of distributed servers through a network, an application program in each distributed server is used for realizing at least one service function, and a database system in each distributed server is used for providing service data for realizing the service function;
Calling a preset mature classification model according to the configuration request to determine a configuration category corresponding to the configuration file, and determining configuration parameters in the configuration file according to a positioning point corresponding to the configuration category; wherein the configuration category characterizes a type to which the content in the configuration file relates; the anchor points are metadata under the configuration category for characterizing the attributes or features of the configuration parameters in the configuration file;
generating a configuration response according to the configuration request and the position of the configuration parameter, and sending the configuration response to the terminal; the configuration response is used for displaying the position of each configuration parameter in the configuration file of the service system in the terminal.
2. The method for positioning configuration parameters according to claim 1, wherein receiving the configuration request sent by the terminal comprises:
sending an input page to the terminal; the input page is provided with a file input box for inputting configuration files and/or a file selection box for selecting the configuration files; the input page is also provided with an information input box for inputting the indication object and/or an information selection box for selecting the indication object;
Receiving a configuration file input by the terminal in the file input box or a configuration file selected in the file selection box;
and generating a configuration request according to the configuration file.
3. The method for locating configuration parameters according to claim 1, wherein determining a configuration category corresponding to the configuration file according to the configuration request calling a preset mature classification model, and determining configuration parameters in the configuration file according to a locating point corresponding to the configuration category, comprises:
triggering the mature classification model to operate according to the configuration request, and inputting a configuration file in the configuration request into the mature classification model;
invoking the mature classification model to perform feature extraction on the configuration file to obtain at least one configuration category, and acquiring a positioning point corresponding to the configuration category; the feature extraction is used for determining a configuration category to which the configuration file belongs according to the feature of the content in the configuration file;
and calling the mature classification model to determine configuration parameters in the configuration file according to the positioning points corresponding to the configuration categories.
4. A method for locating configuration parameters according to claim 3, wherein invoking the maturity classification model to perform feature extraction on the configuration file to obtain at least one configuration class comprises:
Calling a natural language module in the mature classification model to perform word segmentation processing on the configuration file to obtain at least one configuration vocabulary;
entering the at least one configuration vocabulary into an input layer of a network model in the mature classification model, wherein the input layer converts the configuration vocabulary into a configuration vector;
the middle layer of the network model performs feature extraction on the configuration vectors in the input layer to obtain feature vectors; the feature vector characterizes the content of each configuration word and the association relation among each configuration word;
and the middle layer outputs the feature vector to an output layer of the network model, and the output layer generates a configuration category according to the feature vector.
5. A method for locating configuration parameters according to claim 3, wherein invoking the mature classification model to determine the configuration parameters in the configuration file according to the locating points corresponding to the configuration categories comprises:
setting the locating point as a keyword of a regular module in the classification model;
and calling a regular module in the classification model, and inquiring the configuration parameters corresponding to the locating points in the configuration file according to the keywords to obtain the configuration parameters corresponding to the locating points.
6. The configuration parameter positioning method according to claim 1, wherein generating a configuration response according to the configuration request and the location of the configuration parameter, and transmitting the configuration response to the terminal, comprises:
generating a response header according to the request header of the configuration request;
generating position information according to the position of the configuration parameters in the configuration file;
and generating a response body from the position information, and integrating the response head and the response body to generate a configuration response.
7. The method of claim 6, wherein generating location information based on the location of the configuration parameters in the configuration file comprises:
accessing a system file of a business system where the configuration file is located, wherein the system file is provided with an environment variable of each configuration parameter in the configuration file; the environment variables include: a directory path for being searched and/or an executable path for being run;
acquiring environment variables of the configuration parameters in the configuration file from the system file;
setting the environment variable as position information.
8. The method for locating configuration parameters according to claim 1, wherein before receiving the configuration request sent by the terminal, the method further comprises:
Obtaining a training sample; wherein the training sample comprises: training configuration files and training configuration categories;
calling a natural language processing model of the initial classification model, and performing word segmentation processing on the training configuration file to obtain at least one training vocabulary;
inputting the training vocabulary into an input layer of a network model in the initial classification model, and inputting the training configuration category into an output layer of the network model of the initial classification model;
and training the middle layer of the network model of the initial classification model according to the training vocabulary in the input layer and the training configuration category of the output layer, so that the middle layer can determine the training configuration category according to the training vocabulary.
9. The method for locating configuration parameters according to claim 8, wherein obtaining training samples comprises:
acquiring a training configuration file;
carrying out structuring treatment on the training configuration file to obtain structured information, and extracting at least one training positioning point in the structured information;
and determining at least one training configuration category of the training configuration file according to the training positioning point.
10. A configuration parameter locating device, comprising:
The input module is used for receiving a configuration request sent by the terminal; wherein the configuration request has a configuration file; the configuration request is used for indicating and identifying the position of the configuration parameters in the configuration file; the configuration file is a computer file used for defining the parameter configuration and initial setting of an application program and/or a database system in a business system; the service system is a distributed server in a distributed system; the distributed system is formed by connecting a plurality of distributed servers through a network, an application program in each distributed server is used for realizing at least one service function, and a database system in each distributed server is used for providing service data for realizing the service function;
the processing module is used for calling a preset mature classification model according to the configuration request to determine a configuration category corresponding to the configuration file, and determining configuration parameters in the configuration file according to a positioning point corresponding to the configuration category; wherein the configuration category characterizes a type to which the content in the configuration file relates; the anchor points are metadata under the configuration category for characterizing the attributes or features of the configuration parameters in the configuration file;
The output module is used for generating a configuration response according to the configuration request and the position of the configuration parameter and sending the configuration response to the terminal; the configuration response is used for displaying the position of each configuration parameter in the configuration file of the service system in the terminal.
11. A computer device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1 to 9.
12. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 9.
CN202310723433.9A 2023-06-16 2023-06-16 Configuration parameter positioning method, device, computer equipment and storage medium Pending CN116627902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310723433.9A CN116627902A (en) 2023-06-16 2023-06-16 Configuration parameter positioning method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310723433.9A CN116627902A (en) 2023-06-16 2023-06-16 Configuration parameter positioning method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116627902A true CN116627902A (en) 2023-08-22

Family

ID=87590583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310723433.9A Pending CN116627902A (en) 2023-06-16 2023-06-16 Configuration parameter positioning method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116627902A (en)

Similar Documents

Publication Publication Date Title
US11544459B2 (en) Method and apparatus for determining feature words and server
WO2020057022A1 (en) Associative recommendation method and apparatus, computer device, and storage medium
US8452772B1 (en) Methods, systems, and articles of manufacture for addressing popular topics in a socials sphere
US8073877B2 (en) Scalable semi-structured named entity detection
US10423649B2 (en) Natural question generation from query data using natural language processing system
CN110929125B (en) Search recall method, device, equipment and storage medium thereof
US20130060769A1 (en) System and method for identifying social media interactions
CN109508458B (en) Legal entity identification method and device
WO2021051517A1 (en) Information retrieval method based on convolutional neural network, and device related thereto
CN111177532A (en) Vertical search method, device, computer system and readable storage medium
CN105550206B (en) The edition control method and device of structured query sentence
CN112035599B (en) Query method and device based on vertical search, computer equipment and storage medium
CN110134780B (en) Method, device, equipment and computer readable storage medium for generating document abstract
CN111782763A (en) Information retrieval method based on voice semantics and related equipment thereof
CN112115232A (en) Data error correction method and device and server
JP2016192202A (en) Collation processing system, method, and program
CN113961768B (en) Sensitive word detection method and device, computer equipment and storage medium
CN108763202A (en) Method, apparatus, equipment and the readable storage medium storing program for executing of the sensitive text of identification
WO2015084757A1 (en) Systems and methods for processing data stored in a database
CN116415564B (en) Functional point amplification method and system based on knowledge graph
CN116383412B (en) Functional point amplification method and system based on knowledge graph
CN111783425B (en) Intention identification method based on syntactic analysis model and related device
CN111985212A (en) Text keyword recognition method and device, computer equipment and readable storage medium
CN111737607A (en) Data processing method, data processing device, electronic equipment and storage medium
CN116627902A (en) Configuration parameter positioning method, device, computer equipment and storage medium

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