CN107741852B - Service deployment method based on cluster software - Google Patents

Service deployment method based on cluster software Download PDF

Info

Publication number
CN107741852B
CN107741852B CN201710957323.3A CN201710957323A CN107741852B CN 107741852 B CN107741852 B CN 107741852B CN 201710957323 A CN201710957323 A CN 201710957323A CN 107741852 B CN107741852 B CN 107741852B
Authority
CN
China
Prior art keywords
cluster
application
software
service
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.)
Active
Application number
CN201710957323.3A
Other languages
Chinese (zh)
Other versions
CN107741852A (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.)
CETC 28 Research Institute
Original Assignee
CETC 28 Research Institute
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 CETC 28 Research Institute filed Critical CETC 28 Research Institute
Priority to CN201710957323.3A priority Critical patent/CN107741852B/en
Publication of CN107741852A publication Critical patent/CN107741852A/en
Application granted granted Critical
Publication of CN107741852B publication Critical patent/CN107741852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a service deployment method based on cluster software, which is applied to the technical field of service integration of a complex networked information system, is mainly applied to various network-centered application service deployments, improves the service rapid construction response capability of the complex networked information system, and further enhances the reliability and the availability of services in the system. The technology is based on an RPC (Remote Procedure Call) service framework and cluster software, wherein the cluster software is software capable of providing deployment and operation management of applications in a distributed environment, a general deployment flow is designed by integrating the cluster software, services developed by the RPC service framework are rapidly deployed in the cluster software, and operation and maintenance related tools are provided. And the quick, simple and stable service deployment capability is provided for service integration in the system.

Description

Service deployment method based on cluster software
Technical Field
The invention belongs to the field of software technology, and relates to a service deployment method based on cluster software.
Background
The service deployment is the most important stage of the delivery after the service development in the system is completed, the workload of development and operation and maintenance personnel can be reduced through simple deployment operation, and the purpose can be achieved by utilizing the existing operating environment and assisting an automatic deployment process.
The cluster software is management software of a server cluster and can meet the characteristic of high availability. For example, one application service needs to be provided with services continuously, the cluster software can run the application on a plurality of servers and ensure that the application on at least one server provides services normally. The cluster is formed by two or more servers built in a network, each node in the cluster runs different application services respectively, and the state of other nodes in the cluster system is monitored simultaneously. When any node fails, the application service running on the failed node can be automatically migrated to other nodes to continue running. The cluster software is a server cluster which does not depend on shared disk array special shared storage equipment and can ensure that application services can be seamlessly migrated.
The cluster deployment is directly used, operation and maintenance developers need to confirm the version each time and upload the version to each server, and the configuration can be used after the configuration is completed. The process is complex, error is easy to make, and error checking is not easy.
Disclosure of Invention
The invention aims to provide a service deployment method based on cluster software.
The technical solution of the present invention is a service deployment method based on cluster software, which is characterized by comprising the following steps:
step 1, establishing a service software library, wherein the service software library consists of tools and storage for managing service software, and can use version management and upload and download developed service software;
step 2, managing a cluster deployment environment, and using cluster deployment service software by accessing more than two cluster software;
and 3, selecting a target cluster required to be deployed by the service software according to the specified version of the service software, and deploying the software into the cluster.
The step 1 comprises the following steps:
step 1-1, creating service application in a service software library, filling service application information which comprises an application ID, an application name, an application description, an application type and an application deployment environment, checking the legality of the filling information, wherein the checking of the legality comprises checking that the service application name and the application description are not null, the application type is in the type range and whether the deployment environment is null or not, if the application type is legal, executing step 1-2, otherwise, prompting that the filling information is wrong;
step 1-2, uploading the service application, and downloading the running deployment package of the service application created in the step 1-1 and forming a current version number;
step 1-3, checking a service application list, and displaying the running deployment package uploaded in each service application in the step 1-2 and version information thereof;
and step 1-4, managing the service application information filled in the step 1-1 and the running deployment package of the service application uploaded in the step 1-2, wherein the management operation comprises information deletion or modification.
The step 2 comprises the following steps:
step 2-1, inputting cluster software position information, generally taking IP and port as main materials, calling an API (application programming interface) of cluster software to acquire cluster information managed by the cluster software by recording the address of the cluster software, prompting that an added cluster environment is abnormal if the acquired information is overtime or returns an error, and storing the acquired cluster information locally if the acquired information is not normal;
step 2-2, calling a cluster software interface to obtain a cluster list managed by cluster software, and displaying information of each cluster, including a cluster ID, a cluster name, a cluster type and cluster description information; the cluster type includes windows, linux and hpronix, and the cluster description information refers to which services are deployed by the cluster, for example, "order information processing cluster".
Step 2-3, deleting the cluster deployment environment: when the accessed cluster needs to be deleted, the cluster deployment environment needing to be deleted is directly selected from the cluster list for deletion.
The step 3 comprises the following steps:
step 3-1, deploying agent software on the server hosts managed by the cluster, the agent software being configured to receive instructions capable of running on the servers, such as "launch download application". Executing the instruction at the server for downloading the service deployment package;
step 3-2, adding and deploying agent software application in cluster software, putting the application into all clusters and setting the application as a mode of starting simultaneously so as to ensure that the agent on each server operates normally;
3-3, selecting the service application managed in the step 1 in a mode of application name and version number, namely selecting the service application to be deployed;
3-4, selecting the cluster deployment environment managed in the step 2, selecting an operation environment matched with the application selected in the step 3-3 in the cluster list, operating the service application to be deployed, judging whether the deployment environment is abnormal or not, if so, prompting that the deployment environment is abnormal and quitting the deployment, otherwise, judging whether the deployment environment is a deployed environment or not, if so, prompting that the application is deployed, otherwise, executing the step 3-5;
3-5, judging whether all the servers in the cluster are started and the proxy normally operates, if not, prompting that the cluster server is not started and interrupting the operation, and if all the servers are started and normally operate, executing the step 3-6;
3-6, judging whether the deployed application is deployed in the cluster, if so, prompting that the application is deployed and interrupting the operation, and if not, executing the step 3-7;
step 3-7, executing the operation of downloading the application on all the servers of the cluster, and using a mode of combining the specified directory, the application name and the version number to specify the deployment directory of the application;
3-8, judging whether the downloading of the applications executed on all the servers of the cluster is successful, if one of the applications fails, performing rollback operation, prompting that the application deployment fails, interrupting the operation, and if the execution is successful, executing the step 3-9;
3-9, after the operation described in the step 3-8 is successfully executed, calling the interface of the cluster software adding application, adding the application into an application list of the cluster software, if the calling is successful, executing the step 3-10, otherwise, prompting a calling error and exiting the operation;
3-10, calling an interface of the cluster software deployment application to add the application to the cluster according to the cluster selected in the step 3-4;
and 3-11, calling an interface of the cluster software starting application, and starting the application.
Has the advantages that: compared with the prior art, the invention has the beneficial effects that: 1) the method makes full use of the reliability of the cluster software for running the application and the related control interface, and takes charge of the running management of the application by the cluster software, so that the application running environment does not need to be concerned, and the running management work is reduced. 2) The invention utilizes the mode of combining the application version management method with the application deployment environment (cluster software) and deploys the application in an interface guiding mode, thereby achieving certain automation, greatly reducing deployment work and further ensuring the reliability and stability of application operation.
Drawings
The foregoing and other advantages of the invention will become more apparent from the following detailed description of the invention when taken in conjunction with the accompanying drawings.
FIG. 1 is a schematic diagram of an implementation of the service deployment method based on cluster software according to the present invention.
FIG. 2 is a service application management flowchart of the cluster software-based service deployment method of the present invention.
FIG. 3 is a flowchart of cluster deployment environment management of the cluster software-based service deployment method of the present invention.
FIG. 4 is a deployment flowchart of the service deployment method based on cluster software according to the present invention.
Detailed Description
The invention is further explained below with reference to the drawings and the embodiments.
With reference to fig. 1, the service deployment method based on cluster software of the present invention is based on cluster software, and implements deployment software capable of managing service applications and rapidly deploying to a cluster. And uploading the service deployment package through the deployment interface by the user, then acquiring the cluster information, downloading the service application from the cluster server, and finally managing and operating by the cluster software, thereby realizing the function of service application deployment. The method specifically comprises the following steps:
as shown in fig. 2, step 1, establishing a service software library, which can use version management and upload and download developed service software;
step 11, creating a service application, such as a user management application, filling in an application ID: YHGLYY, application name: user management application, application description (e.g., "provide user management function, provide REST interface mode call to outside"), application type: web applications, and application deployment environments: linux. Checking the legality of the filling information, if the filling information is legal, executing the step 12, otherwise, prompting that the filling information is wrong;
step 12, uploading the user management application, downloading the running deployment package of the user management application by the service application created in step 11, and forming a current version number: and V1.0.
And step 13, viewing the service application list, and displaying the application deployment package applied in the user management and the version information thereof.
Step 14, managing the user management application information filled in step 11 and the service application deployment package uploaded in step 12, where the specific operation may delete or modify the information.
As shown in fig. 3, step 2 manages the cluster deployment environment, and accesses a plurality of cluster management centers to use cluster deployment service software;
step 21, inputting cluster software position information, generally taking IP and port as main devices, calling an API (application programming interface) of cluster software to acquire cluster information managed by the cluster software by recording the address of the cluster software, prompting that an added cluster environment is abnormal if the acquired cluster information is abnormal, and storing the acquired cluster information in local if the acquired cluster information is abnormal;
step 22, calling the interface to obtain the cluster list managed by the cluster software, and displaying the information of each cluster, including the information of the cluster ID, the cluster name, the cluster type, the cluster description and the like.
And step 23, deleting the cluster deployment environment, wherein when the accessed cluster needs to be deleted, the deleted cluster deployment environment can be deleted by selecting the deleted cluster deployment environment in the list.
As shown in fig. 4, step 3 selects a destination cluster for deploying the user management application software according to a specified version, and deploys the software into the cluster;
step 31, deploying agent software on a server host managed by a cluster to download a user management application software deployment package;
step 32, adding a deployment agent software application in the cluster software, and deploying the deployment agent software application in all the clusters to set a mode of simultaneous activation so as to ensure that the agent on each server operates normally;
step 33, selecting the service application managed in step 1, wherein the selection mode is application name and version number, namely selecting the user management application to be deployed;
step 34, selecting the cluster deployment environment managed in step 2, selecting the running environment matched with the application selected in step 33 in the cluster list, running the deployed service application, judging whether the deployment environment is abnormal, if so, prompting that the deployment environment is abnormal and exiting the deployment, otherwise, judging whether the deployment environment is the deployed environment, if so, prompting that the application is deployed, otherwise, executing step 35;
step 35, judging whether all the servers in the cluster are started and the proxy normally operates, if not, prompting that the cluster server is not started, and interrupting the operation;
step 36, judging whether the deployed application is deployed in the cluster, if so, prompting and interrupting the operation;
step 37, executing the operation of downloading the application on all the servers of the cluster, and using a mode of combining the specified directory, the application name and the version number to specify the deployment directory of the application;
step 38, judging whether the downloading of the applications executed on all the servers of the cluster is successful, if one of the applications fails, performing rollback operation, prompting that the deployment of the applications fails, and interrupting the operation;
after the operations described in step 39 and step 38 are successfully executed, calling the interface of the cluster software adding application, adding the application into the application list of the cluster software, if the calling is successful, executing step 310, otherwise, prompting a calling error, and exiting the operation;
step 310, according to the cluster selected in step 34, calling an interface of a cluster software deployment application to add the application to the cluster;
step 311, calling an interface of the cluster software starting application, and starting the application.
The present invention provides a service deployment method based on cluster software, and a number of methods and ways for implementing the technical solution are provided, the above description is only a preferred embodiment of the present invention, it should be noted that, for those skilled in the art, a number of improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention. All the components not specified in the present embodiment can be realized by the prior art.

Claims (1)

1. A service deployment method based on cluster software is characterized by comprising the following steps:
step 1, establishing a service software library, wherein the service software library can use version management and upload and download developed service software;
step 2, managing a cluster deployment environment, and deploying service software by using cluster software by accessing more than two pieces of cluster software;
step 3, selecting a target cluster required to be deployed by the service software according to the specified version of the service software, and deploying the software into the cluster;
the step 1 of enabling the service software library to use version management and upload and download developed service software comprises the following steps:
step 1-1, creating service application in a service software library, filling service application information including application ID, application name, application description, application type and application deployment environment, checking the legality of the filling information, if the filling information is legal, executing step 1-2, otherwise, prompting that the filling information is wrong;
step 1-2, uploading the service application, and downloading the running deployment package of the service application created in the step 1-1 and forming a current version number;
step 1-3, displaying the running deployment package uploaded in each service application in the step 1-2 and version information thereof in a service application list;
step 1-4, managing the service application information filled in the step 1-1 and the service application running deployment package uploaded in the step 1-2, wherein the management operation comprises information deletion or modification;
the step 2 comprises the following steps:
step 2-1, inputting cluster software position information, calling an API (application programming interface) of cluster software to acquire cluster information managed by the cluster software by recording an address of the cluster software, prompting that an added cluster environment is abnormal if the acquired information is overtime or returns an error, and storing the acquired cluster information locally if the acquired cluster information is not abnormal;
step 2-2, calling a cluster software interface to obtain a cluster list managed by cluster software, and displaying information of each cluster, including a cluster ID, a cluster name, a cluster type and cluster description information;
step 2-3, deleting the cluster deployment environment: when the accessed cluster needs to be deleted, the cluster deployment environment needing to be deleted is directly selected from the cluster list for deletion;
the step 3 comprises the following steps:
step 3-1, deploying agent software on a server host managed by the cluster, wherein the agent software is used for receiving an instruction capable of running on the server and executing the instruction on the server for downloading a service deployment package;
step 3-2, adding a deployment agent software application in cluster software, putting the deployment agent software application into all clusters and setting the deployment agent software application as a mode for starting at the same time;
3-3, selecting the service application managed in the step 1 in a mode of application name and version number, namely selecting the service application to be deployed;
3-4, selecting the cluster deployment environment managed in the step 2, selecting an operation environment matched with the application selected in the step 3-3 in the cluster list, operating the service application to be deployed, judging whether the deployment environment is abnormal or not, if so, prompting that the deployment environment is abnormal and quitting the deployment, otherwise, judging whether the deployment environment is a deployed environment or not, if so, prompting that the application is deployed, otherwise, executing the step 3-5;
3-5, judging whether all the servers in the cluster are started and the proxy normally operates, if not, prompting that the cluster server is not started and interrupting the operation, and if all the servers are started and the proxy normally operates, executing the step 3-6;
3-6, judging whether the deployed application is deployed in the cluster, if so, prompting that the application is deployed and interrupting the operation, and if not, executing the step 3-7;
step 3-7, executing the operation of downloading the application on all the servers of the cluster, and using a mode of combining the specified directory, the application name and the version number to specify the deployment directory of the application;
3-8, judging whether the downloading of the applications executed on all the servers of the cluster is successful, if one of the applications fails, performing rollback operation, prompting that the application deployment fails, interrupting the operation, and if the execution is successful, executing the step 3-9;
3-9, after the operation described in the step 3-8 is successfully executed, calling the interface of the cluster software adding application, adding the application into an application list of the cluster software, if the calling is successful, executing the step 3-10, otherwise, prompting a calling error and exiting the operation;
3-10, calling an interface of the cluster software deployment application to add the application to the cluster according to the cluster selected in the step 3-4;
and 3-11, calling an interface of the cluster software starting application, and starting the application.
CN201710957323.3A 2017-10-16 2017-10-16 Service deployment method based on cluster software Active CN107741852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710957323.3A CN107741852B (en) 2017-10-16 2017-10-16 Service deployment method based on cluster software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710957323.3A CN107741852B (en) 2017-10-16 2017-10-16 Service deployment method based on cluster software

Publications (2)

Publication Number Publication Date
CN107741852A CN107741852A (en) 2018-02-27
CN107741852B true CN107741852B (en) 2020-09-29

Family

ID=61236595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710957323.3A Active CN107741852B (en) 2017-10-16 2017-10-16 Service deployment method based on cluster software

Country Status (1)

Country Link
CN (1) CN107741852B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108847950B (en) * 2018-04-02 2022-06-07 重庆金融资产交易所有限责任公司 Electronic device, cloud system software automatic deployment method and storage medium
CN108762780B (en) * 2018-05-09 2021-09-21 四川华创世纪科技有限公司 Method for realizing service software program separation operation
CN111324356A (en) * 2018-12-17 2020-06-23 北京数安鑫云信息技术有限公司 Software automation deployment method and system
CN110321133B (en) * 2019-07-05 2023-03-14 恒生电子股份有限公司 H5 application deployment method and device
CN110417894B (en) * 2019-07-30 2022-01-07 中国工商银行股份有限公司 Storage cluster deployment system and method
CN111314421B (en) * 2020-01-17 2022-07-15 北京简单一点科技有限公司 Unified product management system based on automatic agent and read-write separation technology
CN111339510A (en) * 2020-03-05 2020-06-26 国网信通亿力科技有限责任公司 Automatic operation and maintenance management system based on script execution
CN115514666A (en) * 2022-09-26 2022-12-23 郑州小鸟信息科技有限公司 Visual deployment method and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100547583C (en) * 2003-08-14 2009-10-07 甲骨文国际公司 Database automatically and the method that dynamically provides
US8316110B1 (en) * 2003-12-18 2012-11-20 Symantec Operating Corporation System and method for clustering standalone server applications and extending cluster functionality
CN103942063B (en) * 2013-11-08 2017-04-26 国家电网公司 Centralized configuration and remote deployment method for Java Web application
CN105323282B (en) * 2014-07-28 2018-12-04 神州数码信息***有限公司 A kind of enterprise's application deployment and management system towards multi-tenant
CN105487891A (en) * 2015-11-26 2016-04-13 航天恒星科技有限公司 Distributed cluster deploying method and system
CN105653329A (en) * 2015-12-30 2016-06-08 国网信息通信产业集团有限公司 Application management method, apparatus and system
CN106254121A (en) * 2016-08-11 2016-12-21 浪潮软件股份有限公司 A kind of automatization disposes and the method for management large data sets group
CN106610836B (en) * 2016-12-23 2019-12-31 国网信息通信产业集团有限公司 Micro-service operation management tool

Also Published As

Publication number Publication date
CN107741852A (en) 2018-02-27

Similar Documents

Publication Publication Date Title
CN107741852B (en) Service deployment method based on cluster software
CN111522628B (en) Kubernetes cluster building deployment method, framework and storage medium based on OpenStack
CN110752947B (en) K8s cluster deployment method and device, and deployment platform
CN109491776B (en) Task arranging method and system
US8615588B2 (en) Accelerate copying of virtual machine images
KR102047216B1 (en) Replaying jobs at a secondary location of a service
CN113296792B (en) Storage method, device, equipment, storage medium and system
US20140237373A1 (en) Method of provisioning a cloud-based render farm
US20100058319A1 (en) Agile deployment of server
CN107395747B (en) High-expansion method based on STF platform
US20200403872A1 (en) Pod migration across nodes of a cluster
CN112882726B (en) Hadoop and Docker-based deployment method of environment system
US20140250069A1 (en) Systems and methods for selectively synchronizing files
CN112214351A (en) Backup data recovery method and device, electronic equipment and storage medium
CN114629921A (en) Cloud platform and bucket management method of object storage service provided by cloud platform
CN111831567B (en) Application test environment configuration method, device, system and medium
CN114679380A (en) Method and related device for creating edge cluster
CN113590169B (en) Application deployment method, application deployment system, and computer-readable storage medium
CN112114939A (en) Distributed system deployment equipment and method
US11681585B2 (en) Data migration for a shared database
US11816462B2 (en) Copy management for container-based applications
CN112667711B (en) MySQL read-only instance management method, system and computer readable medium
CN112035062B (en) Migration method of local storage of cloud computing, computer equipment and storage medium
CN115357198B (en) Mounting method and device of storage volume, storage medium and electronic equipment
CN112506729B (en) Fault simulation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: No.1 Lingshan South Road, Qixia District, Nanjing, Jiangsu Province, 210000

Applicant after: THE 28TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY Group Corp.

Address before: 210007 No. 1 East Street, alfalfa garden, Jiangsu, Nanjing

Applicant before: THE 28TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY Group Corp.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant