CN109117146A - Automatic deployment method, device, storage medium and the computer equipment of cloud platform duoble computer disaster-tolerance system - Google Patents
Automatic deployment method, device, storage medium and the computer equipment of cloud platform duoble computer disaster-tolerance system Download PDFInfo
- Publication number
- CN109117146A CN109117146A CN201710481960.8A CN201710481960A CN109117146A CN 109117146 A CN109117146 A CN 109117146A CN 201710481960 A CN201710481960 A CN 201710481960A CN 109117146 A CN109117146 A CN 109117146A
- Authority
- CN
- China
- Prior art keywords
- shipper
- virtual machine
- software
- duplex
- cloud platform
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1479—Generic software techniques for error detection or fault masking
- G06F11/1489—Generic software techniques for error detection or fault masking through recovery blocks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
Abstract
The present invention relates to automatic deployment method, device, storage medium and the computer equipments of a kind of cloud platform duoble computer disaster-tolerance system.Cloud platform interface is called to generate virtual resource according to the two-shipper information planned in advance, virtual resource includes virtual machine, the shared storage of two-shipper and two-shipper Floating IP address.The data structure of default duplex software deployment process is parsed, the duplex software deployment process that can be executed on a virtual machine is generated.Establish the communication connection between virtual machine, the virtual machine in Row control two-shipper is disposed by duplex software, so that virtual machine carries out software installation according to the duplex software deployment process after parsing in an orderly manner, until the virtual machine in entire cloud platform duoble computer disaster-tolerance system in all two-shippers has all been carried out software installation.This method whole process does not need manual intervention, can be realized as the fast automatic deployment duoble computer disaster-tolerance system in cloud platform according to two-shipper information and duplex software the deployment process planned in advance, it is ensured that not easy to lose, the raising safety of data.
Description
Technical field
The present invention relates to cloud computing application technical fields, more particularly to a kind of automatic portion of cloud platform duoble computer disaster-tolerance system
Arranging method, device, storage medium and computer equipment.
Background technique
Cloud computing (cloud computing) is the increase, use and delivery mode of related service Internet-based, is led to
Often it is related to providing the resource of dynamic easily extension and often virtualization by internet.Cloud is a kind of ratio of network, internet
Explain saying.Virtualization is one of key technology of cloud computing.
Disaster tolerance two-shipper, which refers in production, using two-server bearer service carries out disaster tolerance processing, comprising dual-active and active and standby
Both of which.Dual-active mode refers to that host and standby host are online simultaneously, can play load balancing to business.Active-standby mode refers to only
Host undertakes business online, and standby host only when unexpected delay machine occurs for host, can switch over online adapter tube business, quickly to keep away
Exempt from the interruption of business.
Key business node in part is since its particularity and uniqueness can not be using the mode of the scalable appearance of dynamic in cloud scene
It is managed, and must be disposed using the mode of disaster tolerance two-shipper.Currently marketed cloud platform is only capable of completing virtual machine
Creation shares the creation etc. of storage, is still blank on the rapid deployment of disaster tolerance dual systems.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of automatic deployment side of cloud platform duoble computer disaster-tolerance system
Method, device, storage medium and computer equipment.
A kind of automatic deployment method of cloud platform duoble computer disaster-tolerance system, which comprises
Cloud platform interface is called to generate virtual resource according to the two-shipper information planned in advance, the virtual resource includes virtual
The shared storage of machine, two-shipper and two-shipper Floating IP address;
The data structure of default duplex software deployment process is parsed, it is soft to generate the two-shipper that can be executed on a virtual machine
Part disposes process;
The communication connection between virtual machine is established, the virtual machine in Row control two-shipper is disposed by the duplex software
Software installation is carried out in an orderly manner according to duplex software deployment process, until will own in entire cloud platform duoble computer disaster-tolerance system
Virtual machine in two-shipper has all carried out software installation.
A kind of automatic deployment device of cloud platform duoble computer disaster-tolerance system, described device include:
Virtual resource generation module, for calling cloud platform interface to generate virtual money according to the two-shipper information planned in advance
Source, the virtual resource include virtual machine, the shared storage of two-shipper and two-shipper Floating IP address;
The data structure parsing module of default duplex software deployment process, for the number to default duplex software deployment process
It is parsed according to structure, generates the duplex software deployment process that can be executed on a virtual machine;
Software virtual machine installs module and passes through the duplex software portion for the communication connection between foundation and virtual machine
Virtual machine in administration's Row control two-shipper carries out software installation according to duplex software deployment process in an orderly manner, until will be entire
Virtual machine in cloud platform duoble computer disaster-tolerance system in all two-shippers has all carried out software installation.
A kind of computer readable storage medium, is stored thereon with computer program, realization when which is executed by processor
Following steps:
Cloud platform interface is called to generate virtual resource according to the two-shipper information planned in advance, the virtual resource includes virtual
The shared storage of machine, two-shipper and two-shipper Floating IP address;
The data structure of default duplex software deployment process is parsed, it is soft to generate the two-shipper that can be executed on a virtual machine
Part disposes process;
The communication connection between virtual machine is established, the virtual machine in Row control two-shipper is disposed by the duplex software
Software installation is carried out in an orderly manner according to duplex software deployment process, until will own in entire cloud platform duoble computer disaster-tolerance system
Virtual machine in two-shipper has all carried out software installation.
A kind of computer equipment, the computer equipment include memory, processor and are stored on the memory simultaneously
The computer program that can be run on the processor, the processor perform the steps of when executing the computer program
Cloud platform interface is called to generate virtual resource according to the two-shipper information planned in advance, the virtual resource includes virtual
The shared storage of machine, two-shipper and two-shipper Floating IP address;
The data structure of default duplex software deployment process is parsed, it is soft to generate the two-shipper that can be executed on a virtual machine
Part disposes process;
The communication connection between virtual machine is established, the virtual machine in Row control two-shipper is disposed by the duplex software
Software installation is carried out in an orderly manner according to duplex software deployment process, until will own in entire cloud platform duoble computer disaster-tolerance system
Virtual machine in two-shipper has all carried out software installation.
Automatic deployment method, device, storage medium and the computer equipment of above-mentioned cloud platform duoble computer disaster-tolerance system, in advance by
Developer plans that two-shipper information and duplex software dispose process, calls cloud platform interface according still further to the two-shipper information planned in advance
Virtual resource is generated, virtual resource includes virtual machine, the shared storage of two-shipper and two-shipper Floating IP address.Default duplex software is disposed and is flowed
The data structure of journey is parsed, and the duplex software deployment process that can be executed on a virtual machine is generated.It establishes between virtual machine
Communication connection, by duplex software dispose Row control two-shipper in virtual machine so that virtual machine is according to the two-shipper after parsing
Software deployment process carries out software installation in an orderly manner, until will be virtual in all two-shippers in entire cloud platform duoble computer disaster-tolerance system
Machine has all carried out software installation.This method whole process does not need manual intervention, according to the two-shipper information and duplex software planned in advance
Deployment process can be realized as the fast automatic deployment duoble computer disaster-tolerance system in cloud platform, be suitable for most of cloud platform, it is ensured that
Not easy to lose, the raising safety of data.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of cloud platform duoble computer disaster-tolerance system in one embodiment;
Fig. 2 is the flow chart of the automatic deployment method of cloud platform duoble computer disaster-tolerance system in one embodiment;
Fig. 3 is the flow chart of the automatic deployment method of cloud platform duoble computer disaster-tolerance system in one embodiment;
Fig. 4 is the flow chart of cloud platform duoble computer disaster-tolerance system software installation method in Fig. 3;
Fig. 5 is the flow chart of the software installation method of virtual machine in a two-shipper;
Fig. 6 is the structural schematic diagram of the automatic deployment device of cloud platform duoble computer disaster-tolerance system in one embodiment;
Fig. 7 is the structural schematic diagram of the automatic deployment device of cloud platform duoble computer disaster-tolerance system in one embodiment;
Fig. 8 is the flow chart of the automatic deployment method of cloud platform duoble computer disaster-tolerance system in one embodiment.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing to the present invention
Specific embodiment be described in detail.Many details are explained in the following description in order to fully understand this hair
It is bright.But the invention can be embodied in many other ways as described herein, those skilled in the art can be not
Similar improvement is done in the case where violating intension of the present invention, therefore the present invention is not limited to the specific embodiments disclosed below.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention
The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.Each technical characteristic of above embodiments can carry out arbitrary group
It closes, for simplicity of description, combination not all possible to each technical characteristic in above-described embodiment is all described, however,
As long as there is no contradiction in the combination of these technical features, all should be considered as described in this specification.
Cloud platform is the virtual private master for being divided into several mutually isolated a physical host using virtualization technology
Machine, each cloud platform possess independent CPU, memory, hard disk, IP and bandwidth.
As shown in Figure 1, for the automatic deployment method portion of the cloud platform duoble computer disaster-tolerance system provided through the embodiment of the present invention
A kind of structural schematic diagram of cloud platform duoble computer disaster-tolerance system of administration.The equipment that provides the foundation in cloud platform (including computer, is deposited
The resources such as storage, network), according to the two-shipper information planned in advance by calling the infrastructure device in cloud platform to generate virtual resource,
Virtual resource includes virtual machine, the shared storage of two-shipper and two-shipper Floating IP address.One group pair is made of two virtual machines, a Floating IP address
Machine.The virtual machine disposed in Row control two-shipper by duplex software again disposes process according to duplex software and carries out software in an orderly manner
Installation, is thus finally completed the software installation process of virtual machine in entire disaster tolerance two-shipper group.A kind of cloud platform duoble computer disaster-tolerance system
It may include multiple two-shipper groups, such as comprising two-shipper one, two-shipper two and two-shipper three, also may include more two-shippers.Two-shipper one
Interior includes virtual machine A and virtual machine B, includes virtual machine C and virtual machine D in two-shipper two, and two-shipper three is interior comprising virtual machine E and virtual
Machine F.
In one embodiment, as shown in Fig. 2, providing a kind of automatic deployment method of cloud platform duoble computer disaster-tolerance system,
It is applied to be illustrated in environment shown in FIG. 1 in this way, comprising:
Step 210, cloud platform interface is called to generate virtual resource according to the two-shipper information planned in advance, virtual resource includes
The shared storage of virtual machine, two-shipper and two-shipper Floating IP address.
According to the two-shipper information planned in advance, such as plans and one group of two-shipper is constituted by two virtual machines, a Floating IP address,
And the resource information (contents such as CPU, memory, hard disk, network) that virtual machine uses in two-shipper group, operating system mirror image are configured
Information and shared storage cloud disk information.Calling corresponding interface to generate in cloud platform includes virtual machine, the shared storage of two-shipper
And the virtual resource of two-shipper Floating IP address.
Step 220, the data structure of default duplex software deployment process is parsed, generation can execute on a virtual machine
Duplex software dispose process.
After the success of respective fictional asset creation, the data structure of default duplex software deployment process is solved first
Analysis, and the operating list that can be performed on virtual machine is converted it to, then connecting virtual machine carries out the execution of relevant operation.Herein
The execution of duplex software deployment process is controlled and realized in the process by Row control algorithm.
Step 230, the communication connection between virtual machine is established, the void in Row control two-shipper is disposed by duplex software
Quasi- machine carries out software installation according to duplex software deployment process in an orderly manner, until will own in entire cloud platform duoble computer disaster-tolerance system
Virtual machine in two-shipper has all carried out software installation.
The communication connection between above-mentioned duplex software deployment process and the successful virtual machine of creation is established, duplex software is passed through
Virtual machine in deployment Row control two-shipper carries out software installation according to duplex software deployment process in an orderly manner.Specifically, a kind of
Cloud platform duoble computer disaster-tolerance system includes multiple two-shipper groups, two-shipper one, two-shipper two and two-shipper three, the business on two-shipper two and two-shipper three
It dependent on the business on two-shipper one, needs to control two-shipper one and first installs, then two-shipper two and two-shipper three need to install to two-shipper one
After could install.And in two-shipper one including virtual machine A and virtual machine B, when virtual machine A executes first two steps, virtual machine B is by flowing
Process control is waited for, and has executed first two steps by before process wake-up virtual machine B execution software installation two to virtual machine A
Step, and virtual machine A is then controlled is waited for etc., each two-shipper is installed, entire appearance is thus finally completed
The on-demand orderly installation process of virtual machine in calamity two-shipper group.
In the present embodiment, whole process of the embodiment of the present invention does not need manual intervention, according to the two-shipper information planned in advance and double
Machine software deployment process can be realized as the fast automatic deployment duoble computer disaster-tolerance system in cloud platform, and it is flat to be suitable for most of cloud
Platform, it is ensured that not easy to lose, the raising safety of data.
In one embodiment, as shown in figure 3, it is empty calling cloud platform interface to generate according to the two-shipper information planned in advance
Before quasi- resource, further includes:
Step 240, plan two-shipper information, two-shipper information include virtual machine information in two-shipper, the shared storage information of two-shipper and
Two-shipper Floating IP address information.
Developer carries out planning two-shipper information according to actual scene, such as has planned by two virtual machines, one
A Floating IP address constitutes one group of two-shipper, and has configured virtual machine uses in two-shipper group resource information (CPU, memory, hard disk, net
The contents such as network), operating system Mirror Info and shared storage cloud disk information.When developer needs to advise according to actual scene
When drawing multiple two-shippers, dispatching priority can be set for these two-shippers.Specifically, defining A class when resource is not very sufficient
The dispatching priority of two-shipper is prior to B class two-shipper, then first dispatch resource when dispatching resource distribution two-shipper and meet A class two-shipper,
Resource is configured and then has dispatched in A class two-shipper to configure B class two-shipper.
Developer can could dispatch simultaneously with programming dispatching condition, such as when the small Mr. Yu's critical value of current business load.
Specifically, calculate the busy degree of whole system according to current business index of correlation as 30, lower than the threshold value 75 for influencing service operation,
Then illustrate that resource distribution two-shipper group etc. can be scheduled now, certain above-mentioned numerical value can also be set as it according to the actual situation
His numerical value.
Step 250, setting duplex software disposes process, and duplex software deployment process is converted to duplex software deployment process
Data structure, duplex software deployment process includes the software installation process, double of virtual machine in the two-shipper being made of atomic operation
The erection sequence between erection sequence, two-shipper in machine between virtual machine.
Duplex software installation procedure is completed by filling in a series of optional atomic operation carry out sequence combinations and parameter
Planning.Atomic operation refers to a kind of unit definition of abstract software installation, such as issues the documents, is that developer plans
Software installation step.And connection ftp may be then corresponded to specific to the operation that can be performed on virtual machine, execute the get life of ftp
It enables, disconnects the operation such as ftp connection.Clearest differences is that atomic operation is a kind of definition of installation process, and executable behaviour
It is then the operation that can be really executed on virtual machine.Duplex software installation procedure includes erection sequence between two-shipper, in two-shipper
The software installation process of virtual machine in erection sequence, two-shipper between virtual machine.For example, when define A class two-shipper and B class two-shipper is same
When dispatching, A class two-shipper could install B class two-shipper after installing successfully;B could be installed after A virtual machine is installed successfully in two-shipper group
Virtual machine;Virtual machine step A a could execute virtual machine step B b after having executed, then execute step c of virtual machine A etc. again,
And the process finally planned is converted to the data structure of certain format.
In the present embodiment, developer needs to carry out two-shipper information planning, double previously according to the actual scene of cloud platform
Machine software deployment flow layout, and the duplex software of planning deployment process is converted into data structure.Practical progress subsequent in this way
When cloud platform duoble computer disaster-tolerance system automatic deployment, it is only necessary to be carried out according to the step planned.
In one embodiment, as shown in figure 4, establishing the communication connection between virtual machine, so that duplex software is disposed
Virtual machine in Row control two-shipper carries out software installation according to duplex software deployment process in an orderly manner, until by entire cloud platform
Virtual machine in duoble computer disaster-tolerance system in all two-shippers has all carried out software installation, comprising:
Step 231, the communication connection between virtual machine is established, the void in Row control two-shipper is disposed by duplex software
Quasi- machine first wakes up a two-shipper according to the erection sequence between two-shipper in duplex software deployment process, disposes process according to duplex software
The software installation process of virtual machine carries out the virtual machine in two-shipper soft in erection sequence and two-shipper in middle two-shipper between virtual machine
Part installation.
Step 233, after the software virtual machine in two-shipper is installed, according still further between two-shipper in duplex software deployment process
Erection sequence wake up next two-shipper, according to the erection sequence and two-shipper between virtual machine in two-shipper in duplex software deployment process
The software installation process of interior virtual machine carries out software installation to the virtual machine in two-shipper, until by entire cloud platform duoble computer disaster-tolerance system
Virtual machine in system in all two-shippers has all carried out software installation.
The communication connection between above-mentioned duplex software deployment process and the successful virtual machine of creation is established, duplex software is passed through
Virtual machine in deployment Row control two-shipper carries out software installation according to duplex software deployment process in an orderly manner.Specifically, a kind of
Cloud platform duoble computer disaster-tolerance system includes multiple two-shipper groups, two-shipper one, two-shipper two and two-shipper three, the business on two-shipper two and two-shipper three
It dependent on the business on two-shipper one, needs to control two-shipper one and first installs, then two-shipper two and two-shipper three need to install to two-shipper one
After could install.As shown in figure 5, to have virtual machine progress duplex software installation in a two-shipper in the embodiment of the present invention and matching
The flow diagram set.It include virtual machine A and virtual machine B in two-shipper one, it is empty when virtual machine A sequence executes step 1 and step 2
Quasi- machine B is waited for by Row control, then wakes up virtual machine by process when virtual machine A has executed preceding step 1 and step 2
B executes step 3 and step 4, and virtual machine A is then controlled is waited for.When virtual machine B executes the step 3 and step 4,
Virtual machine A is waken up by process and executes step 5, and virtual machine B is then controlled is waited for.5 are executed the step to virtual machine A
When, virtual machine B is waken up by process and executes step 6 and step 7, and virtual machine A is then controlled is waited for.It is held to virtual machine B
Gone step 7 when, by process wake up virtual machine A execute step 8, so far complete two-shipper one in virtual machine A and virtual machine B it is soft
Part installation.
When in two-shipper one virtual machine A and virtual machine B complete software installation after, according still further to duplex software deployment process in
Erection sequence between two-shipper wakes up next two-shipper, according to the erection sequence between virtual machine in two-shipper in duplex software deployment process
And the software installation process of virtual machine carries out software installation to the virtual machine in two-shipper in two-shipper, until by entire cloud platform two-shipper
Virtual machine in disaster tolerance system in all two-shippers has all carried out software installation.Two-shipper two and two-shipper three are all completed to software peace
Dress, is thus finally completed the on-demand orderly installation process of virtual machine in entire disaster tolerance two-shipper group.
In the present embodiment, the communication link between above-mentioned duplex software deployment process and the successful virtual machine of creation is established
It connects, then by duplex software deployment Row control two-shipper successively being installed one by one in order, controls each two-shipper
Two interior virtual machines press portion just according to the software installation process of virtual machine in the erection sequence and two-shipper between virtual machine in two-shipper
The carry out software installation of class.Cloud platform duoble computer disaster-tolerance system is descending from two-shipper to virtual machine to be performed integrally software installation.
Human assistance, whole-process automatic deployment are not needed.And currently marketed cloud platform is only capable of completing the creation of virtual machine, shares storage
Creation etc., be still blank on the rapid deployment of disaster tolerance dual systems.
In one embodiment, cloud platform interface is called to generate virtual resource according to the two-shipper information planned in advance, comprising:
The dispatching priority between different two-shippers is preset, cloud is successively called according to the two-shipper information planned in advance according to dispatching priority
Platform interface generates virtual resource.
The dispatching sequence of associated virtual machine resource is calculated with dispatching algorithm according to dispatching priority and is orderly put into scheduling
Queue orderly dispatches virtual resource according to the sequence in scheduling queue.
In the present embodiment, when resource is not very sufficient, the dispatching priority for defining A class two-shipper is double prior to B class
Machine, then first dispatching resource when dispatching resource distribution two-shipper and meeting A class two-shipper, configured and then adjusted in A class two-shipper
Degree resource configures B class two-shipper.It defines and calls priority that can preferentially meet pair that priority is high, is badly in need of creation
Machine.
In one embodiment, the communication connection between virtual machine is established, comprising: build by socket communication
The vertical communication connection between virtual machine.
In the present embodiment, the communication link between above-mentioned duplex software deployment process and the successful virtual machine of creation is established
It connects.Realize that the relevant interface of above-mentioned binodal software deployment process is connect with virtual machine specifically, can communicate by socket.I
Socket is often translated as socket, socket is a level of abstraction between application layer and transport layer, TCP/IP
The complicated operation of layer is abstracted as several simple interfaces and has realized that process communicates in a network for application layer calling.Socket communication
The mode of process is " opening-read/write-closing ".In the present embodiment, specifically by SSH (Secure Shell
Protocol, safety shell protocol) mode be connected to virtual machine.Safety shell protocol is that one kind provides on insecure network
The agreement of secure remote login and other secure web services.
In one embodiment, as shown in fig. 6, additionally providing a kind of automatic deployment device of cloud platform duoble computer disaster-tolerance system
600, the device include: virtual resource generation module 610, default duplex software deployment process data structure parsing module 620,
Software virtual machine installs module 630.
Virtual resource generation module 610, it is virtual for calling cloud platform interface to generate according to the two-shipper information planned in advance
Resource, virtual resource include virtual machine, the shared storage of two-shipper and two-shipper Floating IP address.
The data structure parsing module 620 of default duplex software deployment process, for disposing process to default duplex software
Data structure parsed, generate can execute on a virtual machine duplex software deployment process.
Software virtual machine installation module 630 is disposed for the communication connection between foundation and virtual machine by duplex software
Virtual machine in Row control two-shipper carries out software installation according to duplex software deployment process in an orderly manner, until by entire cloud platform
Virtual machine in duoble computer disaster-tolerance system in all two-shippers has all carried out software installation.
In one embodiment, as shown in fig. 7, a kind of automatic deployment device 600 of cloud platform duoble computer disaster-tolerance system, the dress
It sets and goes back two-shipper information planning module 640, duplex software deployment process settings module 650.
Two-shipper information planning module 640, for planning two-shipper information, two-shipper information includes virtual machine information in two-shipper, double
The shared storage information of machine and two-shipper Floating IP address information.
Duplex software disposes process settings module 650, for setting duplex software deployment process, duplex software is disposed and is flowed
Journey is converted to the data structure of duplex software deployment process, and it includes in the two-shipper being made of atomic operation that duplex software, which disposes process,
Erection sequence in the software installation process of virtual machine, two-shipper between virtual machine, the erection sequence between two-shipper.
In one embodiment, as shown in figure 8, providing a kind of automatic deployment method of cloud platform duoble computer disaster-tolerance system
Frame module figure.
Two-shipper information planning module 640, for planning two-shipper information, two-shipper information includes virtual machine information in two-shipper, double
The shared storage information of machine and two-shipper Floating IP address information.When developer is according to actual scene when needing to plan multiple two-shipper groups,
Dispatching priority can be set for these two-shipper groups.
Duplex software disposes process settings module 650, for setting duplex software deployment process, duplex software is disposed and is flowed
Journey is converted to the data structure of duplex software deployment process, and it includes in the two-shipper being made of atomic operation that duplex software, which disposes process,
Erection sequence in the software installation process of virtual machine, two-shipper between virtual machine, the erection sequence between two-shipper.
Virtual resource generation module 610, it is virtual for calling cloud platform interface to generate according to the two-shipper information planned in advance
Resource, virtual resource include virtual machine, the shared storage of two-shipper and two-shipper Floating IP address.Specifically, different two-shippers can be preset
Between dispatching priority, scheduler module successively calls cloud platform interface according to the two-shipper information planned in advance according to dispatching priority
Generate virtual resource.The dispatching sequence of associated virtual machine resource is calculated with dispatching algorithm according to dispatching priority and is orderly put into
Scheduling queue orderly dispatches virtual resource according to the sequence in scheduling queue.
The data structure parsing module 620 of default duplex software deployment process, for disposing process to default duplex software
Data structure parsed, generate can execute on a virtual machine duplex software deployment process;
Software virtual machine installation module 630 is disposed for the communication connection between foundation and virtual machine by duplex software
Virtual machine in Row control two-shipper carries out software installation according to duplex software deployment process in an orderly manner, until by entire cloud platform
Virtual machine in duoble computer disaster-tolerance system in all two-shippers has all carried out software installation.
In one embodiment, the communication connection that software virtual machine installation module 630 is also used to establish between virtual machine,
The virtual machine in Row control two-shipper is disposed according to the erection sequence between two-shipper in duplex software deployment process by duplex software
A two-shipper is first waken up, according to virtual machine in the erection sequence and two-shipper between virtual machine in two-shipper in duplex software deployment process
Software installation process carries out software installation to the virtual machine in two-shipper;After software virtual machine in two-shipper is installed, then press
Next two-shipper is waken up according to the erection sequence between two-shipper in duplex software deployment process, according to two-shipper in duplex software deployment process
The software installation process of virtual machine carries out software installation to the virtual machine in two-shipper in erection sequence and two-shipper between interior virtual machine,
Until the virtual machine in entire cloud platform duoble computer disaster-tolerance system in all two-shippers has all been carried out software installation.
In one embodiment, a kind of computer readable storage medium is additionally provided, computer program is stored thereon with, it should
It is performed the steps of when program is executed by processor
Call cloud platform interface to generate virtual resource according to the two-shipper information planned in advance, virtual resource include virtual machine,
The shared storage of two-shipper and two-shipper Floating IP address;The data structure of default duplex software deployment process is parsed, generation can be in void
The duplex software deployment process executed on quasi- machine;The communication connection between virtual machine is established, process is disposed by duplex software
Virtual machine in control two-shipper carries out software installation according to duplex software deployment process in an orderly manner, until by entire cloud platform two-shipper
Virtual machine in disaster tolerance system in all two-shippers has all carried out software installation.
Planning two-shipper information is also performed the steps of when above procedure is executed by processor in one of the embodiments,
Two-shipper information includes virtual machine information in two-shipper, the shared storage information of two-shipper and two-shipper Floating IP address information;Set duplex software portion
Process is affixed one's name to, duplex software deployment process is converted to the data structure of duplex software deployment process, duplex software disposes process packet
Include the software installation process of virtual machine in the two-shipper being made of atomic operation, the erection sequence in two-shipper between virtual machine, between two-shipper
Erection sequence.
Foundation and virtual machine are also performed the steps of when above procedure is executed by processor in one of the embodiments,
Between communication connection, by duplex software dispose the virtual machine in Row control two-shipper dispose according to duplex software it is double in process
Erection sequence between machine first wakes up a two-shipper, according in duplex software deployment process in two-shipper between virtual machine erection sequence and
The software installation process of virtual machine carries out software installation to the virtual machine in two-shipper in two-shipper;Software virtual machine peace in two-shipper
After the completion of dress, next two-shipper is waken up according still further to the erection sequence between two-shipper in duplex software deployment process, according to duplex software
The software installation process of virtual machine in the erection sequence and two-shipper in process in two-shipper between virtual machine is disposed to virtual in two-shipper
Machine carries out software installation, until the virtual machine in entire cloud platform duoble computer disaster-tolerance system in all two-shippers has all been carried out software peace
Dress.
It is also performed the steps of when above procedure is executed by processor in one of the embodiments, and presets difference
Dispatching priority between two-shipper successively calls cloud platform interface to generate according to dispatching priority according to the two-shipper information planned in advance
Virtual resource.
It is also performed the steps of when above procedure is executed by processor in one of the embodiments, and passes through socket
Communication connection between socket connection setup and virtual machine.
In one embodiment, additionally provide a kind of computer equipment, which includes memory, processor and
The computer program that can be run on a memory and on a processor is stored, processor realizes following step when executing computer program
It is rapid:
Call cloud platform interface to generate virtual resource according to the two-shipper information planned in advance, virtual resource include virtual machine,
The shared storage of two-shipper and two-shipper Floating IP address;The data structure of default duplex software deployment process is parsed, generation can be in void
The duplex software deployment process executed on quasi- machine;The communication connection between virtual machine is established, process is disposed by duplex software
Virtual machine in control two-shipper carries out software installation according to duplex software deployment process in an orderly manner, until by entire cloud platform two-shipper
Virtual machine in disaster tolerance system in all two-shippers has all carried out software installation.
Planning two-shipper is also performed the steps of when above-mentioned processor executes computer program in one of the embodiments,
Information, two-shipper information include virtual machine information in two-shipper, the shared storage information of two-shipper and two-shipper Floating IP address information;It is soft to set two-shipper
Part disposes process, and duplex software deployment process is converted to the data structure of duplex software deployment process, duplex software deployment stream
Journey includes the software installation process of virtual machine in the two-shipper being made of atomic operation, the erection sequence in two-shipper between virtual machine, double
Erection sequence between machine.
Foundation and void are also performed the steps of when above-mentioned processor executes computer program in one of the embodiments,
Communication connection between quasi- machine disposes process according to duplex software by the virtual machine that duplex software is disposed in Row control two-shipper
Erection sequence between middle two-shipper first wakes up a two-shipper, suitable according to the installation between virtual machine in two-shipper in duplex software deployment process
The software installation process of virtual machine carries out software installation to the virtual machine in two-shipper in sequence and two-shipper;Virtual machine in two-shipper is soft
After part is installed, next two-shipper is waken up according still further to the erection sequence between two-shipper in duplex software deployment process, according to two-shipper
The software installation process of virtual machine is in two-shipper in erection sequence and two-shipper in software deployment process in two-shipper between virtual machine
Virtual machine carries out software installation, soft until all having carried out the virtual machine in entire cloud platform duoble computer disaster-tolerance system in all two-shippers
Part installation.
It also performs the steps of and presets when above-mentioned processor executes computer program in one of the embodiments,
Dispatching priority between different two-shippers successively calls cloud platform interface according to the two-shipper information planned in advance according to dispatching priority
Generate virtual resource.
It is also performed the steps of when above-mentioned processor executes computer program in one of the embodiments, and passes through socket
Communication connection between word socket connection setup and virtual machine.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of automatic deployment method of cloud platform duoble computer disaster-tolerance system, which comprises
Call cloud platform interface to generate virtual resource according to the two-shipper information planned in advance, the virtual resource include virtual machine,
The shared storage of two-shipper and two-shipper Floating IP address;
The data structure of default duplex software deployment process is parsed, the duplex software portion that can be executed on a virtual machine is generated
Affix one's name to process;
Establish and virtual machine between communication connection, by the duplex software dispose Row control two-shipper in virtual machine according to
Duplex software deployment process carries out software installation in an orderly manner, until by all two-shippers in entire cloud platform duoble computer disaster-tolerance system
Interior virtual machine has all carried out software installation.
2. the method according to claim 1, wherein calling cloud flat according to the two-shipper information planned in advance described
Platform interface generates before virtual resource, further includes:
Plan that two-shipper information, the two-shipper information include that virtual machine information in two-shipper, the shared storage information of two-shipper and two-shipper float
IP information;
It sets duplex software and disposes process, duplex software deployment process is converted to the data knot of duplex software deployment process
Structure, duplex software deployment process include the software installation process of virtual machine in the two-shipper being made of atomic operation, in two-shipper
The erection sequence between erection sequence, two-shipper between virtual machine.
3. the method according to claim 1, wherein it is described foundation virtual machine between communication connection so that
Virtual machine in the duplex software deployment Row control two-shipper carries out software according to duplex software deployment process in an orderly manner
Installation, until the virtual machine in entire cloud platform duoble computer disaster-tolerance system in all two-shippers has all been carried out software installation, comprising:
Establish and virtual machine between communication connection, by the duplex software dispose Row control two-shipper in virtual machine according to
Erection sequence in the duplex software deployment process between two-shipper first wakes up a two-shipper, disposes process according to the duplex software
In erection sequence and two-shipper in middle two-shipper between virtual machine the software installation process of virtual machine to the virtual machine in the two-shipper into
Row software installation;
After the software virtual machine in the two-shipper is installed, according still further to the peace between two-shipper in duplex software deployment process
Dress sequence wakes up next two-shipper, according to the erection sequence and two-shipper between virtual machine in two-shipper in duplex software deployment process
The software installation process of interior virtual machine carries out software installation to the virtual machine in the two-shipper, holds until by entire cloud platform two-shipper
Virtual machine in calamity system in all two-shippers has all carried out software installation.
4. the method according to claim 1, wherein described call cloud platform according to the two-shipper information planned in advance
Interface generates virtual resource, comprising:
The dispatching priority between different two-shippers is preset, is successively believed according to the two-shipper planned in advance according to the dispatching priority
Breath calls cloud platform interface to generate virtual resource.
5. the method according to claim 1, wherein the communication connection between the foundation and virtual machine, comprising:
Pass through the communication connection between socket connection setup and virtual machine.
6. a kind of automatic deployment device of cloud platform duoble computer disaster-tolerance system, which is characterized in that described device includes:
Virtual resource generation module, for calling cloud platform interface to generate virtual resource, institute according to the two-shipper information planned in advance
Stating virtual resource includes virtual machine, the shared storage of two-shipper and two-shipper Floating IP address;
The data structure parsing module of default duplex software deployment process, for the data knot to default duplex software deployment process
Structure is parsed, and the duplex software deployment process that can be executed on a virtual machine is generated;
Software virtual machine installs module, for the communication connection between foundation and virtual machine, is disposed and is flowed by the duplex software
Virtual machine in process control two-shipper carries out software installation according to duplex software deployment process in an orderly manner, puts down until by entire cloud
Virtual machine in platform duoble computer disaster-tolerance system in all two-shippers has all carried out software installation.
7. device according to claim 6, which is characterized in that described device further include:
Two-shipper information planning module, for planning two-shipper information, the two-shipper information includes that virtual machine information in two-shipper, two-shipper are total
Enjoy storage information and two-shipper Floating IP address information;
Duplex software disposes process settings module, and for setting duplex software deployment process, the duplex software is disposed process
The data structure of duplex software deployment process is converted to, the duplex software deployment process includes the two-shipper being made of atomic operation
Erection sequence in the software installation process of interior virtual machine, two-shipper between virtual machine, the erection sequence between two-shipper.
8. device according to claim 7, which is characterized in that the software virtual machine installation module is also used to establish and void
Communication connection between quasi- machine disposes the virtual machine in Row control two-shipper according to the duplex software by the duplex software
Erection sequence in deployment process between two-shipper first wakes up a two-shipper, according to virtual in two-shipper in duplex software deployment process
The software installation process of virtual machine carries out software installation to the virtual machine in the two-shipper in erection sequence and two-shipper between machine;
After the software virtual machine in the two-shipper is installed, according still further to the peace between two-shipper in duplex software deployment process
Dress sequence wakes up next two-shipper, according to the erection sequence and two-shipper between virtual machine in two-shipper in duplex software deployment process
The software installation process of interior virtual machine carries out software installation to the virtual machine in the two-shipper, holds until by entire cloud platform two-shipper
Virtual machine in calamity system in all two-shippers has all carried out software installation.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The automatic deployment method of the cloud platform duoble computer disaster-tolerance system as described in any one of power 1 to 5 is realized when row.
10. a kind of computer equipment, the computer equipment includes memory, processor and is stored on the memory and can
The computer program run on the processor, which is characterized in that the processor is realized when executing the computer program
The automatic deployment method of cloud platform duoble computer disaster-tolerance system as described in weighing any one of 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710481960.8A CN109117146A (en) | 2017-06-22 | 2017-06-22 | Automatic deployment method, device, storage medium and the computer equipment of cloud platform duoble computer disaster-tolerance system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710481960.8A CN109117146A (en) | 2017-06-22 | 2017-06-22 | Automatic deployment method, device, storage medium and the computer equipment of cloud platform duoble computer disaster-tolerance system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109117146A true CN109117146A (en) | 2019-01-01 |
Family
ID=64732875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710481960.8A Withdrawn CN109117146A (en) | 2017-06-22 | 2017-06-22 | Automatic deployment method, device, storage medium and the computer equipment of cloud platform duoble computer disaster-tolerance system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109117146A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110298172A (en) * | 2019-06-20 | 2019-10-01 | 武汉华电工研科技有限公司 | A kind of government affairs cloud platform security hardening system |
CN115080316A (en) * | 2022-07-06 | 2022-09-20 | 广西飞创信息科技有限公司 | Cross-storage-platform double-active disaster recovery protection method and system based on virtualization technology |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101105745A (en) * | 2006-07-14 | 2008-01-16 | 中兴通讯股份有限公司 | Distributed type software system disposition method |
US20100228819A1 (en) * | 2009-03-05 | 2010-09-09 | Yottaa Inc | System and method for performance acceleration, data protection, disaster recovery and on-demand scaling of computer applications |
CN102629906A (en) * | 2012-03-30 | 2012-08-08 | 浪潮电子信息产业股份有限公司 | Design method for improving cluster business availability by using cluster management node as two computers |
US20130232463A1 (en) * | 2012-03-02 | 2013-09-05 | Vmware, Inc. | System and method for customizing a deployment plan for a multi-tier application in a cloud infrastructure |
CN104317642A (en) * | 2014-09-28 | 2015-01-28 | 华为技术有限公司 | Method and device for configuring software in cloud calculation environment |
CN104734875A (en) * | 2013-12-20 | 2015-06-24 | 华为技术有限公司 | Service application disaster tolerance deployment method and device |
-
2017
- 2017-06-22 CN CN201710481960.8A patent/CN109117146A/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101105745A (en) * | 2006-07-14 | 2008-01-16 | 中兴通讯股份有限公司 | Distributed type software system disposition method |
US20100228819A1 (en) * | 2009-03-05 | 2010-09-09 | Yottaa Inc | System and method for performance acceleration, data protection, disaster recovery and on-demand scaling of computer applications |
US20130232463A1 (en) * | 2012-03-02 | 2013-09-05 | Vmware, Inc. | System and method for customizing a deployment plan for a multi-tier application in a cloud infrastructure |
CN102629906A (en) * | 2012-03-30 | 2012-08-08 | 浪潮电子信息产业股份有限公司 | Design method for improving cluster business availability by using cluster management node as two computers |
CN104734875A (en) * | 2013-12-20 | 2015-06-24 | 华为技术有限公司 | Service application disaster tolerance deployment method and device |
CN104317642A (en) * | 2014-09-28 | 2015-01-28 | 华为技术有限公司 | Method and device for configuring software in cloud calculation environment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110298172A (en) * | 2019-06-20 | 2019-10-01 | 武汉华电工研科技有限公司 | A kind of government affairs cloud platform security hardening system |
CN115080316A (en) * | 2022-07-06 | 2022-09-20 | 广西飞创信息科技有限公司 | Cross-storage-platform double-active disaster recovery protection method and system based on virtualization technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9307017B2 (en) | Member-oriented hybrid cloud operating system architecture and communication method thereof | |
CN105429780B (en) | A method of virtualization network service business automatically generates and dynamic monitors | |
CN110138575B (en) | Network slice creating method, system, network device and storage medium | |
CN110636103B (en) | Unified scheduling method for multi-heterogeneous cluster jobs and API (application program interface) | |
CN109906637A (en) | Network slice management system and method in chain of command | |
CN105979009A (en) | Method for automatically balancing increased load of cloud application container | |
CN104301391B (en) | Multi-area optical network data center resource virtualizes mapping method | |
CN105144102B (en) | Self-adapting data is synchronous | |
WO2016037479A1 (en) | Method, device and system for optimizing virtualized network function (vnf) | |
CN111258716A (en) | Container cloud platform-based edge machine learning system and method thereof | |
CN106462450A (en) | Notification about virtual machine live migration to VNF manager | |
Dubey et al. | A software platform for fractionated spacecraft | |
CN108255614A (en) | A kind of interface calling system and method based on micro services framework | |
CN110658794B (en) | Manufacturing execution system | |
CN107222530A (en) | Service asynchronous exchange method, equipment, system and computer-readable recording medium | |
CN104158826B (en) | A kind of dispatching method and its system of the migration of Virtual machine | |
CN104503832B (en) | A kind of scheduling virtual machine system and method for fair and efficiency balance | |
CN109040150A (en) | Cloud desktop services method, client platform and system | |
CN110209574A (en) | A kind of data mining system based on artificial intelligence | |
CN110377409A (en) | A kind of task processing method, device, equipment and medium | |
CN112073237B (en) | Large-scale target network construction method in cloud edge architecture | |
CN108563509A (en) | Data query implementation method, device, medium and electronic equipment | |
CN115248692A (en) | Device and method for supporting cloud deployment of multiple deep learning framework models | |
CN107347089A (en) | A kind of resource allocation methods of carrier-class cloud computing system | |
Dustdar et al. | Towards distributed edge-based systems |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190101 |