CN116301939A - Micro-service deployment method, device, terminal and storage medium - Google Patents

Micro-service deployment method, device, terminal and storage medium Download PDF

Info

Publication number
CN116301939A
CN116301939A CN202310256883.1A CN202310256883A CN116301939A CN 116301939 A CN116301939 A CN 116301939A CN 202310256883 A CN202310256883 A CN 202310256883A CN 116301939 A CN116301939 A CN 116301939A
Authority
CN
China
Prior art keywords
micro
service
services
target server
installation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310256883.1A
Other languages
Chinese (zh)
Inventor
张玉斌
殷帅
李庆海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Dhms Information Technology Co ltd
Original Assignee
Suzhou Dhms Information 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 Suzhou Dhms Information Technology Co ltd filed Critical Suzhou Dhms Information Technology Co ltd
Priority to CN202310256883.1A priority Critical patent/CN116301939A/en
Publication of CN116301939A publication Critical patent/CN116301939A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a micro-service deployment method, a device, a terminal and a storage medium, wherein the method comprises the following steps: receiving a micro-service demand instruction, and determining business micro-services and public/basic micro-services corresponding to the micro-service demand instruction; generating a micro-service installation script based on the determined micro-service and generating micro-service configuration information according to a preset micro-service configuration rule; and sending the micro-service installation script to a target server, and completing the installation and configuration of all the micro-services by combining the micro-service installation script and the micro-service configuration information by the target server. According to the method and the system, the software release platform connected with the target server through the local area network is utilized to download all the micro-service software image files, the container arrangement tool software and the auxiliary tool software to the local area network, so that the purpose of rapidly and conveniently completing the first deployment of the micro-service in the local area network is achieved.

Description

Micro-service deployment method, device, terminal and storage medium
Technical Field
The application relates to the field of micro-service cloud platforms in industrial Internet, in particular to a micro-service deployment method, a device, a terminal and a storage medium.
Background
The micro-service architecture is an emerging technology for deploying applications and services in the cloud, divides and develops software modules of a traditional single architecture in an independent service mode, enables each service to achieve a set of specific functions or characteristics, has multiple functions of module decoupling, good stability and expansibility, is suitable for multi-language multi-team development and the like, and is particularly suitable for large platforms with large user quantity and complex systems. Also, as a result, the micro-service architecture is currently the dominant technology architecture used by most internet enterprises.
In the field of industrial internet at present, a significant portion of industrial manufacturers require that the industrial internet platform to which they are applied be installed and deployed in a local private deployment manner, for information security and confidentiality. In practical application, the performance and resources of the servers utilized by different industrial production enterprises are different, and the industrial production enterprises can put forward customized service demands according to own needs, which results in that even the same type of service, micro services required to be deployed are different on different projects of different clients.
For the first deployment of micro services, a relatively common way is to implement the deployment by using a container arrangement tool and a continuous integration tool in the form of software, and the deployment process generally includes the following steps: preparing hardware environment resources for system operation; the installation of an operating system and necessary software tools is completed in hardware environment resources; preparing release configuration files of all micro services to be released; issuing and deploying all micro services by using a command line or graphical orchestration tool interface; the validity of the micro-service is tested and verified. From the above steps, it can be seen that a platform or system requires more steps to operate when performing the first deployment of a microservice. Because the micro-service image files are generally stored on the remote image management server of the public cloud, a great deal of time is required for downloading the image files, and especially for a complex large-scale system with a great number of micro-services, the deployment work of the micro-services is huge in workload and time consumption.
In combination with the increasingly popular local private deployment and customized service requirements, how to propose a brand-new micro-service deployment scheme to realize the rapid automatic deployment of micro-services in the industrial internet of various physical resources is also a problem to be solved by the technicians in the field.
Disclosure of Invention
In order to improve efficiency of micro-service privatization deployment, the application provides a micro-service deployment method, a device, a terminal and a storage medium. According to the scheme, the software release platform connected with the target server through the local area network is utilized to download all the micro-service software image files, the container arranging tool software and the auxiliary tool software to the local area network, so that the purpose of rapidly and conveniently completing the first deployment of the micro-service in the local area network is achieved. Compared with the manual installation and deployment process for the micro-service in the prior art, the deployment time of the scheme can be saved by more than 80%.
In a first aspect, the present application provides a micro-service deployment method, which adopts the following technical scheme.
A micro-service deployment method comprises the following steps:
receiving a micro-service demand instruction, wherein the micro-service demand instruction is used for indicating to deploy a service micro-service into a target server, determining a service micro-service corresponding to the micro-service demand instruction, and determining public/basic micro-services according to the determined dependency relationship of the service micro-service;
generating a micro-service installation script oriented to the target server based on all the determined business micro-services and the public/basic micro-services, and generating micro-service configuration information corresponding to all the determined business micro-services and the public/basic micro-services according to preset micro-service configuration rules;
and sending the micro-service installation script to the target server, and completing the installation and configuration of all the business micro-services and the public/basic micro-services by the target server in combination with the micro-service installation script and the micro-service configuration information.
By adopting the technical scheme, the automatic local installation and configuration of the micro-service aiming at the micro-service demand instruction are realized, the quick deployment of the micro-service is completed, and the operation efficiency of the micro-service deployment is remarkably improved.
Preferably, before the receiving the micro service requirement instruction, the method further comprises the following steps:
downloading all kinds and all versions of the business micro service software image files and all kinds and all versions of the public/basic micro service software image files, storing the downloaded contents in a local place and uploading the downloaded contents to a container image management unit;
and downloading container editing tool software and auxiliary tool software corresponding to the target server, generating a container editing tool installation configuration script oriented to the target server, and sending the container editing tool installation configuration script to the target server through a local area network.
By adopting the technical scheme, the local uploading, downloading and management of the local area network of all micro services are realized seamlessly by utilizing the software release platform connected with the target server through the local area network, the remote downloading of the image file in the subsequent micro service deployment process is avoided, and the time of micro service deployment is shortened.
Preferably, before the receiving the micro service requirement instruction, the method further comprises the following steps:
if the target server is a single node and the operating system resource of the target server accords with an operation standard, after the target server receives the container arrangement tool installation configuration script, the target server completes operation installation of the container arrangement tool installation configuration script;
and if the target server comprises a plurality of nodes and the operating system resource of each node accords with the operation standard, after the nodes of the target server respectively receive the container arrangement tool installation configuration script, the nodes of the target server complete the operation installation of the container arrangement tool installation configuration script one by one.
By adopting the technical scheme, the rapid installation of the container arranging tool software and the auxiliary tool software in the target server is realized. Meanwhile, the scheme also optimizes the application scenes of different types of target servers possibly appearing, and provides a software resource basis for the subsequent installation and configuration of the micro-service of the target servers.
Preferably, the receiving a micro service demand instruction, where the micro service demand instruction is used to instruct to deploy a service micro service to a target server, determine a service micro service corresponding to the micro service demand instruction, and determine a public/basic micro service according to the determined dependency relationship of the service micro service, and specifically includes the following steps:
receiving a micro-service demand instruction, and determining one or more corresponding appointed versions of business micro-services according to demand contents contained in the micro-service demand instruction;
determining one or more specified versions of a public/base micro-service based on the operating environment on which the selected business micro-service depends;
and recording and summarizing all the determined business micro services and the public/basic micro services to form a micro service total set corresponding to the micro service demand instruction.
Preferably, the generating a micro service installation script for the target server based on all the determined business micro services and the public/basic micro services, and generating micro service configuration information corresponding to all the determined business micro services and the public/basic micro services according to a preset micro service configuration rule, specifically includes the following steps:
generating a micro-service installation script facing to a target server based on the micro-service total set, wherein the micro-service installation script corresponds to all the business micro-services and the public/basic micro-services in the micro-service total set;
and generating micro service configuration information corresponding to the business micro service and the public/basic micro service in the micro service general set one by one according to a preset micro service configuration rule, wherein each piece of micro service configuration information at least comprises a port number, an environment variable and an operation parameter of the micro service corresponding to the piece of information.
Preferably, the sending the micro service installation script to the target server, where the target server completes installation and configuration of all the service micro services and the public/basic micro services by combining the micro service installation script and the micro service configuration information, specifically includes the following steps:
the micro-service installation script is sent to the target server, and the installation of all the business micro-services and the public/basic micro-services in the micro-service total set is completed through the reading of the micro-service installation script by the target server;
and completing the configuration of all the installed business micro services and the public/basic micro services by reading and applying the micro service configuration information through the target server.
By adopting the technical scheme, the specific operation process of each step in the method is further defined, and detailed technical support is provided for the micro-service deployment process in the method.
Preferably, the micro-service deployment method further comprises the following steps:
if the physical resource of the target server is private cloud, simulating a private cloud environment locally, completing the installation and configuration of all the business micro-services and the public/basic micro-services in the private cloud environment by combining the micro-service installation script and the micro-service configuration information to obtain a micro-service deployment image file, transferring the micro-service deployment image file to the target server, and then executing image file recovery and completing the installation by the target server.
By adopting the technical scheme, the special condition that the physical resource of the target server is the private cloud is included in the application range of the method, the realization of the micro-service deployment method is ensured based on the simulation of the client private cloud, so that the method can be compatible with highly customized and privately-owned application scenes, and the practicability of the method is further improved.
In a second aspect, the present application provides a micro-service deployment apparatus, which adopts the following technical scheme.
A micro-service deployment device comprising the following modules:
a micro-service demand response module configured to receive a micro-service demand instruction for instructing deployment of one or more specified versions of a business micro-service into a target server, determining a business micro-service corresponding to the micro-service demand instruction, determining a public/base micro-service according to a dependency relationship of the business micro-service;
the installation script and configuration information generation module is configured to generate a micro-service installation script for the target server based on all the determined business micro-services and the public/basic micro-services, and generate micro-service configuration information corresponding to all the determined business micro-services and the public/basic micro-services according to preset micro-service configuration rules;
the micro-service deployment execution module is configured to send the micro-service installation script to the target server, and the target server completes installation and configuration of all the business micro-services and the public/basic micro-services by combining the micro-service installation script and the micro-service configuration information.
By adopting the technical scheme, automation and convenience of the micro-service deployment process are realized, the workload of micro-service deployment in the client project realization process is reduced, the deployment efficiency is improved, and the deployment time is greatly shortened. Meanwhile, the device can be also adapted to various physical resource private industrial Internet of things systems, and has high adaptability and compatibility.
In a third aspect, the present application provides an intelligent terminal, which adopts the following technical scheme:
an intelligent terminal comprising a memory and a processor, wherein at least one instruction, at least one section of program, code set or instruction set is stored in the memory, and the at least one instruction, at least one section of program, code set or instruction set is loaded and executed by the processor to realize the micro-service deployment method as described above.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical scheme:
a computer readable storage medium having stored therein at least one instruction, at least one program, code set, or instruction set loaded and executed by a processor to implement a micro-service deployment method as described hereinbefore.
In summary, the present application includes at least one of the following beneficial technical effects:
1. according to the scheme, the software release platform connected with the target server through the local area network is utilized to download all the micro-service software image files, the container arrangement tool software and the auxiliary tool software to the local area network, so that the micro-service automation local installation and configuration aiming at the micro-service demand instruction are realized, the quick deployment of the micro-service is completed, and the operating efficiency of the micro-service deployment is remarkably improved.
2. According to the scheme, various conditions of physical resources of the target server are fully considered, and targeted setting is carried out according to each type of conditions, so that smooth realization of the micro-service deployment method is ensured, the scheme can be compatible with highly customized and privately-owned application scenes, and the practicability of the scheme is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained by referring to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow diagram of a micro-service deployment method according to an embodiment of the present application;
FIG. 2 is a flow chart of a preparation stage in a micro-service deployment method according to an embodiment of the present application;
FIG. 3 is a detailed flowchart of step S2 in the micro-service deployment method according to the embodiment of the present application;
FIG. 4 is a detailed flowchart of step S3 in the micro-service deployment method of the embodiment of the present application;
FIG. 5 is a detailed flowchart of step S4 in the micro-service deployment method of the embodiment of the present application;
fig. 6 is a schematic hardware architecture of a micro-service deployment device according to an embodiment of the present application.
Detailed Description
The application provides a micro-service deployment method, a device, a terminal and a storage medium, so as to realize rapid automatic deployment of micro-services in industrial Internet of various physical resources. For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below.
Embodiments of a micro service deployment method of the present application are described in further detail below with reference to the accompanying drawings.
The realization of the whole method is based on a constructed software release platform, and the software release platform is connected with a target server through a local area network. As shown in fig. 1, the method comprises the steps of:
s2, receiving a micro-service demand instruction, wherein the micro-service demand instruction is used for indicating to deploy a service micro-service into a target server, determining a service micro-service corresponding to the micro-service demand instruction, and determining public/basic micro-service according to the determined dependency relationship of the service micro-service; the following procedure may be further refined.
S21, receiving a micro-service demand instruction, wherein the micro-service demand instruction is generated according to the demands of clients or enterprises in practical application, at least comprises one or more specific demand contents, and then determines corresponding one or more specific versions of business micro-services according to the demand contents contained in the micro-service demand instruction;
s22, determining one or more public/basic micro-services with appointed versions based on the running environment on which the selected business micro-service depends;
and S23, recording and summarizing all the determined business micro services and the public/basic micro services to form a micro service total set corresponding to the micro service demand instruction.
S3, generating a micro-service installation script oriented to the target server based on all the determined business micro-services and the public/basic micro-services, and generating micro-service configuration information corresponding to all the determined business micro-services and the public/basic micro-services according to preset micro-service configuration rules; the following procedure may be further refined.
S31, generating a micro-service installation script facing to a target server based on the micro-service total set, wherein the micro-service installation script corresponds to all the business micro-services and the public/basic micro-services in the micro-service total set;
s32, generating micro-service configuration information corresponding to the business micro-service and the public/basic micro-service in the micro-service general set one by one according to a preset micro-service configuration rule, wherein each piece of micro-service configuration information at least comprises a port number, an environment variable and an operation parameter of the micro-service corresponding to the piece of information.
In the practical application process, the setting of the micro service configuration information can be further specifically configured manually, so as to fully meet the requirements of customized and privately-owned use situations.
S4, the micro-service installation script is sent to the target server, and the target server is combined with the micro-service installation script and the micro-service configuration information to complete the installation and configuration of all the business micro-services and the public/basic micro-services; the following procedure may be further refined.
S41, sending the micro-service installation script to the target server, and completing the installation of all the business micro-services and the public/basic micro-services in the micro-service total set one by one through the reading of the micro-service installation script by the target server;
s42, the micro service configuration information is read and applied by the target server to complete the configuration of all the installed business micro services and the public/basic micro services one by one, and a micro service cluster is formed in the target server.
In the implementation process of the method, before the step S2 is started, a complete deployment preparation stage is further included, and the method specifically includes the following steps:
s11, downloading all kinds and all versions of the business micro service software image files and all kinds and all versions of the public/basic micro service software image files, storing the downloaded contents in a local area network and uploading the downloaded contents to a container image management unit;
and S12, downloading container editing tool software and auxiliary tool software corresponding to the target server, generating a container editing tool installation configuration script facing the target server, and sending the container editing tool installation configuration script to the target server through a local area network.
Here, the container editing tool in this embodiment is selected as Kubernetes, the auxiliary tool is a persistent integration tool such as Jenkins, and the container editing tool installation configuration script is essentially a Kubernetes installation configuration script.
S131, if the target server is a single node and the operating system resource of the target server accords with an operation standard, after the target server receives the container arrangement tool installation configuration script, the target server completes operation installation of the container arrangement tool installation configuration script;
and S132, if the target server comprises a plurality of nodes and the operating system resource of each node meets the operation standard, the nodes can be physical servers, PCs or virtual machines, and after the plurality of nodes of the target server respectively receive the container arrangement tool installation configuration script, the plurality of nodes of the target server finish the operation installation of the container arrangement tool installation configuration script one by one.
It should be noted that, considering the characteristics of the micro-service architecture, the service often runs in a Docker or other container images, and the container images and hosts of the Docker need to run in a Linux system, so that the operating system resource meeting the running standard refers to that the target server has an operating system resource and the operating system resource is the Linux system. If the operating system resource of the target server does not meet the operation standard in the previous step, the Linux operating system is installed in the target server and the operation is started.
Considering the special cases that the physical resource of the target server is a private cloud and the data interaction process is difficult to realize, the micro-service deployment method in the embodiment further comprises the following steps:
s5, if the physical resource of the target server is a private cloud, simulating a private cloud environment in a local area network through the server, completing the installation and configuration of all the business micro services and the public/basic micro services in the private cloud environment by combining the micro service installation script and the micro service configuration information, obtaining a micro service deployment image file, storing the micro service deployment image file in a mobile hard disk or an optical disk, transferring the micro service deployment image file to the target server through the mobile hard disk or the optical disk, executing image file recovery work by the target server, and completing the installation of the micro service deployment image file.
Based on the same inventive concept, the embodiment of the application also discloses a micro-service deployment device, and the embodiment of a micro-service deployment method of the application is further described in detail below with reference to the accompanying drawings of the specification.
A micro-service deployment device operates in a software release platform, and the software release platform is connected with a target server through a local area network. The target server is an industrial internet system which finally operates in a user local area network, and the physical resource of the operating target server can be a private cloud, a virtualized server, an independent server or a common PC. As shown in fig. 6, the apparatus includes the following modules:
a micro-service demand response module configured to receive a micro-service demand instruction for instructing deployment of one or more specified versions of a business micro-service into a target server, determining a business micro-service corresponding to the micro-service demand instruction, determining a public/base micro-service according to a dependency relationship of the business micro-service;
the installation script and configuration information generation module is configured to generate a micro-service installation script for the target server based on all the determined business micro-services and the public/basic micro-services, and generate micro-service configuration information corresponding to all the determined business micro-services and the public/basic micro-services according to preset micro-service configuration rules;
the micro-service deployment execution module is configured to send the micro-service installation script to the target server, and the target server completes installation and configuration of all the business micro-services and the public/basic micro-services by combining the micro-service installation script and the micro-service configuration information.
It should be noted that, the device further includes a deployment preparation module, where the deployment preparation module can store all micro-service images of self-development or third parties and related basic images locally, and support functions such as image uploading, downloading, version management, etc. that are the same as those of a remote public cloud image management server, so that when the private local deployment is performed, all micro-service images that need to be installed can be obtained locally from the software publishing platform, so that time required for obtaining image files is greatly reduced.
The deployment preparation module specifically comprises the following units:
the container mirror image management unit is configured to download all kinds and all versions of the business micro service software mirror image files and all kinds and all versions of the public/basic micro service software mirror image files, and the downloaded contents are stored in a local area network and then uploaded;
and the tool installation script preparation unit is configured to download container programming tool software and auxiliary tool software corresponding to the target server, generate a container programming tool installation configuration script facing the target server, and send the container programming tool installation configuration script to the target server through a local area network.
The first tool installation configuration unit is configured to complete the operation installation of the container arrangement tool installation configuration script by the target server after the target server receives the container arrangement tool installation configuration script if the target server is a single node and the operating system resource of the target server accords with the operation standard;
and the second tool installation configuration unit is configured to complete the operation installation of the container arrangement tool installation configuration script one by the plurality of nodes of the target server after the plurality of nodes of the target server respectively receive the container arrangement tool installation configuration script if the target server comprises the plurality of nodes and the operating system resource of each node meets the operation standard.
In one possible implementation manner, the micro service demand response module specifically includes the following units:
the first demand response unit is configured to receive a micro-service demand instruction, and determine one or more corresponding appointed versions of business micro-services according to demand contents contained in the micro-service demand instruction;
a second demand response unit configured to determine one or more specified versions of public/base micro-services based on an operating environment on which the selected business micro-service depends;
and the third demand response unit is configured to record and summarize all the determined business micro services and the public/basic micro services to form a micro service total set corresponding to the micro service demand instruction.
The installation script and configuration information generation module is used for configuring all micro-services according to the requirements of clients or enterprises and the physical resources of the server, and then generating a micro-service installation script facing the target server, which runs on the target server and locally respectively, so as to rapidly complete the first deployment of the target server.
In one possible implementation manner, the installation script and configuration information generating module specifically includes the following units:
an installation script generation unit configured to generate a micro-service installation script for a target server based on the micro-service aggregate, the micro-service installation script corresponding to all of the business micro-services and the public/basic micro-services in the micro-service aggregate;
the configuration information generating unit is configured to generate the micro-service configuration information corresponding to the business micro-service and the public/basic micro-service in the micro-service total set one by one according to a preset micro-service configuration rule, wherein each piece of micro-service configuration information at least comprises a port number, an environment variable and an operation parameter of the micro-service corresponding to the piece of information.
In one possible implementation manner, the micro service deployment execution module specifically includes the following units:
a micro-service installation execution unit configured to send the micro-service installation script to the target server, and complete the installation of all the business micro-services and the public/basic micro-services in the micro-service total set by the target server reading the micro-service installation script;
and the micro service configuration execution unit is configured to complete the configuration of all the installed business micro services and the public/basic micro services through the reading and application of the micro service configuration information by the target server.
It should be noted that the device further includes the following modules:
the private cloud environment deployment module is configured to simulate a private cloud environment locally if the physical resource of the target server is a private cloud, complete the installation and configuration of all the business micro-services and the public/basic micro-services by combining the micro-service installation script and the micro-service configuration information in the private cloud environment, obtain a micro-service deployment image file, transfer the micro-service deployment image file to the target server, and then execute image file recovery and complete image installation by the target server.
Based on the same inventive concept, the embodiment of the application also discloses an intelligent terminal, which comprises a memory and a processor, wherein at least one instruction, at least one section of program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize the micro-service deployment method as described above.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Based on the same inventive concept as described above, the embodiments of the present application further disclose a computer readable storage medium having at least one instruction, at least one program, a code set, or an instruction set stored therein, where the at least one instruction, at least one program, a code set, or an instruction set is loaded and executed by a processor to implement the micro-service deployment method as described above.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the above mentioned storage medium includes, for example: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RandomAccessMemory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The foregoing description of the preferred embodiments is merely exemplary in nature and is in no way intended to limit the invention, since it is intended that all modifications, equivalents, improvements, etc. that fall within the spirit and scope of the invention.

Claims (10)

1. A method of micro-service deployment, comprising the steps of:
receiving a micro-service demand instruction, wherein the micro-service demand instruction is used for indicating to deploy a service micro-service into a target server, determining a service micro-service corresponding to the micro-service demand instruction, and determining public/basic micro-services according to the determined dependency relationship of the service micro-service;
generating a micro-service installation script oriented to the target server based on all the determined business micro-services and the public/basic micro-services, and generating micro-service configuration information corresponding to all the determined business micro-services and the public/basic micro-services according to preset micro-service configuration rules;
and sending the micro-service installation script to the target server, and completing the installation and configuration of all the business micro-services and the public/basic micro-services by the target server in combination with the micro-service installation script and the micro-service configuration information.
2. The micro-service deployment method of claim 1, further comprising the steps of, prior to said accepting the micro-service demand instruction:
downloading all kinds and all versions of the business micro service software image files and all kinds and all versions of the public/basic micro service software image files, storing the downloaded contents in a local place and uploading the downloaded contents to a container image management unit;
and downloading container editing tool software and auxiliary tool software corresponding to the target server, generating a container editing tool installation configuration script oriented to the target server, and sending the container editing tool installation configuration script to the target server through a local area network.
3. The micro-service deployment method of claim 2, further comprising, prior to said receiving the micro-service demand instruction, the steps of:
if the target server is a single node and the operating system resource of the target server accords with an operation standard, after the target server receives the container arrangement tool installation configuration script, the target server completes operation installation of the container arrangement tool installation configuration script;
and if the target server comprises a plurality of nodes and the operating system resource of each node accords with the operation standard, after the nodes of the target server respectively receive the container arrangement tool installation configuration script, the nodes of the target server complete the operation installation of the container arrangement tool installation configuration script one by one.
4. The method for deploying micro-services according to claim 1, wherein the receiving micro-service requirement instruction is used for indicating to deploy the micro-services into the target server, determining the micro-services corresponding to the micro-service requirement instruction, and determining the public/basic micro-services according to the determined dependency relationship of the micro-services, and specifically comprises the following steps:
receiving a micro-service demand instruction, and determining one or more corresponding appointed versions of business micro-services according to demand contents contained in the micro-service demand instruction;
determining one or more specified versions of a public/base micro-service based on the operating environment on which the selected business micro-service depends;
and recording and summarizing all the determined business micro services and the public/basic micro services to form a micro service total set corresponding to the micro service demand instruction.
5. The method for deploying micro-services according to claim 4, wherein the generating a micro-service installation script for the target server based on all the determined business micro-services and the public/basic micro-services, and generating micro-service configuration information corresponding to all the determined business micro-services and the public/basic micro-services according to a preset micro-service configuration rule, comprises the steps of:
generating a micro-service installation script facing to a target server based on the micro-service total set, wherein the micro-service installation script corresponds to all the business micro-services and the public/basic micro-services in the micro-service total set;
and generating micro service configuration information corresponding to the business micro service and the public/basic micro service in the micro service general set one by one according to a preset micro service configuration rule, wherein each piece of micro service configuration information at least comprises a port number, an environment variable and an operation parameter of the micro service corresponding to the piece of information.
6. The method for deploying micro-services according to claim 5, wherein the step of sending the micro-service installation script to the target server, and the target server combines the micro-service installation script and the micro-service configuration information to complete the installation and configuration of all the business micro-services and the public/basic micro-services, specifically comprises the steps of:
the micro-service installation script is sent to the target server, and the installation of all the business micro-services and the public/basic micro-services in the micro-service total set is completed through the reading of the micro-service installation script by the target server;
and completing the configuration of all the installed business micro services and the public/basic micro services by reading and applying the micro service configuration information through the target server.
7. The micro service deployment method according to claim 1, further comprising the steps of:
if the physical resource of the target server is private cloud, simulating a private cloud environment locally, completing the installation and configuration of all the business micro-services and the public/basic micro-services in the private cloud environment by combining the micro-service installation script and the micro-service configuration information to obtain a micro-service deployment image file, transferring the micro-service deployment image file to the target server, and then executing image file recovery and completing the installation by the target server.
8. A micro-service deployment device, comprising the following modules:
a micro-service demand response module configured to receive a micro-service demand instruction for instructing deployment of one or more specified versions of a business micro-service into a target server, determining a business micro-service corresponding to the micro-service demand instruction, determining a public/base micro-service according to a dependency relationship of the business micro-service;
the installation script and configuration information generation module is configured to generate a micro-service installation script for the target server based on all the determined business micro-services and the public/basic micro-services, and generate micro-service configuration information corresponding to all the determined business micro-services and the public/basic micro-services according to preset micro-service configuration rules;
the micro-service deployment execution module is configured to send the micro-service installation script to the target server, and the target server completes installation and configuration of all the business micro-services and the public/basic micro-services by combining the micro-service installation script and the micro-service configuration information.
9. An intelligent terminal, characterized by comprising a memory and a processor, wherein at least one instruction, at least one program, code set or instruction set is stored in the memory, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the micro-service deployment method according to any one of claims 1 to 7.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, code set, or instruction set loaded and executed by a processor to implement the micro-service deployment method of any of claims 1 to 7.
CN202310256883.1A 2023-03-17 2023-03-17 Micro-service deployment method, device, terminal and storage medium Pending CN116301939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310256883.1A CN116301939A (en) 2023-03-17 2023-03-17 Micro-service deployment method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310256883.1A CN116301939A (en) 2023-03-17 2023-03-17 Micro-service deployment method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN116301939A true CN116301939A (en) 2023-06-23

Family

ID=86800964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310256883.1A Pending CN116301939A (en) 2023-03-17 2023-03-17 Micro-service deployment method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116301939A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117640363A (en) * 2024-01-24 2024-03-01 成都中科合迅科技有限公司 Micro-service configuration and management and control method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117640363A (en) * 2024-01-24 2024-03-01 成都中科合迅科技有限公司 Micro-service configuration and management and control method and system
CN117640363B (en) * 2024-01-24 2024-04-05 成都中科合迅科技有限公司 Micro-service configuration and management and control method and system

Similar Documents

Publication Publication Date Title
US11301287B2 (en) Pattern-based orchestration of cloud provisioning tasks at runtime
US8990771B2 (en) Building and distributing software packages
CN100461104C (en) Method and system for creation of operating system partition table
US7448034B2 (en) Build time determination and installation of drivers on cloned systems
CN100547551C (en) Use the method and system of general WindowsPE in the dissimilar operating systems
US7216200B2 (en) System and method for remote RAID configuration
CN103795759B (en) The dispatching method and system of a kind of virtual machine image file
CN110990026B (en) Automatic deployment method and system for PaaS platform
CN111367534B (en) Service arrangement method and system based on application environment
CN101271425A (en) Application program server pre-configuration system and method based on magnetic disk image outline
CN111026723B (en) Big data cluster management control method and device, computer equipment and storage medium
CN113127150B (en) Rapid deployment method and device of cloud primary system, electronic equipment and storage medium
WO2022142601A1 (en) Application program construction method and apparatus, and computer device
CN114827241A (en) Cross-platform deployment method and system
CN111538625B (en) Ambari cluster deployment and data backup method based on Docker technology and electronic equipment
CN116301939A (en) Micro-service deployment method, device, terminal and storage medium
US7882232B2 (en) Rapid resource provisioning with automated throttling
CN115525396A (en) Application management method and device based on cloud protogenesis
CN116860746A (en) Processing system for lightweight big data
CN117859309A (en) Automatically selecting a node on which to perform a task
CN117112122A (en) Cluster deployment method and device
CN112256290B (en) Device and method for deploying integrated operating system
CN113641641A (en) Switching method, switching system, equipment and storage medium of file storage service
CN113268252A (en) Mirror image manufacturing method and system based on virtual chemical industry control equipment and storage medium
US10617955B1 (en) Testing and delivery of game design assets in a service provider environment

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