CN111371571A - Distributed service deployment method based on micro-service framework - Google Patents

Distributed service deployment method based on micro-service framework Download PDF

Info

Publication number
CN111371571A
CN111371571A CN201811590022.2A CN201811590022A CN111371571A CN 111371571 A CN111371571 A CN 111371571A CN 201811590022 A CN201811590022 A CN 201811590022A CN 111371571 A CN111371571 A CN 111371571A
Authority
CN
China
Prior art keywords
service
cluster
central server
installation
deployment
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
CN201811590022.2A
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.)
TD Tech Chengdu Co Ltd
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech 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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN201811590022.2A priority Critical patent/CN111371571A/en
Publication of CN111371571A publication Critical patent/CN111371571A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a distributed service deployment method based on a micro-service framework, which comprises the following steps: selecting one of the cluster servers as a central server, wherein the central server has the authority of logging in other cluster servers without a password; deploying a web management system on a central server; and the central server performs cluster configuration, service installation, service upgrade and service state management on the other cluster servers through the web management system. By applying the technical scheme disclosed by the application, the deployment of all the services on the cluster server can be completed at one time.

Description

Distributed service deployment method based on micro-service framework
Technical Field
The application relates to the technical field of trunking communication, in particular to a distributed service deployment method based on a micro-service framework.
Background
When service installation, upgrade deployment or service state monitoring management needs to be performed on the a cluster server, in the prior art, an installation tool remotely logs on the a cluster server, and performs service installation, upgrade deployment and service state monitoring management on the a cluster server. However, this existing mechanism has the following disadvantages:
1. when the service needs to be distributed and deployed to the N cluster servers, each cluster server needs to be logged in sequence, and installation or upgrade deployment is performed on each cluster server, so that deployment work is more and more complicated along with expansion of the service cluster.
2. The installation tool logs in a certain cluster server, only the service state on the cluster server can be monitored and managed, and the management and control on the whole service cluster state cannot be realized.
Therefore, how to complete the deployment of all the services on the cluster server at one time and how to monitor and manage the state information of all the services in the cluster are an urgent technical problem to be solved.
Disclosure of Invention
The application provides a distributed service deployment method based on a micro-service framework, which is used for completing the deployment of all services on a cluster server at one time.
The application discloses a distributed service deployment method based on a micro-service framework, which comprises the following steps:
selecting one of the cluster servers as a central server, wherein the central server has the authority of logging in other cluster servers without a password;
deploying a web management system on a central server;
and the central server performs cluster configuration, service installation, service upgrade and service state management on the other cluster servers through the web management system.
Preferably, the cluster configuration includes: and adding, deleting and modifying cluster information.
Preferably, the service installation comprises: creating an installation task, uploading an installation package, and executing installation;
the task comprises a plurality of subtasks, and each subtask specifically describes the service type, the occupied port number and the cluster server information of each service deployment.
Preferably, after the installation task is started, the central server decompresses the service installation package uploaded by the operation maintenance client, and then deploys the subtasks in sequence: and copying scripts, installation packages and configuration files required by service deployment to other remote cluster servers, and then remotely executing installation scripts to complete the service deployment of the remote cluster servers.
Preferably, the service upgrade includes: establishing an upgrading task, uploading an upgrading packet, and executing upgrading;
the task comprises a plurality of subtasks, and each subtask specifically describes the service type, the occupied port number and the cluster server information of each service deployment.
Preferably, after the upgrade task starts, the central server decompresses the service upgrade package uploaded by the operation maintenance client, and then sequentially deploys the subtasks: and copying scripts, upgrading packages and configuration files required by service deployment to other remote cluster servers, and then remotely executing installation scripts to complete the service deployment of the remote cluster servers.
Preferably, the service status management includes: after the central server successfully deploys other cluster servers in a remote manner, the central server stores the deployment information of each service to the central server, so that the unified monitoring of all service deployment information in the cluster is realized, and the method specifically comprises the following steps: service location, service occupation port number, service type, version number, etc.
Preferably, the central server has the authority to start, stop, and offload services on the remote cluster servers.
Preferably, the central server is set to have the authority of logging in other cluster servers without a password through the SSH (secure Shell protocol).
Preferably, the web management system provides a functional interface for cluster configuration, service installation, service upgrade and service state management, and the central server performs corresponding operations on other cluster servers by selecting corresponding functions.
According to the technical scheme, the distributed service deployment method based on the micro-service framework provided by the application has the advantages that one of the cluster servers is selected as the central server, so that the central server has the authority of logging in other cluster servers without passwords; then, deploying a web management system on a central server; the central server can perform cluster configuration, service installation, service upgrade and service state management on other cluster servers through the web management system, so that deployment of all services on the cluster servers is completed at one time.
And after the central server successfully deploys other cluster servers remotely, the central server stores the deployment information of each service to the central server, so that the unified monitoring of all service deployment information in the cluster is realized.
Drawings
FIG. 1 is a schematic flow chart of a distributed service deployment method based on a microservice framework according to the present invention;
fig. 2 is a schematic flow chart of upgrading a service in a cluster according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below by referring to the accompanying drawings and examples.
In order to solve the problems in the prior art, the present application provides a distributed service deployment method based on a microservice framework, as shown in fig. 1, the method includes the following steps:
step 101: and selecting one of the cluster servers as a central server which has the authority of logging in other cluster servers without a password.
Here, the central server may be set to have the password-free login authority to the other cluster servers through a Secure Shell Protocol (SSH) service.
Step 102: a web management system is deployed on a central server.
The web management system can provide functional interfaces such as cluster configuration, service installation, service upgrade and service state management, so that the central server can perform corresponding operations on other cluster servers.
Step 103: the central server performs cluster configuration, service installation, service upgrade, service state management and the like on other cluster servers through the web management system. Wherein:
1) the cluster configuration comprises the following steps: and adding, deleting and modifying cluster information.
2) The service installation comprises the following steps: and establishing an installation task, uploading an installation package, and executing installation. The task may include several subtasks, each of which specifically describes a service type, an occupied port number, cluster server information, and the like deployed by each service.
Specifically, the method comprises the following steps: after the installation task starts, the central server decompresses the service installation package uploaded by the operation maintenance client, and then deploys the subtasks in sequence: and copying scripts, installation packages, configuration files and the like required by service deployment to other remote cluster servers, and then remotely executing installation scripts to complete the service deployment of the remote cluster servers.
3) The service upgrade comprises the following steps: and establishing an upgrading task, uploading an upgrading packet and executing upgrading. The task may include several subtasks, each of which specifically describes a service type, an occupied port number, cluster server information, and the like deployed by each service.
Specifically, the method comprises the following steps: after the upgrading task starts, the central server decompresses the service upgrading packet uploaded by the operation maintenance client, and then deploys the subtasks in sequence: and copying scripts, upgrade packages, configuration files and the like required by service deployment to other remote cluster servers, and then remotely executing installation scripts to complete the service deployment of the remote cluster servers.
4) The service state management comprises the following steps: after the central server successfully deploys other cluster servers in a remote manner, the central server stores the deployment information of each service to the central server so as to realize the unified monitoring of all the service deployment information in the cluster, which specifically comprises the following steps: service location, service occupation port number, service type, version number, etc. Meanwhile, the central server has the authority to start, stop and unload the service on the remote cluster server, and can start, stop and unload the service on the remote cluster server.
Fig. 2 is a schematic flow chart of upgrading a service in a cluster in an embodiment of the present invention, including the following steps:
step 1: and the operation maintenance client sends a request for viewing the service installation information to the central server.
Step 2: and the central server returns service installation information to the operation maintenance client.
And step 3: and the operation maintenance client determines the service to be upgraded according to the service installation information returned by the central server.
And 4, step 4: and the operation maintenance client uploads the upgrade service package to the central server.
And 5: and the central server returns an indication of successful uploading to the operation maintenance client after receiving the upgrading service package.
Step 6: and the operation maintenance client sends an upgrade execution instruction to the central server.
And 7: the central server uploads the upgrade service package to other cluster servers (e.g., cluster servers a/B/C as shown) that are remote.
And 8: and the cluster server receiving the upgrade service package returns an indication of successful uploading to the central server.
And step 9: and the central server sends an upgrading execution instruction to the cluster server returning the uploading success indication.
Step 10: and the cluster server receiving the upgrading instruction executes upgrading, and returns an execution success indication to the central server after the upgrading is successful.
Step 11: and after receiving the execution success indication returned by the cluster server, the central server returns the execution success indication to the operation maintenance client.
And finishing the service upgrading process in the cluster.
The installation and upgrade processes are similar, and can be implemented with reference to fig. 2 and the description thereof, which are not described herein again.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A distributed service deployment method based on a micro-service framework is characterized by comprising the following steps:
selecting one of the cluster servers as a central server, wherein the central server has the authority of logging in other cluster servers without a password;
deploying a web management system on a central server;
and the central server performs cluster configuration, service installation, service upgrade and service state management on the other cluster servers through the web management system.
2. The method of claim 1, wherein:
the cluster configuration comprises: and adding, deleting and modifying cluster information.
3. The method of claim 1, wherein:
the service installation comprises: creating an installation task, uploading an installation package, and executing installation;
the task comprises a plurality of subtasks, and each subtask specifically describes the service type, the occupied port number and the cluster server information of each service deployment.
4. The method of claim 3, wherein:
after the installation task starts, the central server decompresses the service installation package uploaded by the operation maintenance client, and then deploys the subtasks in sequence: and copying scripts, installation packages and configuration files required by service deployment to other remote cluster servers, and then remotely executing installation scripts to complete the service deployment of the remote cluster servers.
5. The method of claim 1, wherein:
the service upgrade comprises the following steps: establishing an upgrading task, uploading an upgrading packet, and executing upgrading;
the task comprises a plurality of subtasks, and each subtask specifically describes the service type, the occupied port number and the cluster server information of each service deployment.
6. The method of claim 5, wherein:
after the upgrading task starts, the central server decompresses the service upgrading packet uploaded by the operation maintenance client, and then deploys the subtasks in sequence: and copying scripts, upgrading packages and configuration files required by service deployment to other remote cluster servers, and then remotely executing installation scripts to complete the service deployment of the remote cluster servers.
7. The method according to claim 4 or 6, characterized in that:
the service state management comprises: after the central server successfully deploys other cluster servers in a remote manner, the central server stores the deployment information of each service to the central server, so that the unified monitoring of all service deployment information in the cluster is realized, and the method specifically comprises the following steps: service location, service occupation port number, service type, version number, etc.
8. The method of claim 7, wherein:
the central server has the authority to start, stop, and offload services on the remote cluster servers.
9. The method according to any one of claims 1 to 6, wherein:
and setting the authority of the central server to log in other cluster servers without a password through a secure shell protocol (SSH) service.
10. The method according to any one of claims 1 to 6, wherein:
the web management system provides functional interfaces of cluster configuration, service installation, service upgrade and service state management, and the central server performs corresponding operations on other cluster servers by selecting corresponding functions.
CN201811590022.2A 2018-12-25 2018-12-25 Distributed service deployment method based on micro-service framework Pending CN111371571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811590022.2A CN111371571A (en) 2018-12-25 2018-12-25 Distributed service deployment method based on micro-service framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811590022.2A CN111371571A (en) 2018-12-25 2018-12-25 Distributed service deployment method based on micro-service framework

Publications (1)

Publication Number Publication Date
CN111371571A true CN111371571A (en) 2020-07-03

Family

ID=71207866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811590022.2A Pending CN111371571A (en) 2018-12-25 2018-12-25 Distributed service deployment method based on micro-service framework

Country Status (1)

Country Link
CN (1) CN111371571A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782231A (en) * 2020-07-14 2020-10-16 厦门市美亚柏科信息股份有限公司 Service deployment method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120089726A1 (en) * 2010-10-06 2012-04-12 Infosys Technologies Ltd. Automated service level management of applications in cloud computing environment
CN103227839A (en) * 2013-05-10 2013-07-31 网宿科技股份有限公司 Management system for regional autonomy of content distribution network server
CN103716188A (en) * 2013-12-20 2014-04-09 上海网达软件股份有限公司 Management and maintenance method for Linux server cluster management
CN108924217A (en) * 2018-06-29 2018-11-30 中山大学 A kind of distribution cloud system Automation arranging method
CN108965003A (en) * 2018-07-16 2018-12-07 郑州云海信息技术有限公司 A kind of dispositions method of distributed type assemblies, device, system and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120089726A1 (en) * 2010-10-06 2012-04-12 Infosys Technologies Ltd. Automated service level management of applications in cloud computing environment
CN103227839A (en) * 2013-05-10 2013-07-31 网宿科技股份有限公司 Management system for regional autonomy of content distribution network server
CN103716188A (en) * 2013-12-20 2014-04-09 上海网达软件股份有限公司 Management and maintenance method for Linux server cluster management
CN108924217A (en) * 2018-06-29 2018-11-30 中山大学 A kind of distribution cloud system Automation arranging method
CN108965003A (en) * 2018-07-16 2018-12-07 郑州云海信息技术有限公司 A kind of dispositions method of distributed type assemblies, device, system and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782231A (en) * 2020-07-14 2020-10-16 厦门市美亚柏科信息股份有限公司 Service deployment method and device

Similar Documents

Publication Publication Date Title
CN110572436B (en) Multi-place cross-cluster server deployment method and system
US20220147367A1 (en) Method and System for Automation Tool Set for Server Maintenance Actions
KR101954480B1 (en) Automated build-out of a cloud-computing stamp
US20190121631A1 (en) Deployment of applications to managed devices
CN111045854B (en) Method, apparatus and computer readable medium for managing service containers
US9521187B2 (en) Managed filed transfer utilizing dynamic horizontal and vertical scaling
US20130138818A1 (en) Method for accessing an automation system and system operating according to the method
US20120005325A1 (en) Systems and methods for automated processing of devices
CN107741852B (en) Service deployment method based on cluster software
EP3076290B1 (en) Method and device for remotely updating application program
US20090172655A1 (en) System, method and article of manufacture for using shadow installations of software modules during distributed system upgrade
CN110912728B (en) Operating system patch batch automatic update management method and system
US20230034901A1 (en) Resource pool management system, resource pool management method and program
CN113645314B (en) Private cloud deployment method and server
CN111277628B (en) Server configuration method and device and service server
US10651895B2 (en) Provisioning devices using near-field communication
CN111371571A (en) Distributed service deployment method based on micro-service framework
US11693643B2 (en) Network-based solution module deployment platform
CN106506197B (en) Method and device for managing core service platform
JP4229288B2 (en) Distribution information generation system and distribution information generation method
EP3261291B1 (en) Method for enhanced management and/or deployment of network nodes of a communications network, communications network, a plurality of physical and/or virtual machines, orchestration entity, program and computer program product
CN112564979A (en) Execution method and device for construction task, computer equipment and storage medium
CN112000540A (en) Monitoring processing method, system, equipment and storage medium for distributed deployment products
CN111130851A (en) Method for visually deploying and managing kafka cluster
CN105471594B (en) The method and apparatus for managing resource

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200703

RJ01 Rejection of invention patent application after publication