CN115580646B - Middleware configuration method, device, server, medium and product - Google Patents
Middleware configuration method, device, server, medium and product Download PDFInfo
- Publication number
- CN115580646B CN115580646B CN202211093076.4A CN202211093076A CN115580646B CN 115580646 B CN115580646 B CN 115580646B CN 202211093076 A CN202211093076 A CN 202211093076A CN 115580646 B CN115580646 B CN 115580646B
- Authority
- CN
- China
- Prior art keywords
- middleware
- configuration information
- cloud service
- parameter variable
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 79
- 238000012545 processing Methods 0.000 claims abstract description 19
- 238000010276 construction Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention belongs to the technical field of data processing, and particularly provides a middleware configuration method, a device, a server, a medium and a product, wherein the method comprises the steps of obtaining first middleware configuration information related to middleware configuration; the first middleware configuration information comprises parameter variables corresponding to the middleware, parameter variable specific data are obtained from a middleware service platform according to the parameter variables, data replacement processing is conducted on the first middleware configuration information according to the parameter variable specific data so as to generate second middleware configuration information, and an association relation between the middleware and cloud service is built according to the second middleware configuration information. The middleware configuration method provided by the invention enables the cloud service to use the middleware service, and solves the problem that the middleware service is difficult to use.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a middleware configuration method, device, server, medium, and product.
Background
With the continuous development of network technology, cloud service application is becoming more and more widespread. Cloud services can be built through auxiliary arrangement of various tools so as to improve efficiency of development, deployment, testing and other stages. The service orchestration engine in the service orchestration engine server can realize functions such as middleware service pull-up and the like. Based on the cloud service orchestration file, the service orchestration engine may automatically build a cloud service as a mirror image from the source code with one key, and then deploy the mirror image to the Kubernetes cluster as a usable cloud service.
When the cloud service needs to rely on other middleware such as mysql database (relational database) and Redis (English is called Remote Dictionary Server, chinese is called remote dictionary service) for caching, in the process of configuring the middleware, the service orchestration engine needs to deploy the middleware service into a Kubernetes cluster where the cloud service is located, and uses the services of the middleware through a mechanism of DNS (English is called Domain NAME SYSTEM, chinese is called Domain name system) service of the Kubernetes cluster.
However, the middleware is generally provided by a middleware service platform at present and is not deployed in the same Kubernetes cluster with the cloud service, so that the middleware service is difficult to use. Thus, there is a need for a new middleware configuration method that associates cloud services with middleware services, overcoming the problem of difficulty in using the middleware services.
Disclosure of Invention
The invention provides a middleware configuration method, a device, a server, a medium and a product, which are used for solving the problem that middleware service is difficult to use because the middleware is generally provided by a middleware service platform and is not deployed in the same Kubernetes cluster with cloud service at present.
The first aspect of the present invention provides a middleware configuration method, applied to a service orchestration engine server, the method comprising:
acquiring first middleware configuration information related to middleware configuration, wherein the first middleware configuration information comprises parameter variables corresponding to the middleware;
acquiring parameter variable specific data from the middleware service platform according to the parameter variable;
performing data replacement processing on the first middleware configuration information according to the parameter variable specific data to generate second middleware configuration information;
And constructing the association relation between the middleware and the cloud service according to the second middleware configuration information.
Further, the method described above, the obtaining the first middleware configuration information related to the middleware configuration includes:
acquiring a corresponding cloud service arrangement file from a cloud service construction platform;
and adopting SNAKEYAML parser to parse the cloud service orchestration file to determine the first middleware configuration information.
Further, the method as described above, wherein the step of obtaining parameter variable specific data from the middleware service platform according to the parameter variable includes:
sending a middleware creation application to a middleware service platform according to the parameter variable;
and receiving parameter variable specific data returned by the middleware service platform according to the middleware creation application.
Further, according to the method, the data format of the parameter variable in the first middleware configuration information is a placeholder, and the parameter variable specific data comprises a parameter variable identifier and a parameter variable specific value;
The data replacement processing is performed on the first middleware configuration information according to the parameter variable specific data to generate second middleware configuration information, including:
Determining placeholders of corresponding parameter variables in the first middleware configuration information according to the parameter variable identifiers;
And replacing the placeholder of the corresponding parameter variable with the corresponding parameter variable identifier and the parameter variable specific value to generate second middleware configuration information.
Further, as described above, the method for constructing an association relationship between the middleware and the cloud service according to the second middleware configuration information includes:
Converting the second middleware configuration information into an application subfile corresponding to cloud service;
Arranging the application subfiles under the corresponding application directories of the cloud service arrangement files;
and determining the application subfiles as the corresponding promoter files of the cloud service to construct the association relationship between the middleware and the cloud service, wherein the promoter files are files required to be executed when the cloud service starting process is executed.
Further, as described above, the cloud service orchestration file includes environment variable information of the cloud service;
The constructing the association relationship between the middleware and the cloud service according to the second middleware configuration information includes:
converting the second middleware configuration information into the environment variable information;
And determining the environment variable information corresponding to the second middleware configuration information as a starting parameter corresponding to the cloud service to construct an association relationship between the middleware and the cloud service, wherein the starting parameter is a parameter required to be executed when the cloud service starting process is executed.
Further, as described above, the method for constructing an association relationship between the middleware and the cloud service according to the second middleware configuration information includes:
And storing the second middleware configuration information into a preset configuration center database to construct an association relationship between the middleware and the cloud service, wherein the preset configuration center database is used for storing configuration information required to be executed when the cloud service starting process is executed.
A second aspect of the present invention provides a middleware configuration apparatus located at a service orchestration engine server, the apparatus comprising:
The system comprises a first acquisition module, a second acquisition module and a first control module, wherein the first acquisition module is used for acquiring first middleware configuration information related to middleware configuration, and the first middleware configuration information comprises parameter variables corresponding to the middleware;
the second acquisition module is used for acquiring the specific data of the parameter variable from the middleware service platform according to the parameter variable;
The generation module is used for carrying out data replacement processing on the first middleware configuration information according to the parameter variable specific data so as to generate second middleware configuration information;
and the construction module is used for constructing the association relationship between the middleware and the cloud service according to the second middleware configuration information.
Further, in the apparatus as described above, the first obtaining module is specifically configured to:
and analyzing the cloud service orchestration file by adopting a SNAKEYAML analyzer to determine the first middleware configuration information.
Further, in the apparatus as described above, the second obtaining module is specifically configured to:
And receiving the specific data of the parameter variables returned by the middleware service platform according to the middleware creation application.
Further, the device comprises the device, wherein the data format of the parameter variable in the first middleware configuration information is a placeholder, and the parameter variable specific data comprises a parameter variable identifier and a parameter variable specific value;
the generating module is specifically configured to:
and replacing the placeholder of the corresponding parameter variable with the specific value corresponding to the parameter variable identifier and the parameter variable so as to generate second middleware configuration information.
Further, in the apparatus as described above, the construction module is specifically configured to:
the method comprises the steps of converting configuration information of a second middleware into an application sub-file corresponding to cloud service, arranging the application sub-file under a corresponding application catalog of a cloud service arranging file, determining the application sub-file as a promoter file corresponding to the cloud service to construct an association relationship between the middleware and the cloud service, wherein the promoter file is a file required to be executed when a cloud service starting process is executed.
Further, as described above, the cloud service orchestration file includes environment variable information of the cloud service;
The construction module is specifically used for:
The method comprises the steps of obtaining configuration information of a first middleware, converting the configuration information of the first middleware into environment variable information, determining the environment variable information corresponding to the configuration information of the first middleware as starting parameters corresponding to cloud services to construct an association relation between the middleware and the cloud services, wherein the starting parameters are parameters required to be executed when a cloud service starting process is executed.
Further, in the apparatus as described above, the construction module is specifically configured to:
And storing the second middleware configuration information into a preset configuration center database to construct an association relationship between the middleware and the cloud service, wherein the preset configuration center database is used for storing configuration information required to be executed when the cloud service starting process is executed.
A third aspect of the present invention provides a service orchestration engine server comprising a processor, memory and transceiver;
the processor, the memory, and the transceiver circuitry are interconnected;
the transceiver is used for receiving and transmitting data;
the processor executes computer-executable instructions stored by the memory to implement the middleware configuration method of any of the first aspects.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the middleware configuration method of any one of the first aspects when executed by a processor.
A fifth aspect of the invention provides a computer program product comprising a computer program which, when executed by a processor, implements the middleware configuration method of any of the first aspects.
The middleware configuration method, device, server, medium and product comprise the steps of obtaining first middleware configuration information related to middleware configuration, wherein the first middleware configuration information comprises parameter variables corresponding to the middleware, obtaining parameter variable specific data from a middleware service platform according to the parameter variables, carrying out data replacement processing on the first middleware configuration information according to the parameter variable specific data to generate second middleware configuration information, and building association relations between the middleware and cloud services according to the second middleware configuration information. According to the middleware configuration method, parameter variable specific data are obtained from a middleware service platform through parameter variables of first middleware configuration information, and data replacement processing is carried out on the first middleware configuration information according to the parameter variable specific data so as to generate second middleware configuration information. Because the second middleware configuration information is derived from the middleware service platform, the association relationship between the middleware and the cloud service can be constructed according to the second middleware configuration information, so that the cloud service can use the middleware service, and the problem that the middleware service is difficult to use is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a diagram of a middleware configuration method in which embodiments of the present invention may be implemented;
Fig. 2 is a schematic flow chart of a middleware configuration method provided by the present invention;
FIG. 3 is a second flow chart of the middleware configuration method according to the present invention;
fig. 4 is an overall flow diagram of a middleware configuration method provided by the present invention;
Fig. 5 is a schematic structural diagram of a middleware configuration device provided by the present invention;
Fig. 6 is a schematic structural diagram of a service orchestration engine server according to the present invention.
Specific embodiments of the present invention 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 invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
In the technical scheme of the embodiment of the invention, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user accord with the regulations of related laws and regulations, and the public order is not violated.
The technical scheme of the invention is described in detail below by specific examples. 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 invention will be described below with reference to the accompanying drawings.
For a clear understanding of the technical solutions of the present application, the prior art solutions will be described in detail first. At present, when a middleware is configured by a service orchestration engine, the middleware service is deployed under the name space of a Kubernetes cluster where a cloud service is located, and name naming of the middleware service specified in a cloud service orchestration file is used. The cloud service can correctly use the middleware service by using the DNS service mechanism of the Kubernetes cluster when the cloud service is started. When the middleware service and the cloud service are deployed in the same Kubernetes cluster and in different deployment spaces, the above-mentioned similar method can be used as long as the names of the deployment spaces are known.
However, the middleware is generally provided by a middleware service platform at present and is not deployed in the same Kubernetes cluster with the cloud service, so that the middleware service is difficult to use.
Therefore, aiming at the problem that middleware is generally provided by a middleware service platform and is not deployed in the same Kubernetes cluster with cloud service, which results in difficulty in using the middleware service, the inventor finds out in research, and in order to solve the problem, the configuration information of calling the middleware can be associated with cloud service construction, so that the cloud service can use the middleware service.
Specifically, first, parameter variable specific data is obtained from a middleware service platform through parameter variables of first middleware configuration information related to middleware configuration, and data replacement processing is performed on the first middleware configuration information according to the parameter variable specific data so as to generate second middleware configuration information. Because the second middleware configuration information is derived from the middleware service platform, the association relationship between the middleware and the cloud service can be constructed according to the second middleware configuration information, and the cloud service can use the middleware service after the construction is completed, so that the problem that the middleware service is difficult to use is solved.
The inventor proposes the technical scheme of the application based on the creative discovery.
The application scenario of the middleware configuration method provided by the embodiment of the invention is described below. As shown in fig. 1,1 is a service orchestration engine server, 2 is an electronic device, and 3 is a middleware service platform. The network architecture of the application scene corresponding to the middleware configuration method provided by the embodiment of the invention comprises a service orchestration engine server 1, electronic equipment 2 and a middleware service platform 3. The service orchestration engine server 1 is provided with a service orchestration engine, and can be used for constructing association between middleware and cloud services. The electronic device 2 stores first middleware configuration information related to the middleware configuration, and the first middleware configuration information includes parameter variables, parameter variable formats, and the like. The middleware service platform 3 stores middleware-related data such as parameter variable specific data. Middleware of the embodiment may employ mysql database, redis cache, etc.
When middleware configuration and association between the middleware and the cloud service are required, the service orchestration engine server 1 obtains first middleware configuration information related to the middleware configuration from the electronic device 2, wherein the first middleware configuration information comprises parameter variables corresponding to the middleware. Meanwhile, the service orchestration engine server 1 obtains parameter variable specific data from the middleware service platform 3 according to the parameter variable, and the specific mode may be that the middleware service platform 3 sends the parameter variable specific data to the service orchestration engine server 1. After that, the service orchestration engine server 1 performs data replacement processing on the first middleware configuration information according to the parameter variable specific data to generate second middleware configuration information. And constructing the association relationship between the middleware and the cloud service according to the second middleware configuration information. After the association relationship between the middleware and the cloud service is constructed, the cloud service may use the middleware service.
Embodiments of the present invention will now be described with reference to the accompanying drawings.
Fig. 2 is a schematic flow chart of a middleware configuration method provided by the present invention, as shown in fig. 2, an execution body of an embodiment of the present invention is a middleware configuration device, where the middleware configuration device may be integrated in a service orchestration engine server, or may be provided in other electronic devices, so as to execute a flow by calling the service orchestration engine. The middleware configuration method provided in this embodiment includes the following steps:
step S101, obtaining first middleware configuration information related to middleware configuration. The first middleware configuration information comprises parameter variables corresponding to the middleware.
In this embodiment, the obtaining manner may be obtained from a database storing the first middleware configuration information, or may be obtained from a cloud service orchestration file. The cloud service orchestration file generally comprises all relevant data of cloud service construction, such as first middleware configuration information related to middleware configuration, a code warehouse address, cloud service flow data and the like.
The first middleware configuration information may include parameter variables (placed in character strings in the form of placeholders), parameter variable names, key characters, and the like.
The service orchestration engine in the embodiment is an automation engine of a cloud native service, and automatically completes functions of continuous integration, continuous deployment, middleware service pull-up and the like for one cloud service. The service orchestration engine server is provided with a service orchestration engine.
And step S102, acquiring the parameter variable specific data from the middleware service platform according to the parameter variable.
In this embodiment, the parameter variables may include a middleware user name, a middleware user password, an internet protocol address, a port, and the like. The middleware service platform can be the middleware service platform of any enterprise and is used for providing middleware services.
The obtained parameter variable specific data corresponds to the parameter variable, for example, the middleware user name can be a specific name, and the internet protocol address is an address capable of calling the middleware data.
Step S103, carrying out data replacement processing on the first middleware configuration information according to the parameter variable specific data so as to generate second middleware configuration information.
In this embodiment, the parameter variable specific data may replace the position corresponding to the parameter variable in the first middleware configuration information, so as to perfect the first middleware configuration information and generate the second middleware configuration information with the parameter variable specific data.
And step S104, constructing the association relationship between the middleware and the cloud service according to the second middleware configuration information.
The second middleware configuration information may be associated with the cloud service as configuration information for invoking the middleware service, so that the cloud service may use the middleware service. There are various ways of constructing the association relationship between the middleware and the cloud service, for example, an application file can be generated according to the configuration information of the second middleware, and the application file is hung under the corresponding directory of the cloud service arrangement file, and the Java project starting command is designated to start with the configuration file, so that the association between the middleware and the cloud service is realized. The second middleware configuration information can be uploaded to a preset configuration center database corresponding to the service arrangement engine, and meanwhile, the cloud service is set to acquire the configuration information from the preset configuration center database and started based on the configuration information, so that the association between the middleware and the cloud service is realized. There may be other ways to construct the association relationship between the middleware and the cloud service, which is not limited in this embodiment.
The middleware configuration method comprises the steps of obtaining first middleware configuration information related to middleware configuration. The first middleware configuration information comprises parameter variables corresponding to the middleware. And acquiring the parameter variable specific data from the middleware service platform according to the parameter variable. And carrying out data replacement processing on the first middleware configuration information according to the parameter variable specific data so as to generate second middleware configuration information. And constructing the association relation between the middleware and the cloud service according to the second middleware configuration information.
According to the middleware configuration method, the parameter variable specific data are obtained from the middleware service platform through the parameter variable of the first middleware configuration information, and the data replacement processing is carried out on the first middleware configuration information according to the parameter variable specific data so as to generate the second middleware configuration information. Because the second middleware configuration information is derived from the middleware service platform, the association relationship between the middleware and the cloud service can be constructed according to the second middleware configuration information, so that the cloud service can use the middleware service, and the problem that the middleware service is difficult to use is solved.
Fig. 3 is a second flow chart of the middleware configuration method provided by the present invention, as shown in fig. 3, where the middleware configuration method provided by the present embodiment is further refined based on the middleware configuration method provided by the previous embodiment of the present invention. The middleware configuration method provided in this embodiment includes the following steps.
Step S201, obtaining a corresponding cloud service arrangement file from a cloud service construction platform.
In this embodiment, the cloud service construction platform may be used to develop and test a cloud service, or may generate a cloud service orchestration file corresponding to the constructed cloud service. The cloud service orchestration file includes relevant data for the entire flow of the cloud service. All data of the cloud service pre-built at this time, such as the type of middleware, the type of the cloud service, the type of the application and the like, which need to be used, can be pre-determined through the cloud service building platform.
Step S202, a SNAKEYAML parser is used to parse the cloud service orchestration file to determine first middleware configuration information.
In this embodiment, SNAKEYAML parser is a parsing tool for parsing Yaml (all English is called YAML Ain' ta Markup Language) file, and Yaml file can be used for cloud service orchestration file. By adopting the SNAKEYAML parser, the parsing effect and the parsing efficiency of the cloud service orchestration file can be improved, so that the first middleware configuration information in the cloud service orchestration file can be more effectively determined.
And step S203, a middleware creation application is sent to the middleware service platform according to the parameter variables.
In this embodiment, according to the parameter variable, a middleware creation application may be sent to the middleware service platform, where the creation application corresponds to the parameter variable. If the type of the middleware required is a mysql database, the parameter variable is a variable corresponding to the mysql database, so that a middleware creation application corresponding to the mysql database is generated.
The middleware creation application can automatically apply for creating the middleware service from the middleware service platform through a restful remote calling technology, wherein the restful is a design style and development mode of a network application program. Meanwhile, the efficiency of middleware creation application is improved. After the application is carried out, the service orchestration engine server can continuously determine the creation state of the middleware service so as to receive the parameter variable specific data returned by the middleware service platform according to the middleware creation application more quickly, and the overall efficiency of the middleware configuration is improved.
Step S204, receiving parameter variable specific data returned by the middleware service platform according to the middleware creation application.
In this embodiment, when the middleware service platform receives a middleware creation application, for example, a middleware creation application corresponding to a mysql database is received, the middleware creation application is parsed to determine a middleware service type to be created. When the middleware service type is determined to be the mysql database, creating the mysql database middleware service, and after the creation is completed, sending parameter variable specific data corresponding to the mysql database, such as an IP address (English is fully called: internet Protocol Address, chinese is an Internet protocol address) and port information, to a service orchestration engine server, so as to provide a basis for the subsequent association of the middleware and the cloud service.
It should be noted that, the data format of the parameter variable in the first middleware configuration information is a placeholder.
Step S205, the placeholder of the corresponding parameter variable in the first middleware configuration information is determined according to the parameter variable identifier. The parameter variable specific data comprises a parameter variable identification and a parameter variable specific value.
In this embodiment, the parameter variable in the first middleware configuration information is placed in the character string in the form of a placeholder, and the parameter variable at this time occupies the position of the character string, but has only a definition function and does not have an actual function. And determining the placeholder position of the corresponding parameter variable according to the parameter variable identification, thereby providing a basis for the follow-up process of replacing the specific data of the parameter variable.
Step S206, replacing the placeholder of the corresponding parameter variable with the corresponding parameter variable identifier and the parameter variable specific value to generate second middleware configuration information.
In this embodiment, the related information of the middleware service may be determined through the second middleware configuration information, so that after the association relationship with the cloud service is established, the cloud service may use the middleware service.
Step S207, the association relationship between the middleware and the cloud service is constructed according to the second middleware configuration information.
The implementation of step 207 is similar to that of step 104 in the previous embodiment of the present invention, and will not be described in detail here.
The specific ways of constructing the association relationship between the middleware and the cloud service according to the second middleware configuration information may be various, and this embodiment is illustrated by the following three ways:
optionally, the first way is:
and converting the second middleware configuration information into an application sub-file corresponding to the cloud service.
And arranging the application subfiles under the corresponding application directories of the cloud service arrangement files.
And determining the application subfiles as the promoter files corresponding to the cloud services so as to construct the association relationship between the middleware and the cloud services. The promoter file is a file which needs to be executed when the cloud service starting flow is executed.
The first mode is to arrange the second middleware configuration information under the corresponding application catalog of the cloud service arrangement file and become a corresponding promoter file of the cloud service, so that the second middleware configuration information is closely related to the starting of the cloud service. When the cloud service is started, the promoter file corresponding to the second middleware configuration information is executed, so that the middleware service can be called through the promoter file. If the programming language is Java, the Java project starting command can be appointed to be started by the starting sub-file, so that the middleware service can be used by the cloud service in starting.
Optionally, the second way is to schedule the environment variable information of the cloud service included in the file using the cloud service.
The second mode is as follows:
and converting the second middleware configuration information into environment variable information.
And determining the environment variable information corresponding to the second middleware configuration information as a starting parameter corresponding to the cloud service so as to construct an association relationship between the middleware and the cloud service. The starting parameters are parameters required to be executed when the cloud service starting process is executed.
And the second mode converts the second middleware configuration information into environment variable information, stores the environment variable information of the cloud service, and takes the environment variable as a starting parameter of the cloud service. The environment variable information is information to be executed by the cloud service, and when the cloud service is started, the starting parameters are executed. If the programming language is Java, the process of determining the environment variable information corresponding to the second middleware configuration information as the starting parameter corresponding to the cloud service may further be to designate the environment variable as the starting parameter in the Java item starting command.
The second mode stores the second middleware configuration information into the environment variable information, and the environment variable information is information originally possessed by the cloud service, so that the use of the middleware service by the cloud service can be realized under the condition that the cloud service data layout is not influenced.
Alternatively, a third approach may employ a preset configuration center database to manage all configuration data.
The third way is:
And storing the second middleware configuration information into a preset configuration center database to construct an association relationship between the middleware and the cloud service. The preset configuration center database is used for storing configuration information required to be executed when the cloud service starting process is executed.
Because the preset configuration center database stores configuration information to be executed when the cloud service starts up, when the cloud service starts up after the second middleware configuration information is stored in the preset configuration center database, the configuration information is acquired from the preset configuration center database for starting up. Therefore, the cloud service can use the middleware service through the second middleware configuration information in the preset configuration center database. Compared with the former two modes, the third mode is convenient for managing the configuration information and updating and upgrading the configuration information.
In order to more easily understand the middleware configuration method according to the embodiment of the present invention, the following description will be made with reference to fig. 4. As shown in fig. 4, in the middleware configuration method of the present embodiment, the service orchestration engine server first analyzes the cloud service orchestration file to obtain first intermediate configuration information and parameter variables contained in the first intermediate configuration information. And the service orchestration engine server applies for creating middleware to the middleware service platform according to the parameter variables, and receives the parameter variable specific data returned by the middleware service platform after the middleware service platform completes the creation. And then the service orchestration engine server performs data replacement according to the parameter variable specific data and the placeholder for recording the parameter variable in the first middleware configuration information, and generates second middleware configuration information. And finally, associating with the cloud service according to the second middleware configuration information, so that the cloud service can use the middleware service.
Fig. 5 is a schematic structural diagram of a middleware configuration device provided in the present invention, as shown in fig. 5, in this embodiment, the middleware configuration device 300 may be disposed in a service orchestration engine server, and the middleware configuration device 300 includes:
The first obtaining module 301 is configured to obtain first middleware configuration information related to middleware configuration. The first middleware configuration information comprises parameter variables corresponding to the middleware.
And the second obtaining module 302 is configured to obtain the parameter variable specific data from the middleware service platform according to the parameter variable.
And the generating module 303 is configured to perform data replacement processing on the first middleware configuration information according to the parameter variable specific data, so as to generate second middleware configuration information.
And the construction module 304 is configured to construct an association relationship between the middleware and the cloud service according to the second middleware configuration information.
The middleware configuration device provided in this embodiment may execute the technical scheme of the method embodiment shown in fig. 2, and its implementation principle and technical effects are similar to those of the method embodiment shown in fig. 2, and are not described in detail herein.
The middleware configuration device provided by the invention is further refined based on the middleware configuration device provided by the previous embodiment, and is specifically as follows.
Optionally, in this embodiment, the first obtaining module 301 is specifically configured to:
And acquiring the corresponding cloud service arrangement file from the cloud service construction platform. And adopting SNAKEYAML parser to parse the cloud service orchestration file to determine the first middleware configuration information.
Optionally, in this embodiment, the second obtaining module 302 is specifically configured to:
And sending a middleware creation application to the middleware service platform according to the parameter variable. And receiving the parameter variable specific data returned by the middleware service platform according to the middleware creation application.
Optionally, in this embodiment, a data format of the parameter variable in the first middleware configuration information is a placeholder. The parameter variable specific data comprises a parameter variable identification and a parameter variable specific value.
The generating module 303 is specifically configured to:
And determining the placeholder of the corresponding parameter variable in the first middleware configuration information according to the parameter variable identifier. And replacing the placeholder of the corresponding parameter variable with the corresponding parameter variable identifier and the parameter variable specific value to generate second middleware configuration information.
Optionally, in this embodiment, the building module 304 is specifically configured to:
And converting the second middleware configuration information into an application sub-file corresponding to the cloud service. And arranging the application subfiles under the corresponding application directories of the cloud service arrangement files. And determining the application subfiles as the promoter files corresponding to the cloud services so as to construct the association relationship between the middleware and the cloud services. The promoter file is a file which needs to be executed when the cloud service starting flow is executed.
Optionally, in this embodiment, the cloud service orchestration file includes environment variable information of the cloud service.
The construction module 304 is specifically configured to:
And converting the second middleware configuration information into environment variable information. And determining the environment variable information corresponding to the second middleware configuration information as a starting parameter corresponding to the cloud service so as to construct an association relationship between the middleware and the cloud service. The starting parameters are parameters required to be executed when the cloud service starting process is executed.
Optionally, in this embodiment, the building module 304 is specifically configured to:
And storing the second middleware configuration information into a preset configuration center database to construct an association relationship between the middleware and the cloud service. The preset configuration center database is used for storing configuration information required to be executed when the cloud service starting process is executed.
The middleware configuration device provided in this embodiment may execute the technical solution of the method embodiment shown in fig. 2 to fig. 4, and its implementation principle and technical effects are similar to those of the method embodiment shown in fig. 2 to fig. 4, and are not described in detail herein.
According to embodiments of the present invention, the present invention also provides an electronic device, a computer-readable storage medium, and a computer program product.
As shown in fig. 6, fig. 6 is a schematic structural diagram of a service orchestration engine server provided by the present invention. Service orchestration engine servers are intended for various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, blade servers, mainframes, and other appropriate computers. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the service orchestration engine server comprises a processor 401, a memory 402, and a transceiver 403. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device. The transceiver 403 is configured to receive or transmit data, such as data of parameter templates, parameters, parameter filling policies, etc.
Memory 402 is a non-transitory computer readable storage medium provided by the present invention. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the middleware configuration method provided by the invention. The non-transitory computer readable storage medium of the present invention stores computer instructions for causing a computer to execute the middleware configuration method provided by the present invention.
The memory 402 is used as a non-transitory computer readable storage medium, and may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the first acquisition module 301, the second acquisition module 302, the generation module 303, and the construction module 304 shown in fig. 5) corresponding to the middleware configuration method in the embodiment of the present invention. The processor 401 executes various functional applications of the electronic device and data processing, i.e., implements the middleware configuration method in the above-described method embodiments by running non-transitory software programs, instructions, and modules stored in the memory 402.
Meanwhile, the present embodiment also provides a computer product, which when executed by a processor of an electronic device, enables the electronic device to perform the middleware configuration method of the above embodiment.
Other implementations of the examples of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of embodiments of the invention following, in general, the principles of the embodiments of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the embodiments of the invention pertains.
It is to be understood that the embodiments of the invention are 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 made without departing from the scope thereof. The scope of embodiments of the invention is limited only by the appended claims.
Claims (9)
1. A middleware configuration method applied to a service orchestration engine server, the method comprising:
acquiring a corresponding cloud service arrangement file from a cloud service construction platform;
Analyzing the cloud service orchestration file by using SNAKEYAML analyzer to determine first middleware configuration information, wherein the first middleware configuration information comprises parameter variables corresponding to middleware;
acquiring parameter variable specific data from the middleware service platform according to the parameter variable;
performing data replacement processing on the first middleware configuration information according to the parameter variable specific data to generate second middleware configuration information;
constructing an association relationship between middleware and cloud service according to the second middleware configuration information;
The data format of the parameter variable in the first middleware configuration information is a placeholder, and the parameter variable specific data comprises a parameter variable identifier and a parameter variable specific numerical value;
The data replacement processing is performed on the first middleware configuration information according to the parameter variable specific data to generate second middleware configuration information, including:
Determining placeholders of corresponding parameter variables in the first middleware configuration information according to the parameter variable identifiers;
And replacing the placeholder of the corresponding parameter variable with the corresponding parameter variable identifier and the parameter variable specific value to generate second middleware configuration information.
2. The method according to claim 1, wherein the obtaining parameter variable specific data from the middleware service platform according to the parameter variable comprises:
sending a middleware creation application to a middleware service platform according to the parameter variable;
and receiving parameter variable specific data returned by the middleware service platform according to the middleware creation application.
3. The method according to claim 2, wherein the constructing the association relationship between the middleware and the cloud service according to the second middleware configuration information includes:
Converting the second middleware configuration information into an application subfile corresponding to cloud service;
Arranging the application subfiles under the corresponding application directories of the cloud service arrangement files;
and determining the application subfiles as the corresponding promoter files of the cloud service to construct the association relationship between the middleware and the cloud service, wherein the promoter files are files required to be executed when the cloud service starting process is executed.
4. The method of claim 2, wherein the cloud service orchestration file comprises environment variable information for the cloud service;
The constructing the association relationship between the middleware and the cloud service according to the second middleware configuration information includes:
converting the second middleware configuration information into the environment variable information;
And determining the environment variable information corresponding to the second middleware configuration information as a starting parameter corresponding to the cloud service to construct an association relationship between the middleware and the cloud service, wherein the starting parameter is a parameter required to be executed when the cloud service starting process is executed.
5. The method according to claim 2, wherein the constructing the association relationship between the middleware and the cloud service according to the second middleware configuration information includes:
And storing the second middleware configuration information into a preset configuration center database to construct an association relationship between the middleware and the cloud service, wherein the preset configuration center database is used for storing configuration information required to be executed when the cloud service starting process is executed.
6. A middleware configuration apparatus located at a service orchestration engine server, the apparatus comprising:
The system comprises a first acquisition module, a second acquisition module and a first control module, wherein the first acquisition module is used for acquiring first middleware configuration information related to middleware configuration, and the first middleware configuration information comprises parameter variables corresponding to the middleware;
the second acquisition module is used for acquiring the specific data of the parameter variable from the middleware service platform according to the parameter variable;
The generation module is used for carrying out data replacement processing on the first middleware configuration information according to the parameter variable specific data so as to generate second middleware configuration information;
the construction module is used for constructing the association relationship between the middleware and the cloud service according to the second middleware configuration information;
the first acquisition module is specifically used for acquiring a corresponding cloud service arrangement file from the cloud service construction platform, and adopting SNAKEYAML analyzer to analyze the cloud service arrangement file so as to determine first middleware configuration information;
The method comprises the steps of obtaining first middleware configuration information, obtaining parameter variable specific data, wherein the data format of the parameter variable in the first middleware configuration information is a placeholder, the parameter variable specific data comprise parameter variable identifiers and parameter variable specific values, the generating module is specifically used for determining the placeholder of the corresponding parameter variable in the first middleware configuration information according to the parameter variable identifiers, and replacing the placeholder of the corresponding parameter variable with the corresponding parameter variable identifier and the parameter variable specific value to generate second middleware configuration information.
7. A service orchestration engine server, comprising a processor, a memory, and a transceiver;
the processor, the memory, and the transceiver circuitry are interconnected;
the transceiver is used for receiving and transmitting data;
The processor executes computer-executable instructions stored in the memory to implement the middleware configuration method of any one of claims 1 to 5.
8. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are for implementing the middleware configuration method of any of claims 1 to 5.
9. A computer program product comprising a computer program which, when executed by a processor, implements the middleware configuration method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211093076.4A CN115580646B (en) | 2022-09-08 | 2022-09-08 | Middleware configuration method, device, server, medium and product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211093076.4A CN115580646B (en) | 2022-09-08 | 2022-09-08 | Middleware configuration method, device, server, medium and product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115580646A CN115580646A (en) | 2023-01-06 |
CN115580646B true CN115580646B (en) | 2024-12-20 |
Family
ID=84582052
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211093076.4A Active CN115580646B (en) | 2022-09-08 | 2022-09-08 | Middleware configuration method, device, server, medium and product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115580646B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115185550A (en) * | 2022-07-12 | 2022-10-14 | 平安资产管理有限责任公司 | Service deployment method, device, computer equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107463418B (en) * | 2017-09-12 | 2020-11-13 | 北京宝兰德软件股份有限公司 | Configuration file generation method and device for server middleware |
CN112804097B (en) * | 2021-01-04 | 2023-06-27 | 北京金山云网络技术有限公司 | Private cloud deployment method, device and server |
CN113419747B (en) * | 2021-06-22 | 2023-11-28 | 康键信息技术(深圳)有限公司 | Middleware deployment method, device, equipment and storage medium |
CN114217887A (en) * | 2021-12-20 | 2022-03-22 | 平安付科技服务有限公司 | Microservice orchestration method, execution method, device and server |
-
2022
- 2022-09-08 CN CN202211093076.4A patent/CN115580646B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115185550A (en) * | 2022-07-12 | 2022-10-14 | 平安资产管理有限责任公司 | Service deployment method, device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115580646A (en) | 2023-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108037961B (en) | Application configuration method, device, server and storage medium | |
CN108279932B (en) | Method and device for dynamically configuring user interface of mobile terminal | |
US9582500B2 (en) | Run-time SQL language translation | |
CN102413022B (en) | Application debugging method and system | |
US9350610B2 (en) | System and method for configuration management service | |
US10142180B2 (en) | Method and system for providing unified configuration information to disparate system software components | |
US11016785B2 (en) | Method and system for mirror image package preparation and application operation | |
CN107526806A (en) | The conversion method and device of data | |
CN101499057A (en) | Electronic document generating system and method | |
CN113138781B (en) | CSV configuration updating method and storage medium | |
CN112769706B (en) | Componentized routing method and system | |
WO2022099913A1 (en) | Interface configuration method and apparatus, and device and medium | |
CN113742385A (en) | Data query method and device | |
CN115525396A (en) | Application management method and device based on cloud protogenesis | |
US12367014B2 (en) | Event consumption for high-level programing language platform | |
CN115580646B (en) | Middleware configuration method, device, server, medium and product | |
CN111338685A (en) | Common component configuration method, device, equipment and storage medium | |
CN113064698A (en) | Method for providing product environment and corresponding device, system, equipment and medium | |
CN113268232A (en) | Page skin generation method and device and computer readable storage medium | |
CN117675757A (en) | Background management method, device, equipment and medium of applet platform | |
CN110941471A (en) | Method and device for internationalizing basic data of software system | |
CN113626046B (en) | Container image update method, device, storage medium and computer equipment | |
CN114706655A (en) | Request processing method, computing device and computer storage medium | |
CN114610446A (en) | Method, device and system for automatically injecting probe | |
CN114047939A (en) | A data processing method and middleware |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |