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 systemMethod, 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 virtualThe 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 machinePart disposes process;
The communication connection between virtual machine is established, the virtual machine in Row control two-shipper is disposed by the duplex softwareSoftware 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 systemVirtual 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 advanceSource, 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 processIt 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 machineVirtual 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 entireVirtual 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 processorFollowing steps:
Cloud platform interface is called to generate virtual resource according to the two-shipper information planned in advance, the virtual resource includes virtualThe 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 machinePart disposes process;
The communication connection between virtual machine is established, the virtual machine in Row control two-shipper is disposed by the duplex softwareSoftware 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 systemVirtual 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 simultaneouslyThe 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 virtualThe 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 machinePart disposes process;
The communication connection between virtual machine is established, the virtual machine in Row control two-shipper is disposed by the duplex softwareSoftware 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 systemVirtual 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 byDeveloper plans that two-shipper information and duplex software dispose process, calls cloud platform interface according still further to the two-shipper information planned in advanceVirtual 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 flowedThe 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 machineCommunication connection, by duplex software dispose Row control two-shipper in virtual machine so that virtual machine is according to the two-shipper after parsingSoftware 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 systemMachine 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 advanceDeployment 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 thatNot easy to lose, the raising safety of data.
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 inventionSpecific embodiment be described in detail.Many details are explained in the following description in order to fully understand this hairIt is bright.But the invention can be embodied in many other ways as described herein, those skilled in the art can be notSimilar 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 inventionThe normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description toolThe 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 groupIt 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 technologyMachine, 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 inventionA 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 depositedThe 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 addressMachine.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 mannerInstallation, 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 systemIt 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 oneInterior 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 virtualMachine 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 includesThe 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 configuredInformation and shared storage cloud disk information.Calling corresponding interface to generate in cloud platform includes virtual machine, the shared storage of two-shipperAnd 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 machineDuplex software dispose process.
After the success of respective fictional asset creation, the data structure of default duplex software deployment process is solved firstAnalysis, 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.HereinThe 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 softwareQuasi- 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 systemVirtual 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 throughVirtual machine in deployment Row control two-shipper carries out software installation according to duplex software deployment process in an orderly manner.Specifically, a kind ofCloud 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 threeIt 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 oneAfter 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 flowingProcess 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 AStep, and virtual machine A is then controlled is waited for etc., each two-shipper is installed, entire appearance is thus finally completedThe 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 doubleMachine 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 cloudPlatform, 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 advanceBefore 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 andTwo-shipper Floating IP address information.
Developer carries out planning two-shipper information according to actual scene, such as has planned by two virtual machines, oneA 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, netThe contents such as network), operating system Mirror Info and shared storage cloud disk information.When developer needs to advise according to actual sceneWhen drawing multiple two-shippers, dispatching priority can be set for these two-shippers.Specifically, defining A class when resource is not very sufficientThe 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 situationHis numerical value.
Step 250, setting duplex software disposes process, and duplex software deployment process is converted to duplex software deployment processData structure, duplex software deployment process includes the software installation process, double of virtual machine in the two-shipper being made of atomic operationThe 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 parameterPlanning.Atomic operation refers to a kind of unit definition of abstract software installation, such as issues the documents, is that developer plansSoftware 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 ftpIt enables, disconnects the operation such as ftp connection.Clearest differences is that atomic operation is a kind of definition of installation process, and executable behaviourIt is then the operation that can be really executed on virtual machine.Duplex software installation procedure includes erection sequence between two-shipper, in two-shipperThe 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 sameWhen 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 groupVirtual 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 platformMachine software deployment flow layout, and the duplex software of planning deployment process is converted into data structure.Practical progress subsequent in this wayWhen 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 disposedVirtual machine in Row control two-shipper carries out software installation according to duplex software deployment process in an orderly manner, until by entire cloud platformVirtual 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 softwareQuasi- 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 softwareThe 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 machinePart installation.
Step 233, after the software virtual machine in two-shipper is installed, according still further between two-shipper in duplex software deployment processErection sequence wake up next two-shipper, according to the erection sequence and two-shipper between virtual machine in two-shipper in duplex software deployment processThe 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 systemVirtual 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 throughVirtual machine in deployment Row control two-shipper carries out software installation according to duplex software deployment process in an orderly manner.Specifically, a kind ofCloud 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 threeIt 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 oneAfter 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 matchingThe 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 2Quasi- 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 2B 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 AWhen, 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 BGone 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 softPart 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 inErection sequence between two-shipper wakes up next two-shipper, according to the erection sequence between virtual machine in two-shipper in duplex software deployment processAnd 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-shipperVirtual 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 peaceDress, 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 establishedIt connects, then by duplex software deployment Row control two-shipper successively being installed one by one in order, controls each two-shipperTwo 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-shipperThe 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 storageCreation 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 priorityPlatform 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 schedulingQueue 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 classMachine, then first dispatching resource when dispatching resource distribution two-shipper and meeting A class two-shipper, configured and then adjusted in A class two-shipperDegree 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 creationMachine.
In one embodiment, the communication connection between virtual machine is established, comprising: build by socket communicationThe 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 establishedIt connects.Realize that the relevant interface of above-mentioned binodal software deployment process is connect with virtual machine specifically, can communicate by socket.ISocket is often translated as socket, socket is a level of abstraction between application layer and transport layer, TCP/IPThe complicated operation of layer is abstracted as several simple interfaces and has realized that process communicates in a network for application layer calling.Socket communicationThe mode of process is " opening-read/write-closing ".In the present embodiment, specifically by SSH (Secure ShellProtocol, safety shell protocol) mode be connected to virtual machine.Safety shell protocol is that one kind provides on insecure networkThe 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 system600, 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 advanceResource, 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 softwareData 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 softwareVirtual machine in Row control two-shipper carries out software installation according to duplex software deployment process in an orderly manner, until by entire cloud platformVirtual 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 dressIt 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, doubleThe 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 flowedJourney 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 systemFrame module figure.
Two-shipper information planning module 640, for planning two-shipper information, two-shipper information includes virtual machine information in two-shipper, doubleThe 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 flowedJourney 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 advanceResource, virtual resource include virtual machine, the shared storage of two-shipper and two-shipper Floating IP address.Specifically, different two-shippers can be presetBetween dispatching priority, scheduler module successively calls cloud platform interface according to the two-shipper information planned in advance according to dispatching priorityGenerate virtual resource.The dispatching sequence of associated virtual machine resource is calculated with dispatching algorithm according to dispatching priority and is orderly put intoScheduling 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 softwareData 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 softwareVirtual machine in Row control two-shipper carries out software installation according to duplex software deployment process in an orderly manner, until by entire cloud platformVirtual 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 softwareA 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 processSoftware installation process carries out software installation to the virtual machine in two-shipper;After software virtual machine in two-shipper is installed, then pressNext 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 processThe 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 shouldIt 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 voidThe duplex software deployment process executed on quasi- machine;The communication connection between virtual machine is established, process is disposed by duplex softwareVirtual 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-shipperVirtual 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 portionProcess 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 packetInclude 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-shipperErection 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 processErection sequence between machine first wakes up a two-shipper, according in duplex software deployment process in two-shipper between virtual machine erection sequence andThe 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-shipperAfter 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 softwareThe 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-shipperMachine 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 peaceDress.
It is also performed the steps of when above procedure is executed by processor in one of the embodiments, and presets differenceDispatching priority between two-shipper successively calls cloud platform interface to generate according to dispatching priority according to the two-shipper information planned in advanceVirtual resource.
It is also performed the steps of when above procedure is executed by processor in one of the embodiments, and passes through socketCommunication connection between socket connection setup and virtual machine.
In one embodiment, additionally provide a kind of computer equipment, which includes memory, processor andThe computer program that can be run on a memory and on a processor is stored, processor realizes following step when executing computer programIt 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 voidThe duplex software deployment process executed on quasi- machine;The communication connection between virtual machine is established, process is disposed by duplex softwareVirtual 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-shipperVirtual 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-shipperPart disposes process, and duplex software deployment process is converted to the data structure of duplex software deployment process, duplex software deployment streamJourney 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, doubleErection 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-shipperErection 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 processThe 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 softAfter 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-shipperThe 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 machineVirtual 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-shippersPart 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 priorityGenerate virtual resource.
It is also performed the steps of when above-mentioned processor executes computer program in one of the embodiments, and passes through socketCommunication 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 simultaneouslyIt 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 artIt says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the inventionRange.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.