Middleware configuration methods, devices, servers, media and products

By obtaining and replacing middleware configuration information, the relationship between middleware and cloud services is built, and the use problem caused by the middleware and cloud services is not in the same Kubernetes cluster is solved, and the effective association and use of cloud services and middleware is realized.

CN115580646BActive Publication Date: 2024-12-20CHINA CONSTRUCTION BANK +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202211093076.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-08
Publication Date
2024-12-20
Estimated Expiration
2042-09-08

AI Technical Summary

Technical Problem

In the prior art, middleware is generally provided by middleware service platforms and will not be deployed in the same Kubernetes cluster as cloud services, making it difficult to use middleware services.

Method used

By obtaining parameter variables related to middleware configuration, obtaining specific data from the middleware service platform, data replacement processing is performed on the middleware configuration information, generating new middleware configuration information, and building an association relationship between middleware and cloud services. Enable cloud services to use middleware services.

Benefits of technology

The relationship between middleware and cloud services is realized, the problem of difficulty in using middleware services is overcome, and the cloud services can use middleware services normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115580646B_ABST
    Figure CN115580646B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of data processing technology, and specifically provides a middleware configuration method, device, server, medium and product, the method comprising: obtaining first middleware configuration information related to the middleware configuration; the first middleware configuration information includes parameter variables corresponding to the middleware; obtaining parameter variable specific data from the 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 relationship between the middleware and the cloud service according to the second middleware configuration information. The middleware configuration method of the present invention enables the cloud service to use the middleware service, overcoming the problem of difficulty in using the middleware service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a middleware configuration method, device, server, medium and product. Background Art

[0002] With the continuous development of network technology, cloud service applications are becoming more and more widespread. Cloud services can be orchestrated and built with the assistance of many tools to improve the efficiency of development, deployment, testing and other stages. Among them, the service orchestration engine in the service orchestration engine server can realize functions such as middleware service pull-up. According to the cloud service orchestration file, the service orchestration engine can automatically build a cloud service from source code into an image with one click, and then deploy the image to the Kubernetes cluster to become an available cloud service.

[0003] When this cloud service needs to rely on other middleware such as MySQL database (relational database) and Redis (full name in English: Remote Dictionary Server, Chinese: Remote Dictionary Service) cache, the service orchestration engine needs to deploy the middleware service to the Kubernetes cluster where the cloud service is located during the process of configuring the middleware, and use the middleware service through the DNS (full name in English: Domain Name System, Chinese: Domain Name System) service mechanism of the Kubernetes cluster.

[0004] However, currently middleware is generally provided by the middleware service platform and is not deployed in the same Kubernetes cluster as the cloud service, making it difficult to use the middleware service. 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. Summary of the invention

[0005] The present invention provides a middleware configuration method, device, server, medium and product to solve the problem that the current middleware is generally provided by a middleware service platform and is not deployed in the same Kubernetes cluster as the cloud service, making it difficult to use the middleware service.

[0006] A first aspect of the present invention provides a middleware configuration method, which is applied to a service orchestration engine server, and the method comprises:

[0007] Acquire first middleware configuration information related to the middleware configuration; the first middleware configuration information includes parameter variables corresponding to the middleware;

[0008] Acquire specific data of parameter variables from the middleware service platform according to the parameter variables;

[0009] Performing data replacement processing on the first middleware configuration information according to the specific data of the parameter variable to generate second middleware configuration information;

[0010] An association relationship between the middleware and the cloud service is established according to the second middleware configuration information.

[0011] Furthermore, in the above method, the step of obtaining the first middleware configuration information related to the middleware configuration includes:

[0012] Obtain the corresponding cloud service orchestration file from the cloud service construction platform;

[0013] The cloud service orchestration file is parsed using a SnakeYaml parser to determine the first middleware configuration information.

[0014] Furthermore, in the above method, the step of obtaining specific data of parameter variables from the middleware service platform according to the parameter variables includes:

[0015] Sending a middleware creation application to the middleware service platform according to the parameter variables;

[0016] Receive the specific data of parameter variables returned by the middleware service platform according to the middleware creation application.

[0017] Furthermore, in the method described above, the data format of the parameter variable in the first middleware configuration information is a placeholder; the specific data of the parameter variable includes: a parameter variable identifier and a specific value of the parameter variable;

[0018] The performing data replacement processing on the first middleware configuration information according to the specific data of the parameter variable to generate the second middleware configuration information includes:

[0019] Determine, according to the parameter variable identifier, a placeholder for a corresponding parameter variable in the first middleware configuration information;

[0020] The placeholder of the corresponding parameter variable is replaced with the corresponding parameter variable identifier and the specific value of the parameter variable to generate the second middleware configuration information.

[0021] Furthermore, in the above method, the step of building an association relationship between the middleware and the cloud service according to the second middleware configuration information includes:

[0022] Converting the second middleware configuration information into an application subfile corresponding to the cloud service;

[0023] Arrange the application sub-file in the corresponding application directory of the cloud service arrangement file;

[0024] The application sub-file is determined as the startup sub-file corresponding to the cloud service to establish an association relationship between the middleware and the cloud service; the startup sub-file is a file that needs to be executed when executing the cloud service startup process.

[0025] Further, in the method described above, the cloud service orchestration file includes environment variable information of the cloud service;

[0026] The step of constructing an association relationship between the middleware and the cloud service according to the second middleware configuration information includes:

[0027] Converting the second middleware configuration information into the environment variable information;

[0028] The environment variable information corresponding to the second middleware configuration information is determined as the startup parameter corresponding to the cloud service to establish an association relationship between the middleware and the cloud service; the startup parameter is a parameter required to execute when executing the cloud service startup process.

[0029] Furthermore, in the above method, the step of building an association relationship between the middleware and the cloud service according to the second middleware configuration information includes:

[0030] The second middleware configuration information is stored in a preset configuration center database to establish an association relationship between the middleware and the cloud service; the preset configuration center database is used to store the configuration information required to be executed when executing the cloud service startup process.

[0031] A second aspect of the present invention provides a middleware configuration device located in a service orchestration engine server, the device comprising:

[0032] A first acquisition module, used to acquire first middleware configuration information related to the middleware configuration; the first middleware configuration information includes parameter variables corresponding to the middleware;

[0033] A second acquisition module, used for acquiring specific data of parameter variables from the middleware service platform according to the parameter variables;

[0034] A generating module, configured to perform data replacement processing on the first middleware configuration information according to the specific data of the parameter variable to generate second middleware configuration information;

[0035] A construction module is used to construct an association relationship between the middleware and the cloud service according to the second middleware configuration information.

[0036] Furthermore, in the above device, the first acquisition module is specifically used for:

[0037] Obtain a corresponding cloud service orchestration file from a cloud service construction platform; and parse the cloud service orchestration file using a SnakeYaml parser to determine the first middleware configuration information.

[0038] Further, in the above device, the second acquisition module is specifically used for:

[0039] Sending a middleware creation application to the middleware service platform according to the parameter variables; and receiving specific data of the parameter variables returned by the middleware service platform according to the middleware creation application.

[0040] Furthermore, in the above-mentioned device, the data format of the parameter variable in the first middleware configuration information is a placeholder; the specific data of the parameter variable includes: a parameter variable identifier and a specific value of the parameter variable;

[0041] The generating module is specifically used for:

[0042] Determine the placeholder of the corresponding parameter variable in the first middleware configuration information according to the parameter variable identifier; replace the placeholder of the corresponding parameter variable with the corresponding parameter variable identifier and the specific value of the parameter variable to generate the second middleware configuration information.

[0043] Furthermore, in the above device, the building block is specifically used for:

[0044] Convert the second middleware configuration information into an application sub-file corresponding to the cloud service; arrange the application sub-file in the corresponding application directory of the cloud service arrangement file; determine the application sub-file as the startup sub-file corresponding to the cloud service to establish an association relationship between the middleware and the cloud service; the startup sub-file is a file that needs to be executed when executing the cloud service startup process.

[0045] Further, in the apparatus as described above, the cloud service orchestration file includes environment variable information of the cloud service;

[0046] The building blocks are specifically used for:

[0047] The second middleware configuration information is converted into the environment variable information; the environment variable information corresponding to the second middleware configuration information is determined as the startup parameter corresponding to the cloud service to establish an association relationship between the middleware and the cloud service; the startup parameter is the parameter required to execute when executing the cloud service startup process.

[0048] Furthermore, in the above device, the building block is specifically used for:

[0049] The second middleware configuration information is stored in a preset configuration center database to establish an association relationship between the middleware and the cloud service; the preset configuration center database is used to store the configuration information required to be executed when executing the cloud service startup process.

[0050] A third aspect of the present invention provides a service orchestration engine server, comprising: a processor, a memory and a transceiver;

[0051] The processor, the memory and the transceiver circuit are interconnected;

[0052] The memory stores computer-executable instructions; the transceiver is used to send and receive data;

[0053] The processor executes the computer-executable instructions stored in the memory to implement the middleware configuration method as described in any one of the first aspects.

[0054] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the middleware configuration method described in any one of the first aspects.

[0055] A fifth aspect of the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the middleware configuration method described in any one of the first aspects.

[0056] The present invention provides a middleware configuration method, device, server, medium and product, the method comprising: obtaining first middleware configuration information related to the middleware configuration; the first middleware configuration information includes parameter variables corresponding to the middleware; obtaining specific data of the parameter variables from the middleware service platform according to the parameter variables; performing data replacement processing on the first middleware configuration information according to the specific data of the parameter variables to generate second middleware configuration information; and building an association relationship between the middleware and the cloud service according to the second middleware configuration information. The middleware configuration method of the present invention obtains specific data of the parameter variables from the middleware service platform through the parameter variables 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 variables to generate the second middleware configuration information. Since the second middleware configuration information comes from the middleware service platform, the association relationship between the middleware and the cloud service can be built according to the second middleware configuration information, so that the cloud service can use the middleware service, overcoming the problem of difficulty in using the middleware service. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] 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.

[0058] Figure 1 A scene diagram of a middleware configuration method that can implement an embodiment of the present invention;

[0059] Figure 2 Schematic diagram of the process of the middleware configuration method provided by the present invention Figure 1 ;

[0060] Figure 3 Schematic diagram of the process of the middleware configuration method provided by the present invention Figure 2 ;

[0061] Figure 4 A schematic diagram of the overall process of the middleware configuration method provided by the present invention;

[0062] Figure 5 A schematic diagram of the structure of the middleware configuration device provided by the present invention;

[0063] Figure 6 A schematic diagram of the structure of the service orchestration engine server provided by the present invention.

[0064] The above drawings have shown clear embodiments of the present invention, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0065] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0066] In the technical solutions of the embodiments of the present invention, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0067] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0068] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail. At present, when the service orchestration engine configures the middleware, the middleware service will be deployed to the namespace of the Kubernetes cluster where the cloud service is located, and named using the name of the middleware service specified in the cloud service orchestration file. The mechanism of using the DNS service of the Kubernetes cluster when the cloud service is started enables the cloud service to use the middleware service correctly. When the middleware service and the cloud service are deployed in the same Kubernetes cluster but in different deployment spaces, a similar method as described above can be used as long as the name of the deployment space is known.

[0069] However, currently middleware is generally provided by the middleware service platform and is not deployed in the same Kubernetes cluster as the cloud service, making it difficult to use the middleware service.

[0070] Therefore, in view of the problem that in the prior art, middleware is generally provided by a middleware service platform and is not deployed in the same Kubernetes cluster as the cloud service, which makes it difficult to use the middleware service, the inventors have discovered in their research that in order to solve this problem, the configuration information for calling the middleware can be associated with the cloud service construction, so that the cloud service can use the middleware service.

[0071] Specifically, firstly, the parameter variable specific data is obtained from the middleware service platform through the parameter variable of the first middleware configuration information related to the middleware configuration, and the first middleware configuration information is subjected to data replacement processing according to the parameter variable specific data to generate the second middleware configuration information. Since the second middleware configuration information comes 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 after the construction is completed, the cloud service can use the middleware service, thereby overcoming the problem of difficulty in using the middleware service.

[0072] Based on the above creative findings, the inventor proposed the technical solution of the present application.

[0073] The following describes the application scenarios of the middleware configuration method provided by the embodiment of the present invention. Figure 1As shown, 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 in the embodiment of the present invention includes: a service orchestration engine server 1, an electronic device 2 and a middleware service platform 3. Among them, the service orchestration engine server 1 is provided with a service orchestration engine, which can be used to build an association between the middleware and the cloud service. The electronic device 2 stores the first middleware configuration information related to the middleware configuration, and the first middleware configuration information includes parameter variables, parameter variable formats, etc. The middleware service platform 3 stores data related to the middleware, such as specific data of parameter variables. The middleware of this embodiment can use mysql database, Redis cache, etc.

[0074] When it is necessary to configure the middleware and associate the middleware with the cloud service, the service orchestration engine server 1 obtains the first middleware configuration information related to the middleware configuration from the electronic device 2, wherein the first middleware configuration information includes the parameter variables corresponding to the middleware. At the same time, the service orchestration engine server 1 obtains the specific data of the parameter variables from the middleware service platform 3 according to the parameter variables, and the specific method can be that the middleware service platform 3 sends the specific data of the parameter variables to the service orchestration engine server 1. Afterwards, the service orchestration engine server 1 performs data replacement processing on the first middleware configuration information according to the specific data of the parameter variables to generate the second middleware configuration information. And, the association relationship between the middleware and the cloud service is established according to the second middleware configuration information. After the association relationship between the middleware and the cloud service is established, the cloud service can use the middleware service.

[0075] The embodiments of the present invention are described below in conjunction with the accompanying drawings.

[0076] Figure 2 Schematic diagram of the process of the middleware configuration method provided by the present invention Figure 1 ,like Figure 2 As shown, the execution subject of the embodiment of the present invention is a middleware configuration device, which can be integrated in the service orchestration engine server or set in other electronic devices to execute the process by calling the service orchestration engine. The middleware configuration method provided in this embodiment includes the following steps:

[0077] Step S101, obtaining first middleware configuration information related to middleware configuration. The first middleware configuration information includes parameter variables corresponding to the middleware.

[0078] In this embodiment, the acquisition method can be obtained from a database storing the first middleware configuration information, or from a cloud service orchestration file. The cloud service orchestration file generally includes all relevant data for cloud service construction, such as the first middleware configuration information related to the middleware configuration, the code warehouse address, cloud service process data, etc.

[0079] The first middleware configuration information may include parameter variables (placed in a character string in the form of placeholders), parameter variable names, keyword characters, and the like.

[0080] The service orchestration engine in this embodiment is an automation engine for cloud native services, which automatically completes continuous integration, continuous deployment, middleware service startup, etc. for a cloud service. A service orchestration engine is provided in a service orchestration engine server.

[0081] Step S102: Acquire specific data of the parameter variables from the middleware service platform according to the parameter variables.

[0082] In this embodiment, the parameter variables may include a middleware user name, a middleware user password, an Internet protocol address, a port, etc. The middleware service platform may be a middleware service platform of any enterprise, for providing middleware services.

[0083] The specific data of the parameter variables obtained correspond to the parameter variables, for example, the middleware user name can be a specific name, and the Internet Protocol address is an address that can call the middleware data.

[0084] Step S103: performing data replacement processing on the first middleware configuration information according to specific data of the parameter variable to generate second middleware configuration information.

[0085] In this embodiment, the parameter variable specific data can replace the corresponding position of the parameter variable in the first middleware configuration information, thereby improving the first middleware configuration information and generating the second middleware configuration information with the parameter variable specific data.

[0086] Step S104: construct an association relationship between the middleware and the cloud service according to the second middleware configuration information.

[0087] The second middleware configuration information can be used as the configuration information for calling the middleware service to be associated with the cloud service, so that the cloud service can use the middleware service. There are many ways to build the association relationship between the middleware and the cloud service. For example, an application file can be generated according to the second middleware configuration information, and it can be hung in the corresponding directory of the cloud service orchestration file. In the Java project startup command, it is specified to start with the configuration file, thereby realizing the association between the middleware and the cloud service. The second middleware configuration information can also be uploaded to the preset configuration center database corresponding to the service orchestration engine. At the same time, the cloud service is set to obtain the configuration information from the preset configuration center database, and start based on this, thereby realizing the association between the middleware and the cloud service. There can be other ways to build the association relationship between the middleware and the cloud service, and this embodiment does not limit this.

[0088] An embodiment of the present invention provides a middleware configuration method, the method comprising: obtaining first middleware configuration information related to the middleware configuration. The first middleware configuration information includes parameter variables corresponding to the middleware. According to the parameter variables, specific data of the parameter variables are obtained from the middleware service platform. According to the specific data of the parameter variables, data replacement processing is performed on the first middleware configuration information to generate second middleware configuration information. According to the second middleware configuration information, an association relationship between the middleware and the cloud service is established.

[0089] The middleware configuration method of the present invention obtains 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 the second middleware configuration information. Since the second middleware configuration information comes from the middleware service platform, the association relationship between the middleware and the cloud service can be established according to the second middleware configuration information, so that the cloud service can use the middleware service, thereby overcoming the problem of difficulty in using the middleware service.

[0090] Figure 3 Schematic diagram of the process of the middleware configuration method provided by the present invention Figure 2 ,like Figure 3 As shown, the middleware configuration method provided in this embodiment is a further refinement of the middleware configuration method provided in the previous embodiment of the present invention. The middleware configuration method provided in this embodiment includes the following steps.

[0091] Step S201, obtaining a corresponding cloud service orchestration file from a cloud service construction platform.

[0092] In this embodiment, the cloud service construction platform can be used to develop and test cloud services, and can also generate cloud service orchestration files corresponding to the construction of cloud services. The cloud service orchestration files include relevant data of the entire process of the cloud service. Through the cloud service construction platform, all data of the pre-built cloud service can be pre-determined, such as the type of middleware, cloud service type, application type, etc. to be used.

[0093] Step S202: Parse the cloud service orchestration file using the SnakeYaml parser to determine the first middleware configuration information.

[0094] In this embodiment, the SnakeYaml parser is a parsing tool for parsing Yaml (full name: YAML Ain'ta Markup Language) files, and the cloud service orchestration file can adopt Yaml files. The use of the SnakeYaml parser can improve the parsing effect and efficiency of the cloud service orchestration file, thereby more efficiently determining the first middleware configuration information in the cloud service orchestration file.

[0095] Step S203: sending a middleware creation application to the middleware service platform according to the parameter variables.

[0096] In this embodiment, a middleware creation application can be sent to the middleware service platform according to the parameter variables, and the creation application corresponds to the parameter variables. For example, if the required middleware type is MySQL database, the parameter variables are variables corresponding to MySQL database, thereby generating a middleware creation application corresponding to MySQL database.

[0097] The middleware creation application can be automatically applied to the middleware service platform for the creation of middleware services through the RESTful remote call technology, where RESTful is a design style and development method for network applications. At the same time, it also improves the efficiency of the middleware creation application. After the application is made, the service orchestration engine server can continuously determine the creation status of the middleware service, so as to receive the specific data of the parameter variables returned by the middleware service platform according to the middleware creation application more quickly, thereby improving the overall efficiency of the middleware configuration.

[0098] Step S204, receiving the specific data of the parameter variables returned by the middleware service platform according to the middleware creation application.

[0099] In this embodiment, when the middleware service platform receives a middleware creation application, such as a middleware creation application corresponding to a MySQL database, the middleware creation application will be parsed to determine the type of middleware service to be created. When the middleware service type is determined to be a MySQL database, the MySQL database middleware service will be created, and after the creation is completed, the specific data of the parameter variables corresponding to the MySQL database, such as the IP address (full name in English: Internet Protocol Address, Chinese: Internet Protocol Address) and port information, will be sent to the service orchestration engine server to provide a basis for the subsequent association between the middleware and the cloud service.

[0100] It should be noted that the data format of the parameter variable in the first middleware configuration information is a placeholder.

[0101] Step S205: determine the placeholder of the corresponding parameter variable in the first middleware configuration information according to the parameter variable identifier. The parameter variable specific data includes: the parameter variable identifier and the parameter variable specific value.

[0102] In this embodiment, the parameter variable in the first middleware configuration information is placed in the string in the form of a placeholder. Although the parameter variable occupies the position of the string, it only has a definition function and does not have an actual function. The placeholder position of the corresponding parameter variable can be determined according to the parameter variable identifier, thereby providing a basis for the subsequent replacement process of the specific data of the parameter variable.

[0103] Step S206: Replace the placeholder of the corresponding parameter variable with the corresponding parameter variable identifier and the specific value of the parameter variable to generate the second middleware configuration information.

[0104] In this embodiment, the relevant information of the middleware service can be determined through the second middleware configuration information, so that after the association relationship with the cloud service is established, the cloud service can use the middleware service.

[0105] Step S207: construct an association relationship between the middleware and the cloud service according to the second middleware configuration information.

[0106] The implementation of step 207 is similar to the implementation of step 104 in the previous embodiment of the present invention, and will not be described in detail here.

[0107] There are many specific ways to build the association relationship between the middleware and the cloud service according to the second middleware configuration information. This embodiment uses the following three ways as examples:

[0108] The first option is:

[0109] The second middleware configuration information is converted into an application sub-file corresponding to the cloud service.

[0110] Arrange the application sub-files in the corresponding application directory of the cloud service arrangement file.

[0111] The application sub-file is determined as the startup sub-file corresponding to the cloud service to establish the association relationship between the middleware and the cloud service. The startup sub-file is the file that needs to be executed when executing the cloud service startup process.

[0112] The first method is to arrange the second middleware configuration information in the corresponding application directory of the cloud service arrangement file, and make it a startup subfile corresponding to the cloud service, so that the second middleware configuration information is closely associated with the startup of the cloud service. When the cloud service is started, the startup subfile corresponding to the second middleware configuration information will be executed, so that the middleware service can be called through the startup subfile. If the writing language is Java, you can also specify to start with the startup subfile in the Java project startup command, so that the cloud service can use the middleware service when it starts.

[0113] Optionally, the second method is to use the environment variable information of the cloud service included in the cloud service orchestration file.

[0114] The second method is:

[0115] The second middleware configuration information is converted into environment variable information.

[0116] The environment variable information corresponding to the second middleware configuration information is determined as the startup parameter corresponding to the cloud service to establish an association relationship between the middleware and the cloud service. The startup parameter is a parameter required to execute when executing the cloud service startup process.

[0117] The second method converts the second middleware configuration information into environment variable information, stores it in the environment variable information of the cloud service, and uses the environment variable as the startup parameter of the cloud service. The environment variable information is the information that the cloud service needs to execute, and when the cloud service starts, the startup parameter will be executed. If the writing language is Java, the process of determining the environment variable information corresponding to the second middleware configuration information as the startup parameter corresponding to the cloud service can also be to specify the environment variable as the startup parameter in the Java project startup command.

[0118] The second method stores the second middleware configuration information into the environment variable information. Since the environment variable information is information that the cloud service originally has, the cloud service can use the middleware service without affecting the cloud service data layout.

[0119] Optionally, the third method may use a preset configuration center database to manage all configuration data.

[0120] The third method is:

[0121] The second middleware configuration information is stored in a preset configuration center database to establish an association relationship between the middleware and the cloud service. The preset configuration center database is used to store the configuration information required to be executed when executing the cloud service startup process.

[0122] Since the preset configuration center database stores the configuration information required to execute when the cloud service starts the process, after the second middleware configuration information is stored in the preset configuration center database, the cloud service will obtain the configuration information from the preset configuration center database when it starts, so that the cloud service can use the middleware service through the second middleware configuration information in the preset configuration center database. Compared with the first two methods, the third method is convenient for managing configuration information, and it is also convenient for updating and upgrading configuration information.

[0123] In order to more easily understand the middleware configuration method of the embodiment of the present invention, Figure 4 For explanation. Figure 4 As shown, in the middleware configuration method of this embodiment, the service orchestration engine server first parses the cloud service orchestration file to obtain the first middleware configuration information and the parameter variables contained therein. The service orchestration engine server applies to the middleware service platform for creating middleware according to the parameter variables, and receives the specific data of the parameter variables returned by the middleware service platform after the middleware service platform completes the creation. Then, the service orchestration engine server replaces the data according to the specific data of the parameter variables and the placeholders recording the parameter variables in the first middleware configuration information to generate the second middleware configuration information. Finally, the second middleware configuration information is associated with the cloud service, so that the cloud service can use the middleware service.

[0124] Figure 5 A schematic diagram of the structure of the middleware configuration device provided by the present invention, such as Figure 5 As shown, in this embodiment, the middleware configuration device 300 can be set in the service orchestration engine server, and the middleware configuration device 300 includes:

[0125] The first acquisition module 301 is used to acquire first middleware configuration information related to the middleware configuration. The first middleware configuration information includes parameter variables corresponding to the middleware.

[0126] The second acquisition module 302 is used to acquire specific data of the parameter variable from the middleware service platform according to the parameter variable.

[0127] The generating module 303 is used to perform data replacement processing on the first middleware configuration information according to the specific data of the parameter variable to generate the second middleware configuration information.

[0128] The construction module 304 is used to construct an association relationship between the middleware and the cloud service according to the second middleware configuration information.

[0129] The middleware configuration device provided in this embodiment can be executed Figure 2 The technical solution of the method embodiment shown in the figure has the same implementation principle and technical effect as Figure 2 The method embodiments shown are similar and will not be described in detail here.

[0130] The middleware configuration device provided by the present invention is further refined on the basis of the middleware configuration device provided by the previous embodiment, as follows.

[0131] Optionally, in this embodiment, the first acquisition module 301 is specifically used for:

[0132] Obtain the corresponding cloud service orchestration file from the cloud service construction platform and parse the cloud service orchestration file using the SnakeYaml parser to determine the first middleware configuration information.

[0133] Optionally, in this embodiment, the second acquisition module 302 is specifically used for:

[0134] Send a middleware creation application to the middleware service platform according to the parameter variables. Receive the specific data of the parameter variables returned by the middleware service platform according to the middleware creation application.

[0135] Optionally, in this embodiment, the data format of the parameter variable in the first middleware configuration information is a placeholder. The specific data of the parameter variable includes: a parameter variable identifier and a specific value of the parameter variable.

[0136] The generation module 303 is specifically used for:

[0137] The placeholder of the corresponding parameter variable in the first middleware configuration information is determined according to the parameter variable identifier, and the placeholder of the corresponding parameter variable is replaced with the corresponding parameter variable identifier and the specific value of the parameter variable to generate the second middleware configuration information.

[0138] Optionally, in this embodiment, the construction module 304 is specifically used for:

[0139] The second middleware configuration information is converted into an application sub-file corresponding to the cloud service. The application sub-file is arranged in the corresponding application directory of the cloud service arrangement file. The application sub-file is determined as the startup sub-file corresponding to the cloud service to establish an association relationship between the middleware and the cloud service. The startup sub-file is a file that needs to be executed when executing the cloud service startup process.

[0140] Optionally, in this embodiment, the cloud service orchestration file includes environment variable information of the cloud service.

[0141] The construction module 304 is specifically used for:

[0142] The second middleware configuration information is converted into environment variable information. The environment variable information corresponding to the second middleware configuration information is determined as the startup parameter corresponding to the cloud service to establish an association relationship between the middleware and the cloud service. The startup parameter is a parameter required to execute when executing the cloud service startup process.

[0143] Optionally, in this embodiment, the construction module 304 is specifically used for:

[0144] The second middleware configuration information is stored in a preset configuration center database to establish an association relationship between the middleware and the cloud service. The preset configuration center database is used to store the configuration information required to execute when executing the cloud service startup process.

[0145] The middleware configuration device provided in this embodiment can be executed Figure 2-Figure 4 The technical solution of the method embodiment shown in the figure has the same implementation principle and technical effect as Figure 2-Figure 4 The method embodiments shown are similar and will not be described in detail here.

[0146] According to an embodiment of the present invention, the present invention also provides an electronic device, a computer-readable storage medium and a computer program product.

[0147] like Figure 6 As shown, Figure 6 : is a schematic diagram of the structure of the service orchestration engine server provided by the present invention. The service orchestration engine server is intended for various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0148] like Figure 6 As shown, the service orchestration engine server includes: a processor 401, a memory 402 and a transceiver 403. The various components are connected to each other using different buses and can be installed on a common mainboard or in other ways as needed. The processor can process instructions executed in the electronic device. The transceiver 403 is used to receive or send data, such as parameter templates, parameters, parameter filling strategies and other data.

[0149] The memory 402 is a non-transient computer-readable storage medium provided by the present invention. The memory stores instructions executable by at least one processor to enable at least one processor to execute the middleware configuration method provided by the present invention. The non-transient computer-readable storage medium of the present invention stores computer instructions, which are used to enable a computer to execute the middleware configuration method provided by the present invention.

[0150] The memory 402 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient 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 attached Figure 5 The processor 401 executes various functional applications and data processing of the electronic device by running the non-transient software programs, instructions and modules stored in the memory 402, that is, the middleware configuration method in the above method embodiment is implemented.

[0151] At the same time, this embodiment also provides a computer product. When instructions in the computer product are executed by a processor of an electronic device, the electronic device can execute the middleware configuration method of the above embodiment.

[0152] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the embodiments of the present invention, which follow the general principles of the embodiments of the present invention and include common knowledge or customary technical means in the art that are not disclosed in the embodiments of the present invention.

[0153] It should be understood that the embodiments of the present invention are not limited to the precise structures described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the embodiments of the present invention is limited only by the appended claims.

Claims

1. A middleware configuration method, characterized in that: Applied to a service orchestration engine server, the method comprises: Obtain the corresponding cloud service orchestration file from the cloud service construction platform; Parsing the cloud service orchestration file using a SnakeYaml parser to determine first middleware configuration information; the first middleware configuration information includes parameter variables corresponding to the middleware; Acquire specific data of parameter variables from the middleware service platform according to the parameter variables; Performing data replacement processing on the first middleware configuration information according to the specific data of the parameter variable to generate second middleware configuration information; Establishing an association relationship between the middleware and the 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; the specific data of the parameter variable includes: a parameter variable identifier and a specific value of the parameter variable; The performing data replacement processing on the first middleware configuration information according to the specific data of the parameter variable to generate the second middleware configuration information includes: Determine, according to the parameter variable identifier, a placeholder for a corresponding parameter variable in the first middleware configuration information; The placeholder of the corresponding parameter variable is replaced with the corresponding parameter variable identifier and the specific value of the parameter variable to generate the second middleware configuration information.

2. The method according to claim 1, characterized in that The obtaining of specific data of the parameter variables from the middleware service platform according to the parameter variables includes: Sending a middleware creation application to the middleware service platform according to the parameter variables; Receive the specific data of parameter variables returned by the middleware service platform according to the middleware creation application.

3. The method according to claim 2, characterized in that The step of 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 the cloud service; Arrange the application sub-file in the corresponding application directory of the cloud service arrangement file; The application sub-file is determined as the startup sub-file corresponding to the cloud service to establish an association relationship between the middleware and the cloud service; the startup sub-file is a file that needs to be executed when executing the cloud service startup process.

4. The method according to claim 2, characterized in that: The cloud service orchestration file includes the environment variable information of the cloud service; The step of 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 the environment variable information; The environment variable information corresponding to the second middleware configuration information is determined as the startup parameter corresponding to the cloud service to establish an association relationship between the middleware and the cloud service; the startup parameter is a parameter required to execute when executing the cloud service startup process.

5. The method according to claim 2, characterized in that: The step of constructing an association relationship between the middleware and the cloud service according to the second middleware configuration information includes: The second middleware configuration information is stored in a preset configuration center database to establish an association relationship between the middleware and the cloud service; the preset configuration center database is used to store the configuration information required to be executed when executing the cloud service startup process.

6. A middleware configuration device, characterized in that: Located on the service orchestration engine server, the device includes: A first acquisition module, used to acquire first middleware configuration information related to the middleware configuration; the first middleware configuration information includes parameter variables corresponding to the middleware; A second acquisition module, used for acquiring specific data of parameter variables from the middleware service platform according to the parameter variables; A generating module, configured to perform data replacement processing on the first middleware configuration information according to the specific data of the parameter variable to generate second middleware configuration information; A construction module, used to construct an association relationship between the middleware and the cloud service according to the second middleware configuration information; The first acquisition module is specifically used to obtain the corresponding cloud service orchestration file from the cloud service construction platform; use the SnakeYaml parser to parse the cloud service orchestration file to determine the first middleware configuration information; The data format of the parameter variable in the first middleware configuration information is a placeholder; the specific data of the parameter variable includes: a parameter variable identifier and a specific value of the parameter variable; the generation module is specifically used to determine the placeholder of the corresponding parameter variable in the first middleware configuration information according to the parameter variable identifier; and replace the placeholder of the corresponding parameter variable with the corresponding parameter variable identifier and the specific value of the parameter variable to generate the second middleware configuration information.

7. A service orchestration engine server, characterized in that: include: processors, memory and transceivers; The processor, the memory and the transceiver circuit are interconnected; The memory stores computer-executable instructions; The transceiver is used for sending and receiving data; The processor executes the computer-executable instructions stored in the memory to implement the middleware configuration method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the middleware configuration method according to any one of claims 1 to 5.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the middleware configuration method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method and device for generating configuration files of server middleware

    CN107463418A

  • Deployment method and device of private cloud and server

    CN112804097A

  • Middleware deployment method and device, equipment and storage medium

    CN113419747A

  • Microservice orchestration method and device, microservice execution method and device and server

    CN114217887A

  • Service deployment method and device, computer equipment and storage medium

    CN115185550A