CN115580646A - Middleware configuration method, device, server, medium and product - Google Patents

Middleware configuration method, device, server, medium and product Download PDF

Info

Publication number
CN115580646A
CN115580646A CN202211093076.4A CN202211093076A CN115580646A CN 115580646 A CN115580646 A CN 115580646A CN 202211093076 A CN202211093076 A CN 202211093076A CN 115580646 A CN115580646 A CN 115580646A
Authority
CN
China
Prior art keywords
middleware
configuration information
cloud service
service
parameter
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
CN202211093076.4A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211093076.4A priority Critical patent/CN115580646A/en
Publication of CN115580646A publication Critical patent/CN115580646A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (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 following steps: acquiring first middleware configuration information related to middleware configuration; the first middleware configuration information comprises parameter variables corresponding to the middleware; acquiring specific data of the parameter variables from a middleware service platform according to the parameter variables; performing data replacement processing on the first middleware configuration information according to the parameter variable specific data to generate second middleware configuration information; and establishing an association relation between the middleware and the cloud service according to the second middleware configuration information. The middleware configuration method enables the cloud service to use the middleware service, and solves the problem that the middleware service is difficult to use.

Description

Middleware configuration method, device, server, medium and product
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a middleware configuration method, apparatus, server, medium, and product.
Background
With the continuous development of network technology, cloud service is more and more widely applied. The cloud service can be arranged and constructed in an auxiliary mode through a plurality of tools, so that the efficiency of stages such as development, deployment and testing is improved. The service orchestration engine in the service orchestration engine server can realize functions such as pulling up middleware services. According to the cloud service arrangement file, the service arrangement engine can automatically construct a cloud service into an image from a source code in one key, and then the image is deployed to a Kubernets cluster to become an available cloud service.
When the cloud service needs to rely on other middleware such as mysql database (relational database) and Redis (Chinese: remote Dictionary service) cache, the service orchestration engine needs to deploy the middleware service to a Kubernets cluster where the cloud service is located in the process of configuring the middleware, and the service of the middleware is used through a DNS (Domain Name System, chinese: domain Name System) service mechanism of the Kubernets cluster.
However, at present, middleware is generally provided by a middleware service platform and is not deployed in the same kubernets cluster with cloud services, so that the middleware service is difficult to use. Therefore, a new middleware configuration method is needed to associate the cloud service with the middleware service, and overcome the problem of difficulty in using the middleware service.
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 the existing middleware is generally provided by a middleware service platform and cannot be deployed in the same Kubernets cluster with cloud service, so that the middleware service is difficult to use.
The first aspect of the present invention provides a middleware configuration method, applied to a service orchestration engine server, where the method includes:
acquiring first middleware configuration information related to middleware configuration; the first middleware configuration information comprises parameter variables corresponding to the middleware;
acquiring specific data of the parameter variables from a middleware service platform according to the parameter variables;
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 an association relation between the middleware and the cloud service according to the second middleware configuration information.
Further, the method as described above, the obtaining first middleware configuration information related to the middleware configuration includes:
acquiring a corresponding cloud service arrangement file from a cloud service construction platform;
and analyzing the cloud service arrangement file by adopting an SnakeYaml analyzer to determine the configuration information of the first middleware.
Further, the method for acquiring parameter variable specific data from the middleware service platform according to the parameter variable includes:
sending a middleware creating 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 described above, the data format of the parameter variable in the first middleware configuration information is a placeholder; the parameter variable specific data comprises: parameter variable identification and parameter variable specific numerical value;
the performing data replacement processing on the first middleware configuration information according to the specific parameter variable data to generate second middleware configuration information includes:
determining a placeholder of the corresponding parameter variable in the first middleware configuration information according to the parameter variable identifier;
and replacing the placeholder corresponding to the parameter variable with the identifier corresponding to the parameter variable and the specific numerical value of the parameter variable to generate second middleware configuration information.
Further, the method as described above, the building 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 the cloud service;
the application subfiles are arranged in a corresponding application directory of the cloud service arrangement file;
determining the application subfile as a corresponding starting subfile of the cloud service so as to construct an association relation between the middleware and the cloud service; the starting sub-file is a file which needs to be executed when the cloud service starting process is executed.
Further, as described above in the method, the cloud service orchestration file includes environment variable information of the cloud service;
the establishing of 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;
determining 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 relation between the middleware and the cloud service; the starting parameters are parameters required to be executed when the cloud service starting process is executed.
Further, the method as described above, the building an association relationship between the middleware and the cloud service according to the second middleware configuration information includes:
storing the second middleware configuration information into a preset configuration center database to construct an association relation 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 second aspect of the present invention provides a middleware configuration apparatus, located in a service orchestration engine server, the apparatus including:
the first acquisition module is used for acquiring first middleware configuration information related to the middleware configuration; the first middleware configuration information comprises parameter variables corresponding to the middleware;
the second acquisition module is used for acquiring specific data of the parameter variables from the middleware service platform according to the parameter variables;
the generating 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 building module is used for building an incidence relation between the middleware and the cloud service according to the second middleware configuration information.
Further, in the apparatus described above, the first obtaining module is specifically configured to:
acquiring a corresponding cloud service arrangement file from a cloud service construction platform; and analyzing the cloud service arrangement file by adopting an SnakeYaml analyzer to determine the configuration information of the first middleware.
Further, in the apparatus described above, the second obtaining module is specifically configured to:
sending a middleware creating 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 establishment application.
Further, the apparatus as described above, the data format of the parameter variable in the first middleware configuration information is a placeholder; the parameter variable specific data comprises: parameter variable identification and parameter variable specific numerical value;
the generation module is specifically configured to:
determining placeholders of corresponding parameter variables in the first middleware configuration information according to the parameter variable identifiers; and replacing the placeholder corresponding to the parameter variable with the identifier corresponding to the parameter variable and the specific numerical value of the parameter variable to generate second middleware configuration information.
Further, in the apparatus as described above, the building module is specifically configured to:
converting the second middleware configuration information into an application subfile corresponding to the cloud service; the application subfiles are arranged in a corresponding application directory of the cloud service arrangement file; determining the application subfile as a corresponding starting subfile of the cloud service so as to construct an association relation between the middleware and the cloud service; the starting sub-file is a file which needs to be executed when the cloud service starting process is executed.
Further, the apparatus as described above, the cloud service orchestration file includes environment variable information of the cloud service;
the building module is specifically configured to:
converting the second middleware configuration information into the environment variable information; 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 incidence relation between the middleware and the cloud service; the starting parameters are parameters required to be executed when the cloud service starting process is executed.
Further, in the apparatus as described above, the building module is specifically configured to:
storing the second middleware configuration information into a preset configuration center database to construct an incidence relation 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.
A third aspect of the present invention provides a service orchestration engine server, comprising: a processor, a memory, and a transceiver;
the processor, the memory, and the transceiver circuitry are interconnected;
the memory stores computer-executable instructions; the transceiver is used for transceiving data;
the processor executes computer-executable instructions stored by the memory to implement the middleware configuration method according to any one of the first aspect.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the middleware configuration method according to any one of the first aspect when the computer-executable instructions are 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 one of the first aspects.
The invention provides a middleware configuration method, a device, a server, a medium and a product, wherein the method comprises the following steps: acquiring first middleware configuration information related to middleware configuration; the first middleware configuration information comprises parameter variables corresponding to the middleware; acquiring specific data of the parameter variables from a middleware service platform according to the parameter variables; performing data replacement processing on the first middleware configuration information according to the parameter variable specific data to generate second middleware configuration information; and establishing an association relation between the middleware and the cloud service according to the second middleware configuration information. The middleware configuration method acquires parameter variable specific data from the middleware service platform through the parameter variable of the first middleware configuration information, and performs data replacement processing on the first middleware configuration information according to the parameter variable specific data to generate second middleware configuration information. The second middleware configuration information is from the middleware service platform, so that the incidence relation between the middleware and the cloud service can be established according to the second middleware configuration information, 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 that can implement an embodiment of the present invention;
FIG. 2 is a first flowchart illustrating a middleware configuration method according to the present invention;
FIG. 3 is a second flowchart illustrating a middleware configuration method according to the present invention;
FIG. 4 is a schematic overall flowchart of a middleware configuration method according to the present invention;
FIG. 5 is a schematic structural diagram of a middleware configuration apparatus provided in the present invention;
FIG. 6 is a schematic diagram of a service orchestration engine server according to the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In the technical scheme of the embodiment of the invention, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated 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, a detailed description of the prior art solutions is first provided. At present, when a service orchestration engine configures middleware, the middleware service is deployed in a namespace of a kubernets cluster where a cloud service is located, and names of the middleware services specified in a cloud service orchestration file are used. When the cloud service is started, a DNS service mechanism of a Kubernetes cluster is used, so that the cloud service can correctly use the middleware service. When the middleware service and the cloud service are deployed in the same kubernets cluster but in different deployment spaces, the similar method can be used as long as the names of the deployment spaces are known.
However, at present, middleware is generally provided by a middleware service platform and is not deployed in the same kubernets cluster with cloud services, so that the middleware service is difficult to use.
Therefore, the inventor finds that, in order to solve the problem in the prior art that the middleware is generally provided by a middleware service platform and cannot be deployed in the same kubernets cluster with cloud services, and the middleware service is difficult to use, the configuration information for calling the middleware is associated with the cloud service construction, so that the cloud service can use the middleware service.
Specifically, first, parameter variable specific data is acquired from the middleware service platform through a parameter variable of first middleware configuration information related to the 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. The second middleware configuration information is from the middleware service platform, so that the incidence relation between the middleware and the cloud service can be established according to the second middleware configuration information, the cloud service can use the middleware service after the establishment is completed, and the problem that the middleware service is difficult to use is solved.
The inventor proposes a technical scheme of the application based on the creative discovery.
An application scenario of the middleware configuration method provided in the embodiment of the present 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 scenario corresponding to the middleware configuration method provided by the embodiment of the invention comprises the following steps: a service orchestration engine server 1, an electronic device 2, and a middleware services platform 3. The service orchestration engine server 1 is provided with a service orchestration engine, and may be used to construct an association between a middleware and a cloud service. The electronic device 2 stores first middleware configuration information related to the middleware configuration, where the first middleware configuration information includes a parameter variable, a parameter variable format, and the like. The middleware service platform 3 stores middleware-related data, such as parameter variable specific data. The middleware of the embodiment may adopt mysql database, redis cache, and the like.
When the middleware configuration and the association between the middleware and the cloud service are required to be performed, the service orchestration engine server 1 acquires first middleware configuration information related to the middleware configuration from the electronic device 2, where the first middleware configuration information includes parameter variables corresponding to the middleware. Meanwhile, the service orchestration engine server 1 obtains the parameter variable specific data from the middleware service platform 3 according to the parameter variable, and the specific way may be that the middleware service platform 3 sends the parameter variable specific data to the service orchestration engine server 1. Then, 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 an association relation 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 can use the middleware service.
The embodiments of the present invention will be described with reference to the drawings.
Fig. 2 is a first schematic flowchart of a middleware configuration method provided by the present invention, and as shown in fig. 2, an execution main body in an embodiment of the present invention is a middleware configuration device, and the middleware configuration device may be integrated in a service orchestration engine server, or may be set in other electronic devices, and executes a flow in a manner of invoking a service orchestration engine. The middleware configuration method provided by this embodiment includes the following steps:
step S101, acquiring first middleware configuration information related to middleware configuration. The first middleware configuration information includes 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 arrangement file. The cloud service orchestration file generally includes all relevant data constructed by the cloud service, 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 a string in placeholder form), parameter variable names, keyword characters, and the like.
The service orchestration engine in this embodiment is an automation engine of a cloud native service, and is an automation engine that automatically completes functions of continuous integration, continuous deployment, middleware service pull-up, and the like for one cloud service. The service arranging engine server is provided with a service arranging engine.
And S102, acquiring specific data of the parameter variables from the middleware service platform according to the parameter variables.
In this embodiment, the parameter variable 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 a middleware service platform of any enterprise and is used for providing middleware services.
The obtained specific data of the parameter variables correspond to the parameter variables, for example, the name of the middleware user can be a specific name, and the internet protocol address is an address capable of calling the middleware data.
And step S103, performing data replacement processing on the first middleware configuration information according to the parameter variable specific data to generate second middleware configuration information.
In this embodiment, the parameter variable specific data may replace a parameter variable corresponding position in the first middleware configuration information, thereby completing the first middleware configuration information and generating second middleware configuration information having the parameter variable specific data.
And step S104, establishing an association relation 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 calling the middleware service, so that the cloud service may use the middleware service. There are various ways to construct the association relationship between the middleware and the cloud service, for example, an application file may be generated according to the second middleware configuration information, and the application file is hung in the corresponding directory of the cloud service arrangement file, and is specified to be started by the configuration file in the Java project start command, thereby implementing the association between the middleware and the cloud service. The second middleware configuration information can also 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 is started based on the configuration information, so that the correlation between the middleware and the cloud service is realized. The manner of constructing the association relationship between the middleware and the cloud service may also be other manners, which is not limited in this embodiment.
The embodiment of the invention provides a middleware configuration method, which comprises the following steps: first middleware configuration information related to middleware configuration is obtained. The first middleware configuration information includes parameter variables corresponding to the middleware. And acquiring specific data of the parameter variables from the middleware service platform according to the parameter variables. And 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 an association relation between the middleware and the cloud service according to the second middleware configuration information.
The middleware configuration method acquires the specific data of the parameter variable from the middleware service platform through the parameter variable of the first middleware configuration information, and performs data replacement processing on the first middleware configuration information according to the specific data of the parameter variable so as to generate the second middleware configuration information. The second middleware configuration information is from the middleware service platform, so that the association relation between the middleware and the cloud service can be established according to the second middleware configuration information, 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 schematic flowchart of the middleware configuration method provided in the present invention, and as shown in fig. 3, the middleware configuration method provided in this embodiment is further refined on the basis of the middleware configuration method provided in the previous embodiment of the present invention. The middleware configuration method provided by the present embodiment includes the following steps.
Step S201, acquiring 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 the cloud service, and may also generate a cloud service arrangement file corresponding to the constructed cloud service. The cloud service arrangement file comprises relevant data of the whole process of the cloud service. All data of the cloud service pre-constructed at this time, such as the type of middleware, the type of cloud service, the type of application and the like which need to be used, can be predetermined through the cloud service construction platform.
Step S202, a SnakeYaml analyzer is adopted to analyze the cloud service arrangement file so as to determine first middleware configuration information.
In this embodiment, the SnakeYaml parser is a parsing tool for parsing Yaml (english Language is called Yaml Ain' ta Markup Language), and the cloud service layout file may be a Yaml file. By adopting the SnakeYaml analyzer, the analysis effect and the analysis efficiency of the cloud service arrangement file can be improved, so that the configuration information of the first middleware in the cloud service arrangement file can be determined more efficiently.
And step S203, sending a middleware creation application to the middleware service platform according to the parameter variable.
In this embodiment, a middleware creating application may be sent to the middleware service platform according to the parameter variable, where the creating application corresponds to the parameter variable. For example, if the type of the required middleware is the mysql database, the parameter variable is a variable corresponding to the mysql database, and thus a middleware creating application corresponding to the mysql database is generated.
The middleware creating application can automatically apply for creating the middleware service to the middleware service platform through a restful remote calling technology, wherein the restful is a design style and a development mode of a network application program. Meanwhile, the efficiency of the middleware creating application is improved. After the application, the service orchestration engine server can continuously determine the creation state of the middleware service, so as to receive the specific data of the parameter variable returned by the middleware service platform according to the middleware creation application more quickly, and improve the overall efficiency of the middleware configuration.
And step S204, receiving parameter variable specific data returned by the middleware service platform according to the middleware establishment application.
In this embodiment, when the middleware service platform receives a middleware creation application, for example, a middleware creation application corresponding to the mysql database is received, the middleware creation application is analyzed to determine a middleware service type to be created. When the middleware service type is determined to be the mysql database, creating the middleware service of the mysql database, and sending specific data of parameter variables corresponding to the mysql database, such as IP addresses (all English is called as Internet Protocol addresses, and Chinese is Internet Protocol addresses) and port information, to the service orchestration engine server after the creation is completed, 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, determining a placeholder corresponding to the parameter variable in the first middleware configuration information according to the parameter variable identifier. The parameter variable specific data comprises: parameter variable identification and parameter variable specific numerical value.
In this embodiment, the parameter variables in the first middleware configuration information are placed in the character string in the form of placeholders, and the parameter variables at this time occupy the positions of the character string, but have only a defining function and do not have an actual function. And the position of the placeholder corresponding to the parameter variable can be determined according to the parameter variable identifier, so that a basis is provided for a subsequent parameter variable specific data replacement process.
Step S206, replacing the placeholder corresponding to the parameter variable with the identifier corresponding to the parameter variable and the specific numerical value of the parameter variable to generate second middleware configuration information.
In this embodiment, the relevant information of the middleware service may be determined by the second middleware configuration information, so that the cloud service may use the middleware service after the association relationship with the cloud service is established.
Step S207, constructing an association relation between the middleware and the cloud service according to the second middleware configuration information.
The implementation manner of step 207 is similar to that of step 104 in the previous embodiment of the present invention, and is not described herein again.
There may be various specific ways of constructing the association relationship between the middleware and the cloud service according to the second middleware configuration information, and this embodiment is exemplified by the following three ways:
optionally, the first mode is:
and converting the second middleware configuration information into an application subfile corresponding to the cloud service.
And the application subfiles are arranged under the corresponding application directory of the cloud service arrangement file.
And determining the application subfile as a corresponding sub-file of the cloud service so as to construct an association relation between the middleware and the cloud service. The starting subfile is a file which needs to be executed when the cloud service starting process is executed.
In the first mode, the second middleware configuration information is arranged in the corresponding application directory of the cloud service arrangement file and becomes a starting subfile corresponding to 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 sub-file corresponding to the second middleware configuration information is executed, so that the middleware service can be called through the sub-file. If the programming language is Java, the starting of the Java project starting command by the starting sub-file can be specified, so that the cloud service can use the middleware service during starting.
Optionally, the second method is to arrange the environment variable information of the cloud service included in the file by using the cloud service.
The second way is:
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 the starting parameters corresponding to the cloud service so as to construct the 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 in the second mode, the second middleware configuration information is converted into environment variable information, the environment variable information is stored into the environment variable information of the cloud service, and the environment variable is used 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 parameter is executed. If the writing language is Java, the process of determining the environment variable information corresponding to the second middleware configuration information as the start parameter corresponding to the cloud service may further be to designate the environment variable as the start parameter in a Java project start command.
The second way stores the second middleware configuration information into the environment variable information, and since the environment variable information is the information originally possessed by the cloud service, the cloud service can be used for the middleware service without influencing the data layout of the cloud service.
Optionally, the third method may use a preset configuration center database to manage all configuration data.
The third mode is as follows:
and storing the second middleware configuration information into a preset configuration center database to establish an association relation 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.
Since the preset configuration center database stores the configuration information to be executed during the cloud service starting process, after the second middleware configuration information is stored in the preset configuration center database, the cloud service can obtain the configuration information from the preset configuration center database during starting so as to start the cloud service. 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 according to this embodiment, the service orchestration engine server firstly parses the cloud service orchestration file to obtain first intermediate configuration information and parameter variables included in the first intermediate configuration information. And the service arranging engine server applies for creating the middleware to the middleware service platform according to the parameter variable, and receives parameter variable specific data returned by the middleware service platform after the middleware service platform completes creation. And then the service arrangement engine server carries out data replacement according to the specific data of the parameter variables and the placeholders for recording the parameter variables in the first middleware configuration information to generate 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 apparatus provided in the present invention, and as shown in fig. 5, in this embodiment, the middleware configuration apparatus 300 may be disposed in a service orchestration engine server, and the middleware configuration apparatus 300 includes:
a first obtaining module 301, configured to obtain first middleware configuration information related to middleware configuration. The first middleware configuration information includes parameter variables corresponding to the middleware.
A second obtaining module 302, configured to obtain specific data of the parameter variable from the middleware service platform according to the parameter variable.
The generating module 303 is configured to perform data replacement processing on the first middleware configuration information according to the parameter variable specific data to generate second middleware configuration information.
A building module 304, configured to build an association relationship between the middleware and the cloud service according to the second middleware configuration information.
The middleware configuration apparatus provided in this embodiment may execute the technical solution of the method embodiment shown in fig. 2, and the implementation principle and technical effect of the middleware configuration apparatus are similar to those of the method embodiment shown in fig. 2, which are not described in detail herein.
The middleware allocation device provided by the present invention is further refined on the basis of the middleware allocation device provided in the previous embodiment, and the details are as follows.
Optionally, in this embodiment, the first obtaining module 301 is specifically configured to:
and acquiring a corresponding cloud service arrangement file from the cloud service construction platform. And analyzing the cloud service arrangement file by adopting an SnakeYaml analyzer to determine the configuration information of the first middleware.
Optionally, in this embodiment, the second obtaining module 302 is specifically configured to:
and sending a middleware creating application to the middleware service platform according to the parameter variable. And receiving parameter variable specific data returned by the middleware service platform according to the middleware establishment application.
Optionally, in this embodiment, the data format of the parameter variable in the first middleware configuration information is a placeholder. The parameter variable specific data comprises: parameter variable identification and parameter variable specific numerical value.
The generating module 303 is specifically configured to:
and determining placeholders corresponding to the parameter variables in the first middleware configuration information according to the parameter variable identifications. And replacing the placeholder corresponding to the parameter variable with the corresponding parameter variable identifier and the specific numerical value of the parameter variable 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 subfile corresponding to the cloud service. And compiling the application subfiles in the corresponding application directory of the cloud service layout file. And determining the application subfile as a starting subfile corresponding to the cloud service so as to construct an association relation between the middleware and the cloud service. The starting subfile is a file which needs to be executed when the cloud service starting process is executed.
Optionally, in this embodiment, the cloud service orchestration file includes environment variable information of the cloud service.
The building block 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 the starting parameters corresponding to the cloud service so as to construct the 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 establish an association relation 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 apparatus provided in this embodiment may execute the technical solution of the method embodiments shown in fig. 2 to fig. 4, and the implementation principle and the technical effect thereof are similar to those of the method embodiments shown in fig. 2 to fig. 4, and are not described in detail herein.
The invention also provides an electronic device, a computer readable storage medium and a computer program product according to the embodiments of the invention.
As shown in fig. 6, fig. 6 is a schematic structural diagram of a service orchestration engine server provided by the present invention. The service orchestration engine server is intended for various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, blade servers, mainframes, and other suitable 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 for execution within the electronic device. The transceiver 403 is used for receiving or transmitting data, such as parameter templates, parameters, parameter filling strategies, and the like.
The 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, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the middleware configuration method in the embodiment of the present invention (for example, the first obtaining module 301, the second obtaining module 302, the generating module 303, and the building module 304 shown in fig. 5). The processor 401 executes various functional applications and data processing of the electronic device, 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, and when instructions in the computer product are executed by a processor of the electronic device, the electronic device is enabled to execute the middleware configuration method of the above embodiment.
Other embodiments 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 application is intended to cover any variations, uses, or adaptations of the 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 will be understood that the embodiments of the invention are not limited to the precise arrangements that have been described above and shown in the drawings, 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 (11)

1. A middleware configuration method applied to a service orchestration engine server, the method comprising:
acquiring first middleware configuration information related to middleware configuration; the first middleware configuration information comprises parameter variables corresponding to the middleware;
acquiring specific data of the parameter variables from a middleware service platform according to the parameter variables;
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 an association relation between the middleware and the cloud service according to the second middleware configuration information.
2. The method of claim 1, wherein obtaining first middleware configuration information related to middleware configuration comprises:
acquiring a corresponding cloud service arrangement file from a cloud service construction platform;
and analyzing the cloud service arrangement file by adopting a SnakeYaml analyzer to determine the configuration information of the first middleware.
3. The method according to claim 1 or 2, wherein the obtaining parameter variable specific data from the middleware service platform according to the parameter variable comprises:
sending a middleware creating 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.
4. The method according to claim 3, wherein the data format of the parameter variable in the first middleware configuration information is a placeholder; the parameter variable specific data comprises: parameter variable identification and parameter variable specific numerical value;
the performing data replacement processing on the first middleware configuration information according to the specific parameter variable data to generate second middleware configuration information includes:
determining placeholders of corresponding parameter variables in the first middleware configuration information according to the parameter variable identifiers;
replacing the placeholder corresponding to the parameter variable with the corresponding parameter variable identifier and the specific numerical value of the parameter variable to generate second middleware configuration information.
5. The method according to claim 3, wherein the building of the association relationship between the middleware and the cloud service according to the second middleware configuration information comprises:
converting the second middleware configuration information into an application subfile corresponding to the cloud service;
the application subfiles are arranged in a corresponding application directory of the cloud service arrangement file;
determining the application subfile as a corresponding starting subfile of the cloud service so as to construct an association relation between the middleware and the cloud service; the starting subfile is a file which needs to be executed when the cloud service starting process is executed.
6. The method of claim 3, wherein the cloud service orchestration file comprises environment variable information for the cloud service;
the establishing of 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;
determining 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 relation between the middleware and the cloud service; the starting parameters are parameters required to be executed when the cloud service starting process is executed.
7. The method according to claim 3, wherein the building an association relationship between the middleware and the cloud service according to the second middleware configuration information comprises:
storing the second middleware configuration information into a preset configuration center database to construct an incidence relation 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.
8. A middleware configuration apparatus at a service orchestration engine server, the apparatus comprising:
the first acquisition module is used for acquiring first middleware configuration information related to the middleware configuration; the first middleware configuration information comprises parameter variables corresponding to the middleware;
the second acquisition module is used for acquiring specific data of the parameter variables from the middleware service platform according to the parameter variables;
the generating 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 building module is used for building an association relation between the middleware and the cloud service according to the second middleware configuration information.
9. A service orchestration engine server, comprising: a processor, a memory, and a transceiver;
the processor, the memory, and the transceiver circuitry are interconnected;
the memory stores computer-executable instructions; the transceiver is used for transceiving data;
the processor executes computer-executable instructions stored by the memory to implement the middleware configuration method of any one of claims 1 to 7.
10. A computer-readable storage medium having stored therein computer-executable instructions for implementing the middleware configuration method of any one of claims 1 to 7 when executed by a processor.
11. A computer program product comprising a computer program, characterized in that the computer program realizes the middleware configuration method according to any one of claims 1 to 7 when executed by a processor.
CN202211093076.4A 2022-09-08 2022-09-08 Middleware configuration method, device, server, medium and product Pending CN115580646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211093076.4A CN115580646A (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 CN115580646A (en) 2022-09-08 2022-09-08 Middleware configuration method, device, server, medium and product

Publications (1)

Publication Number Publication Date
CN115580646A true CN115580646A (en) 2023-01-06

Family

ID=84582052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211093076.4A Pending CN115580646A (en) 2022-09-08 2022-09-08 Middleware configuration method, device, server, medium and product

Country Status (1)

Country Link
CN (1) CN115580646A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463418A (en) * 2017-09-12 2017-12-12 北京宝兰德软件股份有限公司 The configuration file generation method and device of a kind of server middleware
CN112804097A (en) * 2021-01-04 2021-05-14 北京金山云网络技术有限公司 Private cloud deployment method and device and server
CN113419747A (en) * 2021-06-22 2021-09-21 康键信息技术(深圳)有限公司 Middleware deployment method, device, equipment and storage medium
CN114217887A (en) * 2021-12-20 2022-03-22 平安付科技服务有限公司 Micro-service arranging method, micro-service executing method, micro-service arranging device and micro-service executing server
CN115185550A (en) * 2022-07-12 2022-10-14 平安资产管理有限责任公司 Service deployment method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463418A (en) * 2017-09-12 2017-12-12 北京宝兰德软件股份有限公司 The configuration file generation method and device of a kind of server middleware
CN112804097A (en) * 2021-01-04 2021-05-14 北京金山云网络技术有限公司 Private cloud deployment method and device and server
CN113419747A (en) * 2021-06-22 2021-09-21 康键信息技术(深圳)有限公司 Middleware deployment method, device, equipment and storage medium
CN114217887A (en) * 2021-12-20 2022-03-22 平安付科技服务有限公司 Micro-service arranging method, micro-service executing method, micro-service arranging device and micro-service executing server
CN115185550A (en) * 2022-07-12 2022-10-14 平安资产管理有限责任公司 Service deployment method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108037961B (en) Application program configuration method, device, server and storage medium
CN111596965B (en) Project engineering initialization method, device, computer equipment and storage medium
CN110324169B (en) Interface management method and device
CN110276074B (en) Distributed training method, device, equipment and storage medium for natural language processing
CN111767704B (en) Excel form template generation method and device
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
CN114465937A (en) Network card testing method, device, server, medium, and computer program product
CN108804100B (en) Method and device for creating interface element, storage medium and mobile terminal
CN116301951B (en) Micro-service application installation upgrading method and device based on kubernetes
CN113064625A (en) Method, device, equipment and medium for upgrading BIOS outside band
CN112769706A (en) Componentized routing method and system
CN115525396A (en) Application management method and device based on cloud protogenesis
CN113839992B (en) Equipment control method and device
CN111930625B (en) Log acquisition method, device and system based on cloud service platform
WO2024041035A1 (en) Machine learning model management method and device, model management platform, and storage medium
CN111488286B (en) Method and device for independently developing Android modules
CN111506309B (en) Task execution method and system, and computer-readable storage medium
CN108370329B (en) Management method and device for management function object
CN112131230A (en) Application software as a service (SaaS) realization method, device, equipment and storage medium
CN114610446B (en) Method, device and system for automatically injecting probe
CN110941471A (en) Method and device for internationalizing basic data of software system
CN115580646A (en) Middleware configuration method, device, server, medium and product
CN113268232A (en) Page skin generation method and device and computer readable storage medium
CN111338685A (en) Common component configuration method, device, equipment and storage medium
CN113742385A (en) Data query method and device

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