CN108900356A - A kind of cloud service dispositions method and system - Google Patents

A kind of cloud service dispositions method and system Download PDF

Info

Publication number
CN108900356A
CN108900356A CN201810826274.4A CN201810826274A CN108900356A CN 108900356 A CN108900356 A CN 108900356A CN 201810826274 A CN201810826274 A CN 201810826274A CN 108900356 A CN108900356 A CN 108900356A
Authority
CN
China
Prior art keywords
micro services
node
deployment
cloud service
node group
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
CN201810826274.4A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810826274.4A priority Critical patent/CN108900356A/en
Publication of CN108900356A publication Critical patent/CN108900356A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/10Protocols in which an application is distributed across nodes in the network
    • 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

Landscapes

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

Abstract

The invention discloses a kind of cloud service dispositions method and systems.It is related to cloud service micro services technology, knows that aftersensation, malfunction elimination are difficult after solving the problems, such as cloud service deployment.This method includes:Deployment inspection is carried out to each node in micro services node group;When there is deployment inspection result is the node of failure, reselecting node and replacing the deployment inspection result is that the micro services node group is added in the node to fail;The installation of micro services software package is carried out in the micro services node group.Technical solution provided by the invention is disposed suitable for micro services, realizes automatic, reliable micro services deployment.

Description

A kind of cloud service dispositions method and system
Technical field
The present invention relates to cloud service micro services technology, espespecially a kind of cloud service dispositions method and system.
Background technique
Currently, cloud computing is gradually approved by industry, and cloud service needed for people are obtained by cloud computing has become normality.With The development of distributed micro services, can finally be provided to what the cloud service of user was all made of many micro services, this just gives cloud clothes The deployment of business brings huge challenge.In order to guarantee the quick delivery and quality of cloud service, common cloud service deployment is all It is preparatory deployment manually or automatically, whether each micro services checked in cloud service again after the completion of deployment can be used, finally It delivers to customer.But if some micro services is unavailable among the cloud service delivered, it is unavailable to will result in entire cloud service, It needs to check again, repair, take time and effort.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of cloud service dispositions method and systems, by disposing When deployment inspection is carried out to the node of deployment micro services, determine that installing software after node installation environment is normal again completes deployment.Solution The problem that aftersensation, malfunction elimination difficulty are known after cloud service of having determined deployment realizes automatic, reliable micro services deployment.
In order to reach the object of the invention, the present invention provides a kind of cloud service dispositions methods, including:
Deployment inspection is carried out to each node in micro services node group;
When there is deployment inspection result is the node of failure, reselects node and replace the deployment inspection result to lose The micro services node group is added in the node lost;
The installation of micro services software package is carried out in the micro services node group.
Preferably, after carrying out the step of deployment checks to each node in micro services node group, further include:
When each node in the micro services node group passes through deployment inspection, in the micro services node group Carry out the installation of micro services software package.
Preferably, after the step of installation of micro services software package is carried out in the micro services node group, further include:
Can not obtain more nodes replace in the micro services node group dispose inspection result be fail node when, take The deployment for the cloud service micro services that disappear.
Preferably, before carrying out the step of deployment checks to each node in micro services node group, further include:
Deployment management receives and parses through the deployment message constructed according to cloud service metadata, obtains micro services node group, institute Stating micro services node group includes multiple nodes;
Each node into the micro services node group distributes micro services software package.
The present invention also provides a kind of cloud service deployment systems, including:
Deployment checks module, for carrying out deployment inspection to each node in micro services node group;
Node replacement module is disposed, for node being reselected and being replaced when there is deployment inspection result is the node of failure It changes the node that the deployment inspection result is failure and the micro services node group is added;
Software installation module, for carrying out the installation of micro services software package in the micro services node group.
Preferably, the software installation module, each node being also used in the micro services node group pass through institute When stating deployment inspection, the installation of micro services software package is carried out in the micro services node group.
Preferably, the software installation module is also used to that the more nodes replacement micro services node group can not be being obtained When middle deployment inspection result is the node of failure, cancel the deployment of cloud service micro services.
Preferably, which further includes:
Management module is disposed, for receiving and parsing through the deployment message of cloud service metadata building, obtains micro services node Group, the micro services node group include multiple nodes, and each node into the micro services node group distributes micro services software Packet.
The present invention provides a kind of cloud service dispositions method and systems, to each node carry out portion in micro services node group Administration checks, when there is deployment inspection result is the node of failure, reselects node and replaces the deployment inspection result to lose The micro services node group is added in the node lost, and the installation of micro services software package is carried out in the micro services node group.It solves The problem that aftersensation, malfunction elimination difficulty are known after cloud service deployment realizes automatic, reliable micro services deployment.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow diagram for cloud service dispositions method that one embodiment of the invention provides;
Fig. 2 is a kind of structural schematic diagram for cloud service deployment system that one embodiment of the invention provides.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
The embodiment provides a kind of cloud service dispositions method and systems.With reference to the accompanying drawing, to of the invention Embodiment is described in detail.
One embodiment of the invention provides a kind of cloud service dispositions method, disposes the process of micro services such as using this method Shown in Fig. 1, including:
Step 101, deployment management receive and parse through the deployment message constructed according to cloud service metadata, obtain micro services section Point group, the micro services node group include multiple nodes.
In this step, deployment management receives and parses through the deployment message constructed according to cloud service metadata, according in message Hold and formulate corresponding deployment way, obtains micro services node group and the corresponding micro services software package of each micro services.
Micro services node group includes multiple nodes, and one or more micro services are disposed on each node.
Step 102 carries out deployment inspection to each node in micro services node group.
In this step, deployment inspection is carried out to each node, to determine whether node working condition meets needed for micro services The installation environment wanted.
When each node in the micro services node group passes through deployment inspection, it is directly entered step 104, The micro services node group carries out the installation of micro services software package.
When there is deployment inspection result is the node of failure, enters step 103 and reselect node.
Preferably, it is also possible to when all nodes all check success, or a small amount of node inspection fails, into second-order Section carries out the installation of micro services software package.If checking that the number of nodes of failure is more, reselects node and check in incognito Business, until all inspections all pass through.If final execute checks still there is part of nodes failure, cancel installation.
Step 103, when there is deployment inspection result be the node of failure, reselect node and replace deployment inspection As a result the micro services node group is added for the node of failure.
After completing node replacement in this step, needs to return to step 102 and carry out once disposing inspection again, if there are still Deployment checks the node of failure, then needs to carry out a minor node replacement again.It is checked when deployment is not achieved in the quantity of available node The number of nodes of failure, or the number that deployment checks has been more than preset inspection number thresholding, can not obtain more nodes replacement When disposing the node that inspection result is failure in the micro services node group, 106 are entered step, cancels the portion of cloud service micro services Administration.
Step 104, each node into the micro services node group distribute micro services software package.
Step 105 carries out the installation of micro services software package in the micro services node group.
Step 106, can not obtain more nodes replace in the micro services node group dispose inspection result be fail When node, cancel the deployment of cloud service micro services.
One embodiment of the invention additionally provides a kind of cloud service deployment system, is based on 2PC two-phase commitment protocol, and adopt It is greater than the thought administered with prevention to be managed micro services and environment, on this basis, the deployment of micro services component is carried out Standardization meets the open and compatible to saas service improvement, high extension demand.Micro services component must have and can check, can hold The three big characteristics such as go, can cancel.It is executable and can cancel and must satisfy idempotence (feature is caused by it is arbitrarily performed a plurality of times It influences identical as the influence once executed).The system includes structure management, deployment management, wherein deployment management is comprising coordinating Controller and executive module, structure management mainly manage the metadata of selected cloud service, can according to its standard configuration, it is high with etc. different dimensionals Degree sets relevant parameter, and user can also dispose management in the message for receiving structure management and sending over custom parameter Afterwards, corresponding deployment way is formulated according to message content, selects node, micro services packet, then distribution software package to respective nodes, What the first stage first carried out micro services component checks whether interface check micro services can dispose, when all micro services all check Success or some inspection failure execute the execution installation behaviour of all micro services into second stage if all succeeding Make, if there is part failure, then reselect node and check micro services, until all inspections all pass through.Installation is executed, if most It executes eventually and checks still there is part failure, then cancel installation.
The process for completing the deployment of cloud service micro services based on above system is specific as follows:
(1) structure management receives customer service request.
(2) basic micro services needed for being obtained according to cloud service metadata, send deployment message and manage to deployment.
(3) deployment management receives deployment message, and parsing message body selection node constitutes micro services node group and micro services Software installation packet.
(4) tuning controller calls each micro services to check that interface carries out deployment inspection, checks the micro services peace on each node Fill environment.It so far, is the first stage of cloud service micro services deployment.
(5) it records each micro services deployment and checks situation, when the deployment of all micro services checks that being successfully entered second stage carries out Executable installation.
(6) node of failure is checked for deployment, deployment management reselects the section that node replaces deployment inspection failure Point distributes micro services software package, and tuning controller carries out deployment inspection again, until whole node deployment inspections success, enters Second stage executes installation.
(7) if finally still there is the deployment inspection of part of nodes to fail, enter second stage and cancel all installations.
One embodiment of the invention additionally provides a kind of cloud service deployment system, and the structure of the system is as shown in Fig. 2, packet It includes:
Deployment checks module 201, for carrying out deployment inspection to each node in micro services node group;
Node replacement module 202 is disposed, for reselecting node when there is deployment inspection result is the node of failure It replaces the node that the deployment inspection result is failure and the micro services node group is added;
Software installation module 203, for carrying out the installation of micro services software package in the micro services node group.
Preferably, the software installation module 203, each node being also used in the micro services node group pass through When the deployment checks, the installation of micro services software package is carried out in the micro services node group.
Preferably, the software installation module 203 is also used to that the more nodes replacement micro services node can not be being obtained When disposing the node that inspection result is failure in group, cancel the deployment of cloud service micro services.
Preferably, which further includes:
Management module 204 is disposed, for receiving and parsing through the deployment message of cloud service metadata building, obtains micro services section Point group, the micro services node group include multiple nodes, and each node distribution micro services into the micro services node group are soft Part packet.
The embodiment provides a kind of cloud service dispositions method and systems, to each section in micro services node group Point carries out deployment inspection, when there is deployment inspection result is the node of failure, reselects the node replacement deployment and checks As a result the micro services node group is added for the node of failure, micro services software package peace is carried out in the micro services node group Dress.Know that aftersensation, malfunction elimination are difficult after solving the problems, such as cloud service deployment, realizes automatic, reliable micro services deployment.
Cloud service automatic deployment can be carried out based on 2PC, break the mode commonly first installed and checked afterwards and be based on 2PC using pre- It is anti-to realize the automatic mounting portion serviced greater than the thought administered setting micro services installation standard (detectable, executable, cancel) Administration, greatly reduces the deployment difficulty of cloud service micro services, detects ahead of time, improve deployment quality.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non- Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information Delivery media.

Claims (8)

1. a kind of cloud service dispositions method, which is characterized in that including:
Deployment inspection is carried out to each node in micro services node group;
When there is deployment inspection result is the node of failure, reselecting node and replacing the deployment inspection result is failure The micro services node group is added in node;
The installation of micro services software package is carried out in the micro services node group.
2. cloud service dispositions method according to claim 1, which is characterized in that each section in micro services node group After point carries out the step of deployment checks, further include:
When each node in the micro services node group passes through deployment inspection, carried out in the micro services node group The installation of micro services software package.
3. cloud service dispositions method according to claim 1, which is characterized in that reselect node and replace the deployment inspection After the step of fruit that comes to an end is the node addition micro services node group of failure, further include:
Can not obtain more nodes replace in the micro services node group dispose inspection result be failure node when, cancellation cloud Service the deployment of micro services.
4. cloud service dispositions method according to claim 1, which is characterized in that each node in micro services node group Before carrying out the step of deployment checks, further include:
Deployment management receives and parses through the deployment message constructed according to cloud service metadata, obtains micro services node group, described micro- Service node group includes multiple nodes;
Each node into the micro services node group distributes micro services software package.
5. a kind of cloud service deployment system, which is characterized in that including:
Deployment checks module, for carrying out deployment inspection to each node in micro services node group;
Node replacement module is disposed, for when there is deployment inspection result is the node of failure, reselecting node replacement institute It states the node that deployment inspection result is failure and the micro services node group is added;
Software installation module, for carrying out the installation of micro services software package in the micro services node group.
6. cloud service deployment system according to claim 5, which is characterized in that
The software installation module is also used to each node in the micro services node group and passes through the deployment inspection When, the installation of micro services software package is carried out in the micro services node group.
7. cloud service deployment system according to claim 5, which is characterized in that
The software installation module is also used to the deployment in it can not obtain the more nodes replacement micro services node group and checks knot When fruit is the node of failure, cancel the deployment of cloud service micro services.
8. cloud service deployment system according to claim 5, which is characterized in that the system further includes:
Management module is disposed, for receiving and parsing through the deployment message of cloud service metadata building, obtains micro services node group, institute Stating micro services node group includes multiple nodes, and each node into the micro services node group distributes micro services software package.
CN201810826274.4A 2018-07-25 2018-07-25 A kind of cloud service dispositions method and system Pending CN108900356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810826274.4A CN108900356A (en) 2018-07-25 2018-07-25 A kind of cloud service dispositions method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810826274.4A CN108900356A (en) 2018-07-25 2018-07-25 A kind of cloud service dispositions method and system

Publications (1)

Publication Number Publication Date
CN108900356A true CN108900356A (en) 2018-11-27

Family

ID=64351891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810826274.4A Pending CN108900356A (en) 2018-07-25 2018-07-25 A kind of cloud service dispositions method and system

Country Status (1)

Country Link
CN (1) CN108900356A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552483A (en) * 2020-04-29 2020-08-18 深信服科技股份有限公司 Cloud service deployment method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679717A (en) * 2015-02-15 2015-06-03 北京京东尚科信息技术有限公司 Method and management system of elastic cluster deployment
CN106502769A (en) * 2016-09-30 2017-03-15 华为技术有限公司 Distributed transaction processing method, apparatus and system
CN106775882A (en) * 2016-12-26 2017-05-31 中国银联股份有限公司 Cloud computing server batch dispositions method and device
CN106856489A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 A kind of service node switching method and apparatus of distributed memory system
CN106874076A (en) * 2017-01-21 2017-06-20 浙江沛宏网络科技有限公司 Distributed transaction processing method
CN106909467A (en) * 2017-02-28 2017-06-30 郑州云海信息技术有限公司 A kind of distributed transaction processing method based on micro services framework

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679717A (en) * 2015-02-15 2015-06-03 北京京东尚科信息技术有限公司 Method and management system of elastic cluster deployment
CN106856489A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 A kind of service node switching method and apparatus of distributed memory system
CN106502769A (en) * 2016-09-30 2017-03-15 华为技术有限公司 Distributed transaction processing method, apparatus and system
CN106775882A (en) * 2016-12-26 2017-05-31 中国银联股份有限公司 Cloud computing server batch dispositions method and device
CN106874076A (en) * 2017-01-21 2017-06-20 浙江沛宏网络科技有限公司 Distributed transaction processing method
CN106909467A (en) * 2017-02-28 2017-06-30 郑州云海信息技术有限公司 A kind of distributed transaction processing method based on micro services framework

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552483A (en) * 2020-04-29 2020-08-18 深信服科技股份有限公司 Cloud service deployment method, device, equipment and medium
CN111552483B (en) * 2020-04-29 2024-04-09 深信服科技股份有限公司 Cloud service deployment method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN109344006A (en) A kind of mirror image management method and mirror image management module
WO2016173280A1 (en) Monitoring management method and apparatus
CN110995472A (en) Method and system for fusing micro-service
US20220326940A1 (en) Service Upgrade Method, Apparatus, and System
CN111355600B (en) Main node determining method and device
US11119688B2 (en) Replica processing method and node, storage system, server, and readable medium
US11442756B2 (en) Common service resource application method, related device, and system
CN108900356A (en) A kind of cloud service dispositions method and system
CN110138808B (en) Anti-hijack downloading method and system based on CDN
CN104104701A (en) Online service configuration updating method and system
US8582444B2 (en) Method for detecting hardware faults by determining a ratio of released connections
CN108900603A (en) A kind of server discovery methods, devices and systems
CN106294033A (en) The method of testing of a kind of many machine rooms cache synchronization function and device
CN112564956A (en) Remote upgrading method, equipment and device for client and storage medium
CN105873234B (en) Method and device for establishing connection between virtualized network function and network element management system
CN104618474B (en) Facility information store method and device
CN107203461B (en) Compatibility testing method and device
CN106549788B (en) Service protection transition method and device
CN111459903A (en) Database management system and method
CN113900728A (en) Method, system, electronic device and storage medium for synchronous configuration
CN112532660A (en) Data synchronization method, device and network management system
CN112948195A (en) Interface testing method and device, electronic equipment and storage medium
CN113347221A (en) Data synchronization method, communication station, cluster system and storage device
CN110113187A (en) A kind of configuration update method, device, configuration server and configuration system
CN115242687B (en) Node activity detection method, device, equipment and medium

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

Application publication date: 20181127