CN108897581B - Service deployment method and device and electronic equipment - Google Patents

Service deployment method and device and electronic equipment Download PDF

Info

Publication number
CN108897581B
CN108897581B CN201810582108.4A CN201810582108A CN108897581B CN 108897581 B CN108897581 B CN 108897581B CN 201810582108 A CN201810582108 A CN 201810582108A CN 108897581 B CN108897581 B CN 108897581B
Authority
CN
China
Prior art keywords
service
configuration
model
deployed
basic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810582108.4A
Other languages
Chinese (zh)
Other versions
CN108897581A (en
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810582108.4A priority Critical patent/CN108897581B/en
Publication of CN108897581A publication Critical patent/CN108897581A/en
Application granted granted Critical
Publication of CN108897581B publication Critical patent/CN108897581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The embodiment of the invention provides a service deployment method, a service deployment device and electronic equipment, wherein the service deployment method comprises the following steps: when a service to be deployed exists, selecting each basic configuration model corresponding to the service to be deployed from a pre-established model library; adding configuration information corresponding to the service to be deployed in each basic configuration model to generate a configuration file corresponding to the service to be deployed; analyzing the configuration file to generate a deployment program corresponding to the service to be deployed, wherein the deployment program is an installation program of the service to be deployed or an uninstallation program of the service to be deployed. The service deployment method of the embodiment of the invention realizes the rapid and efficient deployment of the service on the server.

Description

Service deployment method and device and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a service deployment method, a service deployment device and electronic equipment.
Background
With the development of internet technology, internet business forms and service types are becoming diversified. The same component on the system can meet the business requirements of various forms through different configurations.
For example, by modifying the configuration file related to the Network interface, a physical interface, a binding interface, a VLAN (Virtual Local Area Network) interface, a Tunnel interface, and the like, even a Bridge interface, can be configured; the kernel can enable or disable various characteristics such as large page memory, CPU (Central Processing Unit/Processor) isolation, etc. by modifying the kernel command line option; by configuring the system service manager, the system can be set to start new services or modify existing services by default. The services provided by online servers typically rely on multiple basic components, and the basic component configurations of different services may differ.
In the prior art, when a service is deployed on a server, basic components on which the service depends are generally configured one by one, a deployment code is configured for each basic component according to service requirements, and then deployment codes of all the basic components are combined to form a deployment program corresponding to the deployment service on the server.
However, the inventor finds that the prior art has at least the following problems in the process of implementing the invention:
when a part of services are deployed on a server and another service needs to be deployed, the same basic components in the deployed part of services may be used, but the configuration is different, and the deployment code generation method is adopted to reconfigure the deployment code for the basic components once. Therefore, each new service needs to be reconfigured once, which not only wastes manpower and material resources, but also affects the deployment efficiency of the service.
Disclosure of Invention
The embodiment of the invention aims to provide a service deployment method, a service deployment device and electronic equipment, so that services can be rapidly and efficiently deployed on a server. The specific technical scheme is as follows:
in order to achieve the above object, an embodiment of the present invention discloses a service deployment method, where the method includes:
when a service to be deployed exists, selecting each basic configuration model corresponding to the service to be deployed from a pre-established model library;
adding configuration information corresponding to the service to be deployed in each basic configuration model to generate a configuration file corresponding to the service to be deployed;
analyzing the configuration file to generate a deployment program corresponding to the service to be deployed, wherein the deployment program is an installation program of the service to be deployed or an uninstallation program of the service to be deployed.
Optionally, the process of establishing the model library includes:
establishing items of each hardware basic configuration model according to basic hardware configuration items commonly used by each service; wherein the basic hardware configuration items include: CPU, internal memory, external memory, bus and server peripheral;
establishing items of each software basic configuration model according to basic software configuration items commonly used by each service; wherein the basic software configuration items include: network services and their management programs;
and establishing a storage area for each hardware basic configuration model and each software basic configuration model, and setting the storage area as the model library.
Optionally, when there is a service to be deployed, selecting each basic configuration model corresponding to the service to be deployed from a pre-established model library, where the selecting includes:
selecting each hardware basic configuration model and each software basic configuration model corresponding to the service to be deployed from a pre-established model library;
adding configuration information corresponding to the service to be deployed in each basic configuration model, and generating a configuration file corresponding to the service to be deployed, including:
replacing each configuration parameter information of each item corresponding to the service to be deployed and each hardware basic configuration model into the parameter of the item corresponding to the corresponding hardware basic configuration model;
replacing each configuration parameter information of each item corresponding to the service to be deployed and each software basic configuration model into the parameter of the item corresponding to the corresponding software basic configuration model;
combining the hardware basic configuration models and the software basic configuration models added with configuration parameter information according to a preset rule to generate a first basic configuration model;
and adding the residual configuration information corresponding to the service to be deployed in the first basic configuration model, and generating a configuration file corresponding to the service to be deployed.
Optionally, after the adding of the remaining configuration information corresponding to the service to be deployed, the method further includes:
extracting the residual configuration information corresponding to the service to be deployed and generating corresponding configuration models;
and saving each configuration model into the model library.
Optionally, the analyzing the configuration file to generate a deployment program corresponding to the service to be deployed includes:
scanning the configuration file by using a configuration analyzer, and converting the configuration file into configuration instructions;
and combining the configuration instructions to generate a deployment program corresponding to the service to be deployed.
In order to achieve the above object, an embodiment of the present invention further discloses a service deployment apparatus, where the apparatus includes:
the basic configuration model selection module is used for selecting each basic configuration model corresponding to the service to be deployed from a pre-established model library when the service to be deployed exists;
a configuration file generation module, configured to add, in each basic configuration model, each configuration information corresponding to the service to be deployed, and generate a configuration file corresponding to the service to be deployed;
and the deployment program generation module is used for analyzing the configuration file and generating a deployment program corresponding to the service to be deployed, wherein the deployment program is an installer of the service to be deployed or an uninstaller of the service to be deployed.
Optionally, the apparatus further comprises:
the hardware basic configuration model establishing module is used for establishing items of each hardware basic configuration model according to basic hardware configuration items commonly used by each service; wherein the basic hardware configuration items include: CPU, internal memory, external memory, bus and server peripheral;
the software basic configuration model establishing module is used for establishing the items of each software basic configuration model according to basic software configuration items commonly used by each service; wherein the basic software configuration items include: network services and their management programs;
and the model base establishing module is used for establishing a storage area for each hardware basic configuration model and each software basic configuration model and setting the storage area as the model base.
Optionally, the basic configuration model selecting module is specifically configured to select, from a pre-established model library, each hardware basic configuration model and each software basic configuration model corresponding to the service to be deployed;
the configuration file generation module comprises:
the hardware basic configuration model determining submodule is used for replacing the configuration parameter information of each item corresponding to the service to be deployed and each hardware basic configuration model into the parameter of the item corresponding to the corresponding hardware basic configuration model;
the software basic configuration model determining submodule is used for replacing the information of each configuration parameter of each item corresponding to the service to be deployed and each software basic configuration model into the parameter of the corresponding item of the corresponding software basic configuration model;
the basic configuration model combination submodule is used for combining the hardware basic configuration models and the software basic configuration models after configuration parameter information is added according to a preset rule to generate a first basic configuration model;
and the configuration file generation submodule is used for adding the residual configuration information corresponding to the service to be deployed in the first basic configuration model and generating the configuration file corresponding to the service to be deployed.
Optionally, the apparatus further comprises:
the configuration model generation module is used for extracting the residual configuration information corresponding to the service to be deployed and generating corresponding configuration models;
and the configuration model storage module is used for storing each configuration model into the model library.
Optionally, the configuration file generating module includes:
the configuration instruction generation submodule is used for scanning the configuration file by using a configuration analyzer and converting the configuration file into each configuration instruction;
and the deployment program generation submodule is used for combining the configuration instructions to generate a deployment program corresponding to the service to be deployed.
In order to achieve the above object, an embodiment of the present invention further discloses an electronic device, which includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method steps of any one of the service deployment methods when executing the program stored in the memory.
In order to achieve the above object, an embodiment of the present invention further discloses a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps of any one of the above service deployment methods are implemented.
To achieve the above object, an embodiment of the present invention further discloses a computer program product containing instructions, which when run on a computer, causes the computer to execute the method steps of any one of the above service deployment methods.
The embodiment of the invention discloses a service deployment method, a service deployment device and electronic equipment, which are used for rapidly and efficiently deploying services on a server. The embodiment of the invention mainly adopts a modularized model design method to divide service deployment into basic configuration components, further can set basic configuration models for each basic configuration, and stores each basic configuration model in a model library. When the service to be deployed exists, the basic configuration model is selected from the model library firstly, and the configuration code generation method is realized on the model, so that the service deployment is written by the configuration codes of all the components, the configuration code is simplified to be written by the instantiated configuration files of the configuration model, the service is deployed on the server quickly and efficiently, and the flexibility of configuration and the reusability of the configuration components are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flow diagram of a prior art method of service deployment;
FIG. 2 is a flow chart of a service deployment method according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for establishing a model base in a service deployment method according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for generating a configuration file in a service deployment method according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for generating a deployment program in a service deployment method according to an embodiment of the present invention;
fig. 6 is a flowchart of a method framework for deploying a plurality of services to be deployed in a service deployment method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a service deployment apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 9 is a schematic structural diagram of a service deployment system framework according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In the prior art, when a service is deployed on a server, basic components on which the service depends are generally configured one by one, a deployment code is configured for each basic component according to service requirements, and then deployment codes of all the basic components are combined to form a deployment program corresponding to the deployment service on the server. This deployment may be as shown in fig. 1. Fig. 1 is a flow framework diagram of a service deployment method in the prior art, and fig. 1 shows that a program to be deployed needs to deploy 3 basic codes to complete deployment, that is, deployment of a deployment code a, a deployment code B, and a deployment code C needs to be completed sequentially to deploy a service to be deployed on a server.
The inventor finds that when another service needs to be deployed, the same basic components may be used, but the configuration is different, but when the service deployment method shown in fig. 1 is adopted, the basic components on which the service depends need to be implemented again to deploy the code once. Therefore, each new service needs to be implemented again, which not only wastes manpower and material resources, but also affects the deployment efficiency of the service.
In order to solve the problems in the service deployment method in the prior art, the embodiment of the invention provides the service deployment method, the basic configuration module is subjected to abstract modeling, the model is deployed with the configuration of the service to be deployed, the configured model is formed into a configuration file, and the configuration file is further analyzed to form a deployment program corresponding to the service to be deployed, so that the service is rapidly and efficiently deployed on the server. The specific implementation process is as follows:
to achieve the above object, an embodiment of the present invention discloses a service deployment method, as shown in fig. 2. Fig. 2 is a flowchart of a service deployment method according to an embodiment of the present invention, where the method includes:
s201, when the service to be deployed exists, selecting each basic configuration model corresponding to the service to be deployed from a pre-established model library.
In order to improve deployment efficiency, the embodiment of the invention can pre-establish the model base, store each basic configuration model in the model base, and further select each basic model corresponding to the service to be deployed in the model base when the service to be deployed exists. And adding configuration information corresponding to the service to be deployed in each basic model, instantiating each basic model, then forming all model instances into a configuration file, and analyzing the configuration file to generate a deployment program corresponding to the service to be deployed.
The step is an implementation step of selecting each basic model from a model library. In the embodiment of the invention, each basic configuration model is established for the basic configuration required by each service, namely each hardware basic configuration model is established for the basic hardware configuration required by each service, each software basic configuration model is established for the basic software configuration required by each service, and each hardware basic configuration model and each software basic configuration model are stored in the model base.
The basic hardware configuration of the basic hardware configuration model may include: CPU (Central Processing Unit/Processor), memory, external memory, bus and server peripheral. Each basic hardware configuration model can at least comprise one or more basic hardware configurations, an implementer can set a plurality of basic hardware configuration models in each type of service according to different service types, items of each basic hardware configuration model can comprise one or more basic hardware configurations, and in addition, hardware configuration items can be added on each basic hardware configuration model in a customized manner according to needs, so that a plurality of basic hardware configuration models of the embodiment of the invention are formed. The basic software configuration of the basic software configuration model may include: network services and their management programs. Web services such as lvs, apache, and nginx, among others; management programs such as quadra, keepalived, and systemd. Each basic software configuration model can at least comprise one or more basic software configurations, implementers can set a plurality of basic software configuration models in each type of service according to different service types, items of each basic software configuration model can comprise one or more basic software configurations, and in addition, software configuration items can be added on each basic software configuration model in a customized manner according to needs, so that a plurality of basic software configuration models of the embodiment of the invention are formed.
When the service to be deployed exists, according to the hardware configuration of the service to be deployed, the configuration of each hardware basic configuration model in the model base can be compared with the hardware configuration of the service to be deployed one by one, and the hardware basic configuration model which contains the most hardware configuration items of the service to be deployed is used as the hardware basic configuration model corresponding to the service to be deployed. Comparing each configuration of each software basic configuration model in the model library with the software configuration of the service to be deployed one by one, and taking the software basic configuration model which contains the most software configuration projects with the service to be deployed as the software basic configuration model corresponding to the service to be deployed.
In addition, in the embodiment of the present invention, a model may be further set for each basic configuration, and when there is a service to be deployed, each hardware basic configuration model corresponding to each hardware basic configuration is respectively searched in the model base, and each hardware basic configuration model is combined to obtain a hardware basic configuration model corresponding to the service to be deployed. And respectively searching each software basic configuration model corresponding to each software basic configuration in the model base, and combining each software basic configuration model to obtain the software basic configuration model corresponding to the service to be deployed.
S202, adding configuration information corresponding to the service to be deployed in each basic configuration model, and generating a configuration file corresponding to the service to be deployed.
After the above step S101 determines each required basic configuration model in the model library, this step is an implementation step of generating a configuration file corresponding to the service to be deployed.
And correspondingly adding hardware configuration required by the service to be deployed, such as the memory size, the disk capacity size, the CPU core number, the main frequency and the peripheral parameters required by the service to be deployed, in each selected hardware basic configuration model required by the service to be deployed.
And correspondingly adding the software configuration required by the service to be deployed, such as a network interface and a management program required by the service to be deployed, in each selected software basic configuration model required by the service to be deployed.
After each basic configuration parameter required by the service to be deployed is added to each basic item of each hardware basic configuration model and each software basic configuration model, the rest configuration information of the service to be deployed is further added to the basic configuration information of each hardware basic configuration model and each hardware basic configuration model, and a configuration file corresponding to the service to be deployed is generated.
S203, analyzing the configuration file to generate a deployment program corresponding to the service to be deployed, wherein the deployment program is an installation program of the service to be deployed or an uninstallation program of the service to be deployed.
After the configuration file is generated in step S202, in this step, the configuration file is analyzed, and a deployment program that can be identified by the server to be deployed is generated from the configuration file.
Specifically, parsing the configuration file to generate a deployment program corresponding to the service to be deployed includes:
the configuration file is scanned by using a configuration parser, and the configuration file is converted into each configuration instruction.
And combining the configuration instructions to generate a deployment program corresponding to the service to be deployed.
It should be noted that the service deployment method according to the embodiment of the present invention is an installation method for a service or an uninstallation method for a service. When the service to be deployed needs to be installed on the corresponding server, the generated deployment program is the installation program of the service to be deployed, and when the service to be deployed needs to be uninstalled on the server, the generated deployment program is the uninstallation program of the service to be deployed.
The embodiment of the invention mainly adopts a modularized model design method to divide service deployment into basic configuration components, further can set basic configuration models for each basic configuration, and stores each basic configuration model in a model library. When the service to be deployed exists, the required basic configuration model is selected from the model library, and the configuration code generation method is realized on the model, so that the service deployment is written by the configuration code of each component, the configuration code is simplified to be written by the instantiated configuration file of the configuration model, the service is rapidly and efficiently deployed on the server, and the flexibility of configuration and the reusability of configuration components are increased.
Alternatively, in an embodiment of the service deployment method of the present invention, the method for building the model library in S201 may be as shown in fig. 3. Fig. 3 is a flowchart of a method for establishing a model base in a service deployment method according to an embodiment of the present invention, including:
s301, establishing items of each hardware basic configuration model according to basic hardware configuration items commonly used by each service; wherein, the basic hardware configuration items comprise: CPU, internal memory, external memory, bus and server peripheral.
The embodiment of the invention relates to an implementation method for establishing a model base. The step is a method step for establishing each hardware basic configuration model. The method comprises the following specific steps:
the general basic hardware configuration items of various types of service programs can be extracted from the historical service configuration program according to the service types, and various types of hardware basic configuration models are established. Wherein, the basic hardware configuration items comprise: CPU, internal memory, external memory, bus and server peripheral.
Specifically, a hardware basic configuration model of each type of service can be established according to a Central Processing Unit (CPU), an internal memory, an external memory, a bus and a server peripheral of a hardware configuration item extracted by each type of service program, each basic hardware configuration at least comprises one or more basic hardware configuration items, and the basic configuration item of the corresponding type can be added according to the requirement of each type of service to generate the hardware basic configuration model of each type of service.
In addition, the hardware configuration can be customized according to the needs of implementers, and a customized hardware configuration model is generated.
In the embodiment of the present invention, a nestable model description language based on block and key value pairs may be used to describe each hardware basic configuration model and each software basic configuration model.
The model language has two basic grammars:
key-value: the system comprises a configuration module, a configuration module and a configuration module, wherein the configuration module is used for representing basic configuration item information, keys are necessary, values can be selected to be used or not used according to actual needs, and each key needs to realize corresponding configuration parameters so that the configuration item information can be resolved into deployment codes;
block (block): key value pairs are combined into a basic configuration unit, blocks can be nested, and the nesting depth is not limited; by placing multiple key-values in a block, basic configuration units can be combined into a complex hardware basic configuration model or a software basic configuration model. A key-value may be set for each block to describe the overall functionality of the block. The basic configuration model of a service to be deployed is usually composed of a plurality of nested blocks.
In addition, the model language supports a line annotation function, such as that '#' can be used as a line annotation character, and the content after each line '#' is regarded as annotation content. The parameter ranges, default values of the hardware base configuration model or the software base configuration model can be interpreted by annotation.
S302, establishing items of each software basic configuration model according to basic software configuration items commonly used by each service; wherein, the basic software configuration items comprise: network services and their management programs.
The step is a method step for establishing each software basic configuration model. The method comprises the following specific steps:
the general basic software configuration items of various types of service programs can be extracted from the historical service configuration program according to the service types, and various types of software basic configuration models are established. Wherein, the basic software configuration items comprise: a network interface, and a hypervisor.
Specifically, the software basic configuration model of each type of service can be established according to the network interface and the management program of the software configuration project extracted by each type of service program, and each basic software configuration at least comprises one or more basic software configuration projects.
And adding the corresponding type of basic configuration items according to the requirement of each type of service to generate a software basic configuration model of each type of service. For example, basic network Service configurations such as a network Service type DHCP (Dynamic Host Configuration Protocol), WINS (Windows Internet Name Service), DNS (Domain Name System or Domain Name Service), File Transfer Protocol FTP (File Transfer Protocol), SMTP (Simple Mail Transfer Protocol), and the like are provided.
In addition, the software configuration can be customized according to the needs of implementers, and a customized software configuration model is generated.
S303, establishing a storage area for each hardware basic configuration model and each software basic configuration model, and setting the storage area as a model library.
After the hardware basic configuration models and the software basic configuration models are generated in steps S301 and S302, a storage area may be allocated in the database, the hardware basic configuration models and the software basic configuration models may be stored, and the storage area may be set as the model library according to the embodiment of the present invention.
Therefore, the pre-established model base can be used for directly selecting each basic configuration model corresponding to the service to be deployed from the pre-established model base when the service to be deployed exists, and the working efficiency of re-configuring the basic configuration is improved.
Optionally, in an embodiment of the service deployment method of the present invention, in order to better describe a process of forming a configuration file in the service deployment method of the embodiment of the present invention, refer to fig. 4. Fig. 4 is a flowchart of a method for generating a configuration file in a service deployment method according to an embodiment of the present invention, where the method includes:
s401, selecting each hardware basic configuration model and each software basic configuration model corresponding to the service to be deployed from a pre-established model library.
The embodiment of the invention discloses an implementation method for generating a configuration file corresponding to a service to be deployed. In this step, an implementation method of the basic configuration model is selected.
Selecting each hardware basic configuration model and each software basic configuration model corresponding to the service to be deployed from a model library, wherein the hardware basic configuration model and each software basic configuration model can be concrete; determining each service type of the service to be deployed, comparing the hardware configuration of the service to be deployed with each item of each hardware basic configuration model in the service type one by one aiming at each service type, and determining the hardware basic configuration model with the most items as the hardware basic configuration model corresponding to the service to be deployed.
The implementation manner of selecting each software basic configuration model corresponding to the service to be deployed in the model library is similar to the implementation manner of determining each hardware basic configuration model, and is not described here again.
In S202, adding configuration information corresponding to the service to be deployed to each basic configuration model, and generating a configuration file corresponding to the service to be deployed, including:
after determining the hardware basic configuration models and the software basic configuration models corresponding to the service to be deployed, an embodiment of generating a configuration file corresponding to the service to be deployed is described below.
S402, replacing the configuration parameter information of each item corresponding to the service to be deployed and each hardware basic configuration model into the parameter of the item corresponding to the corresponding hardware basic configuration model.
The step is to replace the hardware configuration information of the service to be deployed to each project of the corresponding hardware basic configuration model. For example, replacing the memory parameter information of the service to be deployed to the memory item of the corresponding hardware basic configuration model; replacing the disk capacity parameter information of the service to be deployed to the disk capacity project of the corresponding hardware basic configuration model; replacing the peripheral parameter information of the service to be deployed to the peripheral parameter item of the corresponding hardware basic configuration model; and replacing the CPU parameter information of the service to be deployed on the CPU project of the corresponding hardware basic configuration model.
S403, replacing each configuration parameter information of each item corresponding to each software basic configuration model and service to be deployed into the parameter of the item corresponding to the corresponding software basic configuration model.
The step is to replace the software configuration information of the service to be deployed to each project of the corresponding software basic configuration model.
S404, combining the hardware basic configuration models and the software basic configuration models added with the configuration parameter information according to a preset rule to generate a first basic configuration model.
The above step is an implementation manner of combining each hardware basic configuration model and each software basic configuration model after replacing the hardware configuration information of the service to be deployed to each item of the corresponding hardware basic configuration model and replacing the software configuration information of the service to be deployed to each item of the corresponding software basic configuration model.
The preset rule of the embodiment of the invention is the combination of the hardware configuration information and the software configuration information, so that the generated information can simultaneously execute the combination rule of the hardware configuration information and the software configuration information. And combining the hardware basic configuration models and the software basic configuration models after the configuration parameter information is added by using the preset rule to generate a first basic configuration model.
S405, adding the residual configuration information corresponding to the service to be deployed in the first basic configuration model, and generating a configuration file corresponding to the service to be deployed.
The step is an implementation step of adding the remaining configuration information of the service to be deployed on the formed first basic configuration model.
Specifically, the remaining hardware configuration information of the service to be deployed is added to the hardware configuration area of the first basic configuration model, and the remaining software configuration information of the service to be deployed is added to the software configuration area of the first basic configuration model. And generating a configuration file corresponding to the current service by using the first basic configuration model added with the configuration information.
Therefore, the embodiment of the invention can realize that the corresponding configuration information is added into the basic configuration model, and further generates the corresponding configuration file by the basic configuration model, thereby avoiding the need of reconfiguring the deployment program once for new service every time, and improving the service deployment efficiency.
Optionally, in an embodiment of the service deployment method of the present invention, after adding the remaining configuration information corresponding to the service to be deployed, the method further includes:
and extracting the residual configuration information corresponding to the service to be deployed and generating corresponding configuration models.
The embodiment of the invention relates to a method embodiment for adding configuration models in a model library. Specifically, the remaining configuration information corresponding to the service to be deployed can be divided into hardware configuration and software configuration, and then each hardware configuration model is established according to the functions of the remaining hardware configuration, and further each software configuration model is established according to the functions of the remaining software configuration.
And saving each configuration model into a model library.
And storing the newly added hardware configuration models and software configuration models in the model library. Specifically, each hardware model and each software model may be stored in a model of a corresponding function type service according to a function. Or a storage area is newly built in the model base and is specially used for storing the newly added configuration model.
Therefore, the embodiment of the invention can realize the establishment of the configuration model for the residual configuration information of the service to be deployed, and further directly acquire the stored configuration model from the model library when other services to be deployed need similar configuration information, thereby improving the deployment efficiency of the service.
Optionally, in an embodiment of the service deployment method of the present invention, in order to better describe a formation process of a deployment program in the service deployment method of the embodiment of the present invention, refer to fig. 5. Fig. 5 is a flowchart of a method for generating a deployment program in a service deployment method according to an embodiment of the present invention, where the method includes:
s501, scanning the configuration file by using a configuration analyzer, and converting the configuration file into each configuration command.
The embodiment of the invention provides an implementation method for generating a deployment program by analyzing a configuration file, and particularly relates to a method for scanning the configuration file of a service to be deployed by using a configuration analyzer and converting configuration information into a configuration instruction.
The configuration parser can be used for scanning the configuration file one by one, then the scanned hardware configuration information is generated into a hardware configuration instruction, and the scanned software configuration information is generated into a software configuration instruction. Or using two configuration resolvers, scanning the hardware configuration information of the configuration file, producing the hardware configuration instruction by the scanned hardware configuration project information, scanning the software configuration information of the configuration file, and producing the software configuration instruction by the scanned software configuration project information. The process of parsing the configuration file using the configuration parser is not particularly limited.
And S502, combining the configuration instructions to generate a deployment program corresponding to the service to be deployed.
After the configuration file is generated into the configuration instructions, the configuration instructions can be combined into a deployment program which can be identified by the server to be deployed by using a combination instruction program.
Therefore, the deployment program can be generated from the configuration file through the embodiment of the invention, so that the deployment program can be identified by the server to be deployed, and the service deployment is further completed.
In order to better describe the service deployment method according to the embodiment of the present invention, a service a to be deployed, a service B to be deployed, and a service C to be deployed are taken as examples below, and how a plurality of services to be deployed are deployed in the service deployment method according to the embodiment of the present invention is specifically described below. Specifically, referring to fig. 6, fig. 6 is a flowchart of a method framework for deploying a plurality of services to be deployed in a service deployment method according to an embodiment of the present invention.
Step one, when a service A to be deployed, a service B to be deployed and a service C to be deployed exist, selecting a basic configuration model A corresponding to the service A to be deployed from a pre-established model library; selecting a basic configuration model B corresponding to the service B to be deployed from a pre-established model library; and selecting a basic configuration model C corresponding to the service C to be deployed from a pre-established model library.
Adding various configuration information corresponding to the service A to be deployed in the basic configuration model A to generate a configuration file A corresponding to the service A to be deployed; adding configuration information corresponding to the service B to be deployed in the basic configuration model B, and generating a configuration file B corresponding to the service B to be deployed; and adding each piece of configuration information corresponding to the service C to be deployed in the basic configuration model C, and generating a configuration file C corresponding to the service C to be deployed.
Analyzing the configuration file A to generate a deployment program A corresponding to the service A to be deployed; analyzing the configuration file B to generate a deployment program B corresponding to the service B to be deployed; and analyzing the configuration file C to generate a deployment program C corresponding to the service C to be deployed.
The following describes a process of establishing a basic configuration model of network interface software and a process of establishing a deployment program that includes the basic configuration model of network interface software, by taking a network interface as an example. The method specifically comprises the following steps:
comprehensively considering the possible use form of the network interface during deployment, the network interface abstraction is defined as a simple combination of the keys hwadd, onboot, nm _ control, ipaddr, vlan, bonding and route, so as to form a network interface software basic configuration model:
Figure GDA0003390842600000141
Figure GDA0003390842600000151
therefore, if the service to be deployed needs to configure the network interface, only the items of the basic configuration model of the network interface software need to be replaced by the specific parameter information of the items corresponding to the service to be deployed, that is, an example is generated by corresponding the service to be deployed to the basic configuration model of the network interface software. For example, the following defines an example of the network device interface eth1 model with subnet routing configured with private IP addresses:
Figure GDA0003390842600000152
and finally, combining the network interface software basic configuration model instance and instances of other basic configuration models of the service to be deployed into a configuration file corresponding to the service to be deployed through a model description language. And analyzing the configuration file corresponding to the service to be deployed through a model configuration analyzer, and further automatically generating a deployment program corresponding to the service to be deployed from the configuration file.
The invention provides a service deployment method, and provides a modularized service deployment method based on a basic configuration model. The service deployment is written by the configuration codes of all the components and simplified into the instantiated configuration file writing of the configuration model, so that the service deployment on the server is realized quickly and efficiently, and the flexibility of configuration and the reusability of the configuration components are increased.
To achieve the above object, an embodiment of the present invention discloses a service deployment apparatus, as shown in fig. 7. Fig. 7 is a schematic structural diagram of a service deployment apparatus according to an embodiment of the present invention, where the apparatus includes:
a basic configuration model selecting module 701, configured to select, when there is a service to be deployed, each basic configuration model corresponding to the service to be deployed from a pre-established model library;
a configuration file generating module 702, configured to add, in each basic configuration model, each configuration information corresponding to the service to be deployed, and generate a configuration file corresponding to the service to be deployed;
the deployment program generating module 703 is configured to parse the configuration file, and generate a deployment program corresponding to the service to be deployed, where the deployment program is an installer of the service to be deployed or an uninstaller of the service to be deployed.
The embodiment of the invention discloses a service deployment device, which is used for rapidly and efficiently deploying services on a server. The embodiment of the invention mainly adopts a modularized model design method to divide service deployment into basic configuration components, further can set basic configuration models for each basic configuration, and stores each basic configuration model in a model library. When the service to be deployed exists, the required basic configuration model is selected from the model library, and the configuration code generation method is realized on the model, so that the service deployment is written by the configuration code of each component, the configuration code is simplified to be written by the instantiated configuration file of the configuration model, the service is rapidly and efficiently deployed on the server, and the flexibility of configuration and the reusability of configuration components are increased.
Optionally, in an embodiment of the service deployment apparatus of the present invention, the apparatus further includes:
the hardware basic configuration model establishing module is used for establishing items of each hardware basic configuration model according to basic hardware configuration items commonly used by each service; wherein, the basic hardware configuration items comprise: CPU, internal memory, external memory, bus and server peripheral;
the software basic configuration model establishing module is used for establishing the items of each software basic configuration model according to basic software configuration items commonly used by each service; wherein, the basic software configuration items comprise: network services and their management programs;
and the model base establishing module is used for establishing a storage area for each hardware basic configuration model and each software basic configuration model and setting the storage area as a model base.
Optionally, in an embodiment of the service deployment apparatus of the present invention, the basic configuration model selecting module 701 is specifically configured to select, from a pre-established model library, each hardware basic configuration model and each software basic configuration model corresponding to the service to be deployed;
a profile generation module 702, comprising:
the hardware basic configuration model determining submodule is used for replacing the configuration parameter information of each item corresponding to the service to be deployed and each hardware basic configuration model into the parameter of the item corresponding to the corresponding hardware basic configuration model;
the software basic configuration model determining submodule is used for replacing the information of each configuration parameter of each item corresponding to the service to be deployed and each software basic configuration model into the parameter of the item corresponding to the corresponding software basic configuration model;
the basic configuration model combination submodule is used for combining each hardware basic configuration model and each software basic configuration model after the configuration parameter information is added according to a preset rule to generate a first basic configuration model;
and the configuration file generation submodule is used for adding the residual configuration information corresponding to the service to be deployed in the first basic configuration model and generating the configuration file corresponding to the service to be deployed.
Optionally, in an embodiment of the service deployment apparatus of the present invention, the apparatus further includes:
the configuration model generation module is used for extracting the residual configuration information corresponding to the service to be deployed and generating corresponding configuration models;
and the configuration model storage module is used for storing each configuration model into the model library.
Optionally, in an embodiment of the service deployment apparatus of the present invention, the configuration file generating module 702 includes:
the configuration instruction generation submodule is used for scanning the configuration file by using a configuration analyzer and converting the configuration file into each configuration instruction;
and the deployment program generation submodule is used for combining all the configuration instructions to generate a deployment program corresponding to the service to be deployed.
In order to achieve the above object, an embodiment of the present invention further discloses an electronic device, as shown in fig. 8. Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, which includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804;
a memory 803 for storing a computer program;
the processor 801 is configured to implement the following method steps when executing the program stored in the memory 803:
when the service to be deployed exists, selecting each basic configuration model corresponding to the service to be deployed from a pre-established model library;
adding configuration information corresponding to the service to be deployed in each basic configuration model, and generating a configuration file corresponding to the service to be deployed;
and analyzing the configuration file to generate a deployment program corresponding to the service to be deployed, wherein the deployment program is an installation program of the service to be deployed or an uninstallation program of the service to be deployed.
The communication bus 804 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 804 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 802 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory 803 may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory 803 may also be at least one storage device located remotely from the processor 801.
The Processor 801 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
The embodiment of the invention discloses electronic equipment, which is used for deploying services on a server quickly and efficiently. The embodiment of the invention mainly adopts a modularized model design method to divide service deployment into basic configuration components, further can set basic configuration models for each basic configuration, and stores each basic configuration model in a model library. When the service to be deployed exists, the required basic configuration model is selected from the model library, and the configuration code generation method is realized on the model, so that the service deployment is written by the configuration code of each component, the configuration code is simplified to be written by the instantiated configuration file of the configuration model, the service is rapidly and efficiently deployed on the server, and the flexibility of configuration and the reusability of configuration components are increased.
In order to achieve the above object, an embodiment of the present invention further discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the following method steps are implemented:
when the service to be deployed exists, selecting each basic configuration model corresponding to the service to be deployed from a pre-established model library;
adding configuration information corresponding to the service to be deployed in each basic configuration model, and generating a configuration file corresponding to the service to be deployed;
and analyzing the configuration file to generate a deployment program corresponding to the service to be deployed, wherein the deployment program is an installation program of the service to be deployed or an uninstallation program of the service to be deployed.
The embodiment of the invention discloses a computer readable storage medium, which is used for realizing the rapid and efficient deployment of services on a server. The embodiment of the invention mainly adopts a modularized model design method to divide service deployment into basic configuration components, further can set basic configuration models for each basic configuration, and stores each basic configuration model in a model library. When the service to be deployed exists, the required basic configuration model is selected from the model library, and the configuration code generation method is realized on the model, so that the service deployment is written by the configuration code of each component, the configuration code is simplified to be written by the instantiated configuration file of the configuration model, the service is rapidly and efficiently deployed on the server, and the flexibility of configuration and the reusability of configuration components are increased.
To achieve the above object, an embodiment of the present invention further discloses a computer program product containing instructions, which when run on a computer, implement the following method steps:
when the service to be deployed exists, selecting each basic configuration model corresponding to the service to be deployed from a pre-established model library;
adding configuration information corresponding to the service to be deployed in each basic configuration model, and generating a configuration file corresponding to the service to be deployed;
and analyzing the configuration file to generate a deployment program corresponding to the service to be deployed, wherein the deployment program is an installation program of the service to be deployed or an uninstallation program of the service to be deployed.
The embodiment of the invention discloses a computer program product containing instructions, which is used for realizing the rapid and efficient deployment of services on a server. The embodiment of the invention mainly adopts a modularized model design method to divide service deployment into basic configuration components, further can set basic configuration models for each basic configuration, and stores each basic configuration model in a model library. When the service to be deployed exists, the required basic configuration model is selected from the model library, and the configuration code generation method is realized on the model, so that the service deployment is written by the configuration code of each component, the configuration code is simplified to be written by the instantiated configuration file of the configuration model, the service is rapidly and efficiently deployed on the server, and the flexibility of configuration and the reusability of configuration components are increased.
In order to better describe a service deployment method according to the embodiment of the present invention, the embodiment of the present invention further discloses a service deployment system, as shown in fig. 9. Fig. 9 is a schematic structural diagram of a service deployment system framework according to an embodiment of the present invention.
The service deployment system includes a model manager, a registration manager, a service builder, and a configuration parser.
A model manager: the basic configuration model management system is responsible for managing all basic configuration models, including a system predefined basic configuration model and a user-defined basic configuration model; the model manager may be implemented as a local configuration repository, and may be implemented as a remote configuration repository; the remote configuration repository can be synchronized locally and the newly registered models locally can be passed to the remote repository. Meanwhile, the configuration manager has a basic data backup function, and can prevent model data loss caused by software and hardware faults.
A registration manager: and the system is responsible for registering the user-defined basic configuration model to the model manager or deleting the registered basic configuration model from the model manager. When a user registers a self-defined basic configuration model, two dual interfaces of the model need to be realized: (1) a service deployment interface: providing a function of converting a basic configuration model instance into model deployment codes so as to generate an installer of a service to be deployed; (2) service revocation interface: and providing a conversion function of the model instance to the model revocation deployment code for generating the uninstaller of the service to be deployed.
A service constructor: the system is responsible for selecting each basic configuration model required by the service to be deployed from the model library, setting parameters of each hardware basic configuration model and each software basic configuration model according to the requirement of the service to be deployed, and generating a model instance; and then all model instances are combined into a configuration file and transmitted to a configuration parser. Through the service constructor, the service deployment can be simplified from the programming of the deployment code of the configuration component to the model instantiation of the configuration component, and the generation efficiency and performance of the deployment program are greatly improved.
Configuring a resolver: and the system is responsible for converting the configuration file into a deployment program corresponding to the service to be deployed. The configuration analyzer analyzes each instantiated basic configuration model in the configuration file one by one, calls a model deployment interface and a deployment cancellation interface provided during registration of each basic configuration model, and respectively generates an installation program of the service to be deployed and an uninstallation program of the service to be deployed.
Therefore, a basic flow of the service deployment method according to the embodiment of the present invention can be summarized as follows:
1) modeling of a basic configuration model- >2) implementation of deployment methods of each basic configuration model- >3) registration of the models to a configuration manager- >4) acquisition and instantiation of each basic configuration model by a service constructor, generation of configuration files corresponding to the service to be deployed- >5) translation of the configuration files into deployment programs by a configuration parser.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (11)

1. A method for service deployment, the method comprising:
when a service to be deployed exists, selecting each basic configuration model corresponding to the service to be deployed from a pre-established model library;
adding configuration information corresponding to the service to be deployed in each basic configuration model to generate a configuration file corresponding to the service to be deployed;
analyzing the configuration file to generate a deployment program corresponding to the service to be deployed, wherein the deployment program is an installation program of the service to be deployed or an uninstallation program of the service to be deployed.
2. The service deployment method according to claim 1, wherein the process of establishing the model base comprises:
establishing items of each hardware basic configuration model according to basic hardware configuration items commonly used by each service; wherein the basic hardware configuration items include: CPU, internal memory, external memory, bus and server peripheral;
establishing items of each software basic configuration model according to basic software configuration items commonly used by each service; wherein the basic software configuration items include: network services and their management programs;
and establishing a storage area for each hardware basic configuration model and each software basic configuration model, and setting the storage area as the model library.
3. The service deployment method according to claim 2, wherein when there is a service to be deployed, selecting each basic configuration model corresponding to the service to be deployed from a pre-established model library, includes:
selecting each hardware basic configuration model and each software basic configuration model corresponding to the service to be deployed from a pre-established model library;
adding configuration information corresponding to the service to be deployed in each basic configuration model, and generating a configuration file corresponding to the service to be deployed, including:
replacing each configuration parameter information of each item corresponding to the service to be deployed and each hardware basic configuration model into the parameter of the item corresponding to the corresponding hardware basic configuration model;
replacing each configuration parameter information of each item corresponding to the service to be deployed and each software basic configuration model into the parameter of the item corresponding to the corresponding software basic configuration model;
combining the hardware basic configuration models and the software basic configuration models added with configuration parameter information according to a preset rule to generate a first basic configuration model;
and adding the residual configuration information corresponding to the service to be deployed in the first basic configuration model, and generating a configuration file corresponding to the service to be deployed.
4. The service deployment method according to claim 3, wherein after the adding of the remaining configuration information corresponding to the service to be deployed, the method further comprises:
extracting the residual configuration information corresponding to the service to be deployed and generating corresponding configuration models;
and saving each configuration model into the model library.
5. The service deployment method according to claim 1, wherein the parsing the configuration file to generate a deployment program corresponding to the service to be deployed includes:
scanning the configuration file by using a configuration analyzer, and converting the configuration file into configuration instructions;
and combining the configuration instructions to generate a deployment program corresponding to the service to be deployed.
6. A service deployment apparatus, characterized in that the apparatus comprises:
the basic configuration model selection module is used for selecting each basic configuration model corresponding to the service to be deployed from a pre-established model library when the service to be deployed exists;
a configuration file generation module, configured to add, in each basic configuration model, each configuration information corresponding to the service to be deployed, and generate a configuration file corresponding to the service to be deployed;
and the deployment program generation module is used for analyzing the configuration file and generating a deployment program corresponding to the service to be deployed, wherein the deployment program is an installer of the service to be deployed or an uninstaller of the service to be deployed.
7. The service deployment apparatus in accordance with claim 6, wherein the apparatus further comprises:
the hardware basic configuration model establishing module is used for establishing items of each hardware basic configuration model according to basic hardware configuration items commonly used by each service; wherein the basic hardware configuration items include: CPU, internal memory, external memory, bus and server peripheral;
the software basic configuration model establishing module is used for establishing the items of each software basic configuration model according to basic software configuration items commonly used by each service; wherein the basic software configuration items include: network services and their management programs;
and the model base establishing module is used for establishing a storage area for each hardware basic configuration model and each software basic configuration model and setting the storage area as the model base.
8. The service deployment apparatus according to claim 7, wherein the basic configuration model selection module is specifically configured to select, from a pre-established model library, each hardware basic configuration model and each software basic configuration model corresponding to the service to be deployed;
the configuration file generation module comprises:
the hardware basic configuration model determining submodule is used for replacing the configuration parameter information of each item corresponding to the service to be deployed and each hardware basic configuration model into the parameter of the item corresponding to the corresponding hardware basic configuration model;
the software basic configuration model determining submodule is used for replacing the information of each configuration parameter of each item corresponding to the service to be deployed and each software basic configuration model into the parameter of the corresponding item of the corresponding software basic configuration model;
the basic configuration model combination submodule is used for combining the hardware basic configuration models and the software basic configuration models after configuration parameter information is added according to a preset rule to generate a first basic configuration model;
and the configuration file generation submodule is used for adding the residual configuration information corresponding to the service to be deployed in the first basic configuration model and generating the configuration file corresponding to the service to be deployed.
9. The service deployment apparatus in accordance with claim 8, wherein the apparatus further comprises:
the configuration model generation module is used for extracting the residual configuration information corresponding to the service to be deployed and generating corresponding configuration models;
and the configuration model storage module is used for storing each configuration model into the model library.
10. The service deployment apparatus as claimed in claim 6, wherein the configuration file generation module comprises:
the configuration instruction generation submodule is used for scanning the configuration file by using a configuration analyzer and converting the configuration file into each configuration instruction;
and the deployment program generation submodule is used for combining the configuration instructions to generate a deployment program corresponding to the service to be deployed.
11. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-5.
CN201810582108.4A 2018-06-07 2018-06-07 Service deployment method and device and electronic equipment Active CN108897581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810582108.4A CN108897581B (en) 2018-06-07 2018-06-07 Service deployment method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810582108.4A CN108897581B (en) 2018-06-07 2018-06-07 Service deployment method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108897581A CN108897581A (en) 2018-11-27
CN108897581B true CN108897581B (en) 2022-03-04

Family

ID=64344206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810582108.4A Active CN108897581B (en) 2018-06-07 2018-06-07 Service deployment method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108897581B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527318A (en) * 2020-12-10 2021-03-19 北京奇艺世纪科技有限公司 Service processing method and device and online service system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533349A (en) * 2009-04-15 2009-09-16 哈尔滨工业大学 Platform-related model of large-granularity components and method of automatic code generation thereof
US8434070B2 (en) * 2010-10-26 2013-04-30 International Business Machines Corporation Generating specifications of client-server applications for static analysis
EP2628077A4 (en) * 2010-10-13 2014-06-25 Hewlett Packard Development Co Creating a configuration file template
CN106033335A (en) * 2015-03-11 2016-10-19 腾讯科技(深圳)有限公司 An installation package generating method and device
CN106406951A (en) * 2016-09-20 2017-02-15 杭州昆海信息技术有限公司 An installing method and device for an operating system
CN106648615A (en) * 2016-11-07 2017-05-10 中国航空无线电电子研究所 VxWorks-based BSP code development system
CN108037961A (en) * 2017-12-07 2018-05-15 北京锐安科技有限公司 A kind of application program collocation method, device, server and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8627309B2 (en) * 2010-02-25 2014-01-07 Microsoft Corporation Automated deployment and servicing of distributed applications
CN102455915A (en) * 2010-10-18 2012-05-16 卓望数码技术(深圳)有限公司 Method for automatically configuring distributed system, and server
CN107391092B (en) * 2016-05-16 2021-01-26 北京京东振世信息技术有限公司 Method and system for automatically deploying associated software

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533349A (en) * 2009-04-15 2009-09-16 哈尔滨工业大学 Platform-related model of large-granularity components and method of automatic code generation thereof
EP2628077A4 (en) * 2010-10-13 2014-06-25 Hewlett Packard Development Co Creating a configuration file template
US8434070B2 (en) * 2010-10-26 2013-04-30 International Business Machines Corporation Generating specifications of client-server applications for static analysis
CN106033335A (en) * 2015-03-11 2016-10-19 腾讯科技(深圳)有限公司 An installation package generating method and device
CN106406951A (en) * 2016-09-20 2017-02-15 杭州昆海信息技术有限公司 An installing method and device for an operating system
CN106648615A (en) * 2016-11-07 2017-05-10 中国航空无线电电子研究所 VxWorks-based BSP code development system
CN108037961A (en) * 2017-12-07 2018-05-15 北京锐安科技有限公司 A kind of application program collocation method, device, server and storage medium

Also Published As

Publication number Publication date
CN108897581A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN107580083B (en) Method and system for allocating IP addresses of containers
CN109951315B (en) Method and system for mapping YANG model to internal model
US9183062B2 (en) Automated application reconfiguration
US10887190B2 (en) System for simultaneous viewing and editing of multiple network device configurations
US11463478B2 (en) Remediation strategy optimization for development, security and operations (DevSecOps)
CN108572845B (en) Upgrading method of distributed micro-service cluster and related system
US9893959B1 (en) Resource modeling language to specify and control the placement of resources in a cloud environment
CN104765621B (en) A kind of method and system of the deployment program in clustered node
US10057131B1 (en) System and method for topology-aware configuration generation
US11210466B2 (en) Multiple document editing using rules for a restricted language
JP2013080275A (en) Setting control device, setting control method, and setting control program
CN106873970B (en) Installation method and device of operating system
US11386255B2 (en) Parameter extraction from digitized image of a schematic or block diagram for electrical designs
US20210250244A1 (en) Internet of things system topology generation
CN110928554A (en) Deployment method, device, equipment and storage medium
US11144292B2 (en) Packaging support system and packaging support method
CN110825395B (en) Multi-plug-in layered deployment system, device and medium
CN108897581B (en) Service deployment method and device and electronic equipment
CN111984623B (en) Automatic deployment method and device for database cluster, medium and electronic equipment
CN111045928A (en) Interface data testing method, device, terminal and storage medium
CN110546924A (en) network architecture device, network architecture method, and non-transitory computer-readable medium on which program is stored
CN115174529A (en) Network processing method and device, electronic equipment and storage medium
CN113051299A (en) Proxy information processing method, proxy information processing device, computer equipment and storage medium
CN114615150B (en) Simulation network generation method and device
US11934840B2 (en) Classification of hardware components

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant