CN103442033A - Running state information synchronizing method and device - Google Patents

Running state information synchronizing method and device Download PDF

Info

Publication number
CN103442033A
CN103442033A CN2013103404159A CN201310340415A CN103442033A CN 103442033 A CN103442033 A CN 103442033A CN 2013103404159 A CN2013103404159 A CN 2013103404159A CN 201310340415 A CN201310340415 A CN 201310340415A CN 103442033 A CN103442033 A CN 103442033A
Authority
CN
China
Prior art keywords
virtual machine
synchronization policy
state information
running state
host virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013103404159A
Other languages
Chinese (zh)
Inventor
胡鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2013103404159A priority Critical patent/CN103442033A/en
Publication of CN103442033A publication Critical patent/CN103442033A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a running state information synchronizing method and device. The method comprises the steps that a main virtual machine acquires current running state information of the main virtual machine when the main virtual machine confirms that the current running state meets the requirement of a running state information synchronizing strategy, and then the main virtual machine sends the running state information to an auxiliary virtual machine. According to the running state information synchronizing method and device, the CPU occupancy rate of a physical server can be reduced, processing performance of the physical server can be improved, and network consumption can be reduced.

Description

A kind of synchronous method of running state information and equipment
Technical field
The present invention relates to communication technical field, especially a kind of synchronous method of running state information and equipment.
Background technology
Along with improving constantly of hardware speed, the performance of server promotes greatly, and the utilization rate of the part server of data center descends to some extent, and in order to improve the hardware utilance of server, Intel Virtualization Technology has obtained very great development in recent years.Pass through software virtual machine, can on a physical server, simulate one or many virtual machines, these virtual machines carry out work fully just as real physical server, such as can installing operating system, set up applications accesses network resource etc.For for the application program of moving in virtual machine, application program similarly is to carry out work in real physical server.
HA(High Available, high availability clusters) be the effective solution that guarantees business continuance, a plurality of nodes are generally arranged, and be divided into active node and secondary node.The node of carrying out business is called active node, as the node of the backup of active node, is called secondary node.When active node goes wrong, when the business (task) that causes moving can not normally be moved, secondary node now will detect, and replaces immediately active node to carry out the execution business, thereby realizes not interrupting or short interruption of business.
In prior art, can for virtual machine, to enable Fault Tolerance(fault-tolerant) mechanism, to obtain than the data protection of HA higher level, thereby guarantee business continuance.In Fault Tolerance mechanism, identical with host virtual machine with maintenance by establishment, and can replace at any time the auxiliary virtual machine of host virtual machine when breaking down switching, guarantee the continuous availability of virtual machine.Wherein, auxiliary virtual machine moves with host virtual machine in virtual lock-step mode; and because auxiliary virtual machine moves in virtual lock-step mode together with host virtual machine; if therefore the physical server of operation host virtual machine breaks down; auxiliary virtual machine can be without interruptedly replacing host virtual machine to carry out work, thereby Fault Tolerance protection is provided.
In the above-described embodiment, because auxiliary virtual machine need to move with host virtual machine in virtual lock-step mode, need the real-time maintenance running status identical with host virtual machine on therefore auxiliary virtual machine, thereby can increase CPU(Central Processing Unit, CPU) occupancy.
Summary of the invention
The embodiment of the present invention provides a kind of synchronous method and equipment of running state information, to reduce the CPU usage of auxiliary virtual machine place physical server, improves the handling property of physical server.
In order to achieve the above object, the embodiment of the present invention provides a kind of synchronous method of running state information, and the method is applied to comprise that in the network of host virtual machine and auxiliary virtual machine, the method comprises the following steps:
When described host virtual machine meets the running state information synchronization policy in definite current running status, described host virtual machine obtains the current running state information of this host virtual machine;
Described host virtual machine sends to described auxiliary virtual machine by described running state information.
Described running state information synchronization policy is specially one of following or combination in any:
Time-based synchronization policy, the synchronization policy based on flow, the synchronization policy based on the central processing unit CPU load, the synchronization policy based on memory read-write, the synchronization policy based on disk I/O I/O read-write, the synchronization policy based on virtual machine state.
Described host virtual machine determines that current running status meets the running state information synchronization policy, specifically comprises:
When the running state information synchronization policy is time-based synchronization policy, described host virtual machine during the fixed time, determines that current running status meets time-based synchronization policy in definite current arrival; Perhaps,
When the running state information synchronization policy is the synchronization policy based on flow, when described host virtual machine is less than the preset flow thresholding in definite current network flow, determine that current running status meets the synchronization policy based on flow; Perhaps,
When the running state information synchronization policy is the synchronization policy based on cpu load, when described host virtual machine is less than default cpu load thresholding in definite current C PU load, determine that current running status meets the synchronization policy based on cpu load; Perhaps,
When the running state information synchronization policy is the synchronization policy based on memory read-write, when described host virtual machine is greater than default internal memory variation thresholding in definite current internal memory situation of change, determine that current running status meets the synchronization policy based on memory read-write; Perhaps,
When the running state information synchronization policy is the synchronization policy based on the magnetic disc i/o read-write, described host virtual machine, when determining that current magnetic disc i/o read-write situation of change is greater than default magnetic disc i/o read-write variation thresholding, determines that current running status meets the synchronization policy based on the magnetic disc i/o read-write; Perhaps,
When the running state information synchronization policy is the synchronization policy based on virtual machine state, described host virtual machine periodically detects the virtual machine running status, and while being normal, determine that current running status meets the synchronization policy based on virtual machine state in definite current virtual machine running status; Wherein, described virtual machine running status is specially the running status of dummy machine system and/or the running status of software virtual machine.
Before described host virtual machine determines that current running status meets the running state information synchronization policy, described method also comprises: described host virtual machine detects the loading condition of described host virtual machine; When the loading condition of described host virtual machine is less than default load-threshold, described host virtual machine sends to described auxiliary virtual machine with online migration pattern by running state information; When the loading condition of described host virtual machine is not less than described default load-threshold, described host virtual machine is carried out when definite current running status meets the running state information synchronization policy, obtains the step of the current running state information of described host virtual machine.
Described host virtual machine and described auxiliary virtual machine are positioned on different physical servers;
Described running state information specifically comprises internal storage state information and virtual machine state information;
Described internal storage state information specifically comprises internal storage data information and/or operation system information;
Described virtual machine state information specifically comprises one of following information or combination in any: network interface card information, hard disk information, CPU information, external equipment information.
Also comprise switch controller in described network, described host virtual machine keeps being connected with described switch controller, and described auxiliary virtual machine keeps being connected with described switch controller; Described host virtual machine and described auxiliary virtual machine all periodically send heartbeat message to described switch controller, by described switch controller, when not receiving the heartbeat message of described host virtual machine, notify described auxiliary virtual machine to utilize the running state information of described host virtual machine to replace described host virtual machine work; And by described switch controller when not receiving the heartbeat message of described auxiliary virtual machine, notify the described host virtual machine running state information that this host virtual machine is current to notify to another auxiliary virtual machine.
The embodiment of the present invention provides a kind of synchronizer of running state information, as host virtual machine, is applied to comprise that in the network of described host virtual machine and auxiliary virtual machine, described host virtual machine specifically comprises:
Determination module, for determining that current running status meets the running state information synchronization policy;
Acquisition module, for when definite current running status meets the running state information synchronization policy, obtain the current running state information of this host virtual machine;
Sending module, for sending to described running state information described auxiliary virtual machine.
Described running state information synchronization policy is specially one of following or combination in any: time-based synchronization policy, the synchronization policy based on flow, the synchronization policy based on the central processing unit CPU load, the synchronization policy based on memory read-write, the synchronization policy based on disk I/O I/O read-write, the synchronization policy based on virtual machine state; Described determination module, specifically for when the running state information synchronization policy is time-based synchronization policy, during the fixed time, determine that current running status meets time-based synchronization policy in definite current arrival; Perhaps, when the running state information synchronization policy is the synchronization policy based on flow, when definite current network flow is less than the preset flow thresholding, determine that current running status meets the synchronization policy based on flow; Perhaps, when the running state information synchronization policy is the synchronization policy based on cpu load, when definite current C PU load is less than default cpu load thresholding, determine that current running status meets the synchronization policy based on cpu load; Perhaps, when the running state information synchronization policy is the synchronization policy based on memory read-write, when definite current internal memory situation of change is greater than default internal memory variation thresholding, determine that current running status meets the synchronization policy based on memory read-write; Perhaps, when the running state information synchronization policy is the synchronization policy based on the magnetic disc i/o read-write, when determining that current magnetic disc i/o read-write situation of change is greater than default magnetic disc i/o read-write variation thresholding, determine that current running status meets the synchronization policy based on the magnetic disc i/o read-write; Perhaps, when the running state information synchronization policy is the synchronization policy based on virtual machine state, periodically detect the virtual machine running status, and while being normal, determine the satisfied synchronization policy based on virtual machine state of current running status in definite current virtual machine running status; Wherein, described virtual machine running status is specially the running status of dummy machine system and/or the running status of software virtual machine.
Also comprise: detection module, for detection of the loading condition of described host virtual machine;
Described sending module, while also for the loading condition at described host virtual machine, being less than default load-threshold, send to described auxiliary virtual machine with online migration pattern by running state information;
Described determination module, be further used for when the loading condition of described host virtual machine is not less than described default load-threshold, carries out and determine that current running status meets the process of running state information synchronization policy.
Described host virtual machine and described auxiliary virtual machine are positioned on different physical servers;
Described running state information specifically comprises internal storage state information and virtual machine state information;
Described internal storage state information specifically comprises internal storage data information and/or operation system information;
Described virtual machine state information specifically comprises one of following information or combination in any: network interface card information, hard disk information, CPU information, external equipment information.
Compared with prior art, the embodiment of the present invention at least has the following advantages: in the embodiment of the present invention, when host virtual machine meets the running state information synchronization policy in current running status, just the running state information of host virtual machine can be sent to auxiliary virtual machine, make auxiliary virtual machine not need the real-time maintenance running status identical with host virtual machine, thereby reduce the CPU usage of auxiliary virtual machine place physical server, improve the handling property of auxiliary virtual machine place physical server, and reduced network consumption.
The accompanying drawing explanation
Fig. 1 is the synchronous method schematic flow sheet of a kind of running state information of providing of the embodiment of the present invention;
Fig. 2 is the structural representation of a kind of host virtual machine of providing of the embodiment of the present invention.
Embodiment
For problems of the prior art, the embodiment of the present invention provides a kind of synchronous method of running state information, and the method is applied to comprise that, in the network of host virtual machine and auxiliary virtual machine, host virtual machine and auxiliary virtual machine are positioned on different physical servers; As shown in Figure 1, the method comprises the following steps:
Step 101, host virtual machine determines that current running status meets the running state information synchronization policy.
In the embodiment of the present invention, this running state information synchronization policy specifically includes but not limited to one of following or combination in any: time-based synchronization policy, the synchronization policy based on flow, the synchronization policy based on cpu load, the synchronization policy based on memory read-write, the synchronization policy based on magnetic disc i/o (Input/Output, I/O) read-write, the synchronization policy based on virtual machine state.
Based on above-mentioned running state information synchronization policy, host virtual machine determines that current running status meets the process of running state information synchronization policy, specifically includes but not limited to following situation:
Situation one, running state information synchronization policy are time-based synchronization policy.When the running state information synchronization policy is time-based synchronization policy, host virtual machine during the fixed time, determines that current running status meets time-based synchronization policy in definite current arrival.For example, be at the appointed time time 1, time 2,3 o'clock time, if the current time is time 1 or time 2 or time 3, determine the current arrival fixed time, and host virtual machine determines that current running status meets time-based synchronization policy.
Situation two, running state information synchronization policy are the synchronization policy based on flow.When the running state information synchronization policy is the synchronization policy based on flow, when host virtual machine is less than the preset flow thresholding in definite current network flow, determine that current running status meets the synchronization policy based on flow.For example, when the preset flow thresholding is thresholding 1, if current network flow is less than thresholding 1, determine that current network flow is less than the preset flow thresholding, and host virtual machine determines that current running status meets the synchronization policy based on flow.
Situation three, running state information synchronization policy are the synchronization policy based on cpu load.When the running state information synchronization policy is the synchronization policy based on cpu load, when host virtual machine is less than default cpu load thresholding in definite current C PU load, determine that current running status meets the synchronization policy based on cpu load.For example, when default cpu load thresholding is 60%, if current C PU load (as 40%) is less than default cpu load thresholding 60%, determine that current C PU load is less than default cpu load thresholding, and host virtual machine determines that current running status meets the synchronization policy based on cpu load.
Situation four, running state information synchronization policy are the synchronization policy based on memory read-write.When the running state information synchronization policy is the synchronization policy based on memory read-write, when host virtual machine is greater than default internal memory variation thresholding in definite current internal memory situation of change, determine that current running status meets the synchronization policy based on memory read-write.For example, changing thresholding at default internal memory is that the internal memory per second is while changing 10 times, if being greater than default internal memory, current internal memory situation of change (per second as current as internal memory changes 15 times) changes thresholding (being that the internal memory per second changes 10 times), host virtual machine determines that current internal memory situation of change is greater than default internal memory and changes thresholding, and host virtual machine determines that current running status meets the synchronization policy based on memory read-write.
Situation five, running state information synchronization policy are the synchronization policy based on the magnetic disc i/o read-write.When the running state information synchronization policy is the synchronization policy based on the magnetic disc i/o read-write, host virtual machine, when determining that current magnetic disc i/o read-write situation of change is greater than default magnetic disc i/o read-write variation thresholding, determines that current running status meets the synchronization policy based on the magnetic disc i/o read-write.For example, changing thresholding in the read-write of default magnetic disc i/o is that magnetic disc i/o read-write per second is while changing 10 times, if being greater than default magnetic disc i/o read-write, current magnetic disc i/o read-write situation of change (as magnetic disc i/o read-write per second changes 15 times) changes thresholding (being that magnetic disc i/o read-write per second changes 10 times), determine that current magnetic disc i/o read-write situation of change is greater than default magnetic disc i/o read-write and changes thresholding, and host virtual machine determines that current running status meets the synchronization policy based on the magnetic disc i/o read-write.
Situation six, running state information synchronization policy are the synchronization policy based on virtual machine state.When the running state information synchronization policy is the synchronization policy based on virtual machine state, host virtual machine periodically detects the virtual machine running status, and, when definite current virtual machine running status is normal (operation is healthy), determine that current running status meets the synchronization policy based on virtual machine state.Wherein, can be by condition monitoring process in host virtual machine, so that host virtual machine periodically detects the virtual machine running status.In addition, the virtual machine running status is specially the running status of dummy machine system and/or the running status of software virtual machine.
Step 102, when current running status meets the running state information synchronization policy, host virtual machine obtains the current running state information of this host virtual machine.Wherein, this running state information specifically includes but not limited to internal storage state information and virtual machine state information; This internal storage state information specifically includes but not limited to internal storage data information and/or operation system information; This virtual machine state information specifically includes but not limited to one of following information or combination in any: network interface card information, hard disk information, CPU information, external equipment information.
Step 103, host virtual machine sends to auxiliary virtual machine by running state information.
When the running state information synchronization policy is time-based synchronization policy, when host virtual machine sends to auxiliary virtual machine by running state information, can realize the Timing Synchronization of running state information.
When the running state information synchronization policy is the synchronization policy based on flow, when host virtual machine sends to auxiliary virtual machine by running state information, the speed limit that can realize running state information is synchronous, with in the situation that do not affect network traffics on host virtual machine, running state information is synchronized to auxiliary virtual machine.
When the running state information synchronization policy is the synchronization policy based on cpu load, when host virtual machine sends to auxiliary virtual machine by running state information, can in the situation that do not affect cpu load on host virtual machine (can not cause cpu load overweight), running state information be synchronized to auxiliary virtual machine.
When the running state information synchronization policy is the synchronization policy based on memory read-write, when host virtual machine sends to auxiliary virtual machine by running state information, can change when very fast at internal memory, in time running state information is synchronized to auxiliary virtual machine, so that auxiliary virtual machine obtains the memory information self needed in time.
When the running state information synchronization policy is the synchronization policy based on the magnetic disc i/o read-write, when host virtual machine sends to auxiliary virtual machine by running state information, can be when magnetic disc i/o read-write variation be very fast, in time running state information is synchronized to auxiliary virtual machine, so that auxiliary virtual machine obtains magnetic disc i/o information in time.
When the running state information synchronization policy is the synchronization policy based on virtual machine state, when host virtual machine sends to auxiliary virtual machine by running state information, can only normal running state information be synchronized to auxiliary virtual machine, and abnormal running state information can be synchronized to auxiliary virtual machine.
In the embodiment of the present invention, host virtual machine can also detect the loading condition of host virtual machine; When the loading condition of host virtual machine is less than default load-threshold (being now low loading condition), host virtual machine sends to auxiliary virtual machine with online migration pattern by running state information, to keep the consistency of host virtual machine and auxiliary virtual machine; When the loading condition of host virtual machine is not less than default load-threshold (being now high load condition), host virtual machine is determined when current running status meets the running state information synchronization policy, just can obtain the current running state information of this host virtual machine, and running state information is sent to auxiliary virtual machine.
In the embodiment of the present invention, also comprise switch controller in network, host virtual machine keeps being connected with switch controller, and auxiliary virtual machine keeps being connected with switch controller.Host virtual machine and auxiliary virtual machine all need periodically to switch controller, to send heartbeat message.Switch controller is not when receiving the heartbeat message of host virtual machine, and the auxiliary virtual machine of notice utilizes the running state information of host virtual machine to replace host virtual machine work, and starts another auxiliary virtual machine.Switch controller is not when receiving the heartbeat message of auxiliary virtual machine, start another auxiliary virtual machine, and notify the host virtual machine running state information that this host virtual machine is current to notify to another auxiliary virtual machine, set up the incidence relation of host virtual machine and another auxiliary virtual machine.
In sum, in the embodiment of the present invention, when host virtual machine meets the running state information synchronization policy in current running status, just the running state information of host virtual machine can be sent to auxiliary virtual machine, make auxiliary virtual machine not need the real-time maintenance running status identical with host virtual machine, thereby can reduce the CPU usage of auxiliary virtual machine place physical server, and improved the handling property of auxiliary virtual machine place physical server, and reduced synchronous frequency, and reduced network consumption.
Inventive concept based on same with said method, a kind of synchronizer of running state information also is provided in the embodiment of the present invention, be applied to comprise that as host virtual machine, in the network of described host virtual machine and auxiliary virtual machine, as shown in Figure 2, described host virtual machine specifically comprises:
Determination module 11, for determining that current running status meets the running state information synchronization policy;
Acquisition module 12, for when definite current running status meets the running state information synchronization policy, obtain the current running state information of this host virtual machine;
Sending module 13, for sending to described running state information described auxiliary virtual machine.
Described running state information synchronization policy is specially one of following or combination in any: time-based synchronization policy, the synchronization policy based on flow, the synchronization policy based on the central processing unit CPU load, the synchronization policy based on memory read-write, the synchronization policy based on disk I/O I/O read-write, the synchronization policy based on virtual machine state; Described determination module 11, specifically for when the running state information synchronization policy is time-based synchronization policy, during the fixed time, determine that current running status meets time-based synchronization policy in definite current arrival; Perhaps, when the running state information synchronization policy is the synchronization policy based on flow, when definite current network flow is less than the preset flow thresholding, determine that current running status meets the synchronization policy based on flow; Perhaps, when the running state information synchronization policy is the synchronization policy based on cpu load, when definite current C PU load is less than default cpu load thresholding, determine that current running status meets the synchronization policy based on cpu load; Perhaps, when the running state information synchronization policy is the synchronization policy based on memory read-write, when definite current internal memory situation of change is greater than default internal memory variation thresholding, determine that current running status meets the synchronization policy based on memory read-write; Perhaps, when the running state information synchronization policy is the synchronization policy based on the magnetic disc i/o read-write, when determining that current magnetic disc i/o read-write situation of change is greater than default magnetic disc i/o read-write variation thresholding, determine that current running status meets the synchronization policy based on the magnetic disc i/o read-write; Perhaps, when the running state information synchronization policy is the synchronization policy based on virtual machine state, periodically detect the virtual machine running status, and while being normal, determine the satisfied synchronization policy based on virtual machine state of current running status in definite current virtual machine running status; Wherein, described virtual machine running status is specially the running status of dummy machine system and/or the running status of software virtual machine.
This host virtual machine also comprises: detection module 14, for detection of the loading condition of described host virtual machine;
Described sending module 13, while also for the loading condition at described host virtual machine, being less than default load-threshold, send to described auxiliary virtual machine with online migration pattern by running state information;
Described determination module 11, be further used for when the loading condition of described host virtual machine is not less than described default load-threshold, carries out and determine that current running status meets the process of running state information synchronization policy.
Described host virtual machine and described auxiliary virtual machine are positioned on different physical servers; Described running state information specifically comprises internal storage state information and virtual machine state information; Described internal storage state information specifically comprises internal storage data information and/or operation system information; Described virtual machine state information specifically comprises one of following information or combination in any: network interface card information, hard disk information, CPU information, external equipment information.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) the described method of execution each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Above disclosed be only several specific embodiment of the present invention, still, the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (10)

1. the synchronous method of a running state information, the method is applied to comprise in the network of host virtual machine and auxiliary virtual machine, it is characterized in that, the method comprises the following steps:
When described host virtual machine meets the running state information synchronization policy in definite current running status, described host virtual machine obtains the current running state information of this host virtual machine;
Described host virtual machine sends to described auxiliary virtual machine by described running state information.
2. the method for claim 1, it is characterized in that, described running state information synchronization policy is specially one of following or combination in any: time-based synchronization policy, the synchronization policy based on flow, the synchronization policy based on the central processing unit CPU load, the synchronization policy based on memory read-write, the synchronization policy based on disk I/O I/O read-write, the synchronization policy based on virtual machine state.
3. method as claimed in claim 1 or 2, is characterized in that, described host virtual machine determines that current running status meets the process of running state information synchronization policy, specifically comprises:
When the running state information synchronization policy is time-based synchronization policy, described host virtual machine during the fixed time, determines that current running status meets time-based synchronization policy in definite current arrival; Perhaps,
When the running state information synchronization policy is the synchronization policy based on flow, when described host virtual machine is less than the preset flow thresholding in definite current network flow, determine that current running status meets the synchronization policy based on flow; Perhaps,
When the running state information synchronization policy is the synchronization policy based on cpu load, when described host virtual machine is less than default cpu load thresholding in definite current C PU load, determine that current running status meets the synchronization policy based on cpu load; Perhaps,
When the running state information synchronization policy is the synchronization policy based on memory read-write, when described host virtual machine is greater than default internal memory variation thresholding in definite current internal memory situation of change, determine that current running status meets the synchronization policy based on memory read-write; Perhaps,
When the running state information synchronization policy is the synchronization policy based on the magnetic disc i/o read-write, described host virtual machine, when determining that current magnetic disc i/o read-write situation of change is greater than default magnetic disc i/o read-write variation thresholding, determines that current running status meets the synchronization policy based on the magnetic disc i/o read-write; Perhaps,
When the running state information synchronization policy is the synchronization policy based on virtual machine state, described host virtual machine periodically detects the virtual machine running status, and while being normal, determine that current running status meets the synchronization policy based on virtual machine state in definite current virtual machine running status; Wherein, described virtual machine running status is specially the running status of dummy machine system and/or the running status of software virtual machine.
4. method as claimed in claim 1 or 2, is characterized in that, before described host virtual machine determines that current running status meets the running state information synchronization policy, described method also comprises:
Described host virtual machine detects the loading condition of described host virtual machine; When the loading condition of described host virtual machine is less than default load-threshold, described host virtual machine sends to described auxiliary virtual machine with online migration pattern by running state information; When the loading condition of described host virtual machine is not less than described default load-threshold, described host virtual machine is carried out when definite current running status meets the running state information synchronization policy, obtains the step of the current running state information of described host virtual machine.
5. method as claimed in claim 1 or 2, is characterized in that,
Described host virtual machine and described auxiliary virtual machine are positioned on different physical servers;
Described running state information specifically comprises internal storage state information and virtual machine state information;
Described internal storage state information specifically comprises internal storage data information and/or operation system information;
Described virtual machine state information specifically comprises one of following information or combination in any: network interface card information, hard disk information, CPU information, external equipment information.
6. method as claimed in claim 1 or 2, is characterized in that, also comprises switch controller in described network, and described host virtual machine keeps being connected with described switch controller, and described auxiliary virtual machine keeps being connected with described switch controller; Described host virtual machine and described auxiliary virtual machine all periodically send heartbeat message to described switch controller, by described switch controller, when not receiving the heartbeat message of described host virtual machine, notify described auxiliary virtual machine to utilize the running state information of described host virtual machine to replace described host virtual machine work; And by described switch controller when not receiving the heartbeat message of described auxiliary virtual machine, notify the described host virtual machine running state information that this host virtual machine is current to notify to another auxiliary virtual machine.
7. the synchronizer of a running state information, be applied to comprise in the network of described host virtual machine and auxiliary virtual machine as host virtual machine, and it is characterized in that, described host virtual machine specifically comprises:
Determination module, for determining that current running status meets the running state information synchronization policy;
Acquisition module, for when definite current running status meets the running state information synchronization policy, obtain the current running state information of this host virtual machine;
Sending module, for sending to described running state information described auxiliary virtual machine.
8. host virtual machine as claimed in claim 7, it is characterized in that, described running state information synchronization policy is specially one of following or combination in any: time-based synchronization policy, the synchronization policy based on flow, the synchronization policy based on the central processing unit CPU load, the synchronization policy based on memory read-write, the synchronization policy based on disk I/O I/O read-write, the synchronization policy based on virtual machine state;
Described determination module, specifically for when the running state information synchronization policy is time-based synchronization policy, during the fixed time, determine that current running status meets time-based synchronization policy in definite current arrival; Perhaps, when the running state information synchronization policy is the synchronization policy based on flow, when definite current network flow is less than the preset flow thresholding, determine that current running status meets the synchronization policy based on flow; Perhaps, when the running state information synchronization policy is the synchronization policy based on cpu load, when definite current C PU load is less than default cpu load thresholding, determine that current running status meets the synchronization policy based on cpu load; Perhaps, when the running state information synchronization policy is the synchronization policy based on memory read-write, when definite current internal memory situation of change is greater than default internal memory variation thresholding, determine that current running status meets the synchronization policy based on memory read-write; Perhaps, when the running state information synchronization policy is the synchronization policy based on the magnetic disc i/o read-write, when determining that current magnetic disc i/o read-write situation of change is greater than default magnetic disc i/o read-write variation thresholding, determine that current running status meets the synchronization policy based on the magnetic disc i/o read-write; Perhaps, when the running state information synchronization policy is the synchronization policy based on virtual machine state, periodically detect the virtual machine running status, and while being normal, determine the satisfied synchronization policy based on virtual machine state of current running status in definite current virtual machine running status; Wherein, described virtual machine running status is specially the running status of dummy machine system and/or the running status of software virtual machine.
9. host virtual machine as claimed in claim 7, is characterized in that, also comprises:
Detection module, for detection of the loading condition of described host virtual machine;
Described sending module, while also for the loading condition at described host virtual machine, being less than default load-threshold, send to described auxiliary virtual machine with online migration pattern by running state information;
Described determination module, be further used for when the loading condition of described host virtual machine is not less than described default load-threshold, carries out and determine that current running status meets the process of running state information synchronization policy.
10. host virtual machine as claimed in claim 7, is characterized in that,
Described host virtual machine and described auxiliary virtual machine are positioned on different physical servers;
Described running state information specifically comprises internal storage state information and virtual machine state information;
Described internal storage state information specifically comprises internal storage data information and/or operation system information;
Described virtual machine state information specifically comprises one of following information or combination in any: network interface card information, hard disk information, CPU information, external equipment information.
CN2013103404159A 2013-08-06 2013-08-06 Running state information synchronizing method and device Pending CN103442033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103404159A CN103442033A (en) 2013-08-06 2013-08-06 Running state information synchronizing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103404159A CN103442033A (en) 2013-08-06 2013-08-06 Running state information synchronizing method and device

Publications (1)

Publication Number Publication Date
CN103442033A true CN103442033A (en) 2013-12-11

Family

ID=49695698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103404159A Pending CN103442033A (en) 2013-08-06 2013-08-06 Running state information synchronizing method and device

Country Status (1)

Country Link
CN (1) CN103442033A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753707A (en) * 2013-12-29 2015-07-01 中国移动通信集团公司 System maintenance method and network switching equipment
CN105373418A (en) * 2015-11-25 2016-03-02 北京汉柏科技有限公司 Implementation method and device of virtual machine FT (Fault Tolerance)
CN105843612A (en) * 2016-03-21 2016-08-10 深圳市京华科讯科技有限公司 Method for switching virtual machines by terminal device and terminal device
CN112256477A (en) * 2020-10-09 2021-01-22 上海云轴信息科技有限公司 Virtualization fault-tolerant method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101452397A (en) * 2008-11-27 2009-06-10 上海交通大学 Forced access control method and apparatus in virtual environment
CN101609419A (en) * 2009-06-29 2009-12-23 北京航空航天大学 The data back up method and the device of the migration of virtual machine consistently online
US20100115332A1 (en) * 2008-11-06 2010-05-06 Weimin Zheng Virtual machine-based on-demand parallel disaster recovery system and the method thereof
CN103188099A (en) * 2011-12-30 2013-07-03 中国移动通信集团上海有限公司 Backup method, device and system of multi-application system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100115332A1 (en) * 2008-11-06 2010-05-06 Weimin Zheng Virtual machine-based on-demand parallel disaster recovery system and the method thereof
CN101452397A (en) * 2008-11-27 2009-06-10 上海交通大学 Forced access control method and apparatus in virtual environment
CN101609419A (en) * 2009-06-29 2009-12-23 北京航空航天大学 The data back up method and the device of the migration of virtual machine consistently online
CN103188099A (en) * 2011-12-30 2013-07-03 中国移动通信集团上海有限公司 Backup method, device and system of multi-application system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋涛: "一种面向客户端的双机热备机制的研究与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104753707A (en) * 2013-12-29 2015-07-01 中国移动通信集团公司 System maintenance method and network switching equipment
CN104753707B (en) * 2013-12-29 2018-05-08 中国移动通信集团公司 A kind of system maintenance method and the network switching equipment
CN105373418A (en) * 2015-11-25 2016-03-02 北京汉柏科技有限公司 Implementation method and device of virtual machine FT (Fault Tolerance)
CN105843612A (en) * 2016-03-21 2016-08-10 深圳市京华科讯科技有限公司 Method for switching virtual machines by terminal device and terminal device
CN112256477A (en) * 2020-10-09 2021-01-22 上海云轴信息科技有限公司 Virtualization fault-tolerant method and device

Similar Documents

Publication Publication Date Title
CN106331098B (en) Server cluster system
CN202798798U (en) High availability system based on cloud computing technology
CN113014634B (en) Cluster election processing method, device, equipment and storage medium
CN103631633B (en) Virtual machine total-system online migration method, device and system
EP2614436B1 (en) Controlled automatic healing of data-center services
CN103199972B (en) The two-node cluster hot backup changing method realized based on SOA, RS485 bus and hot backup system
CN103618627B (en) A kind of manage the method for virtual machine, Apparatus and system
CN112948063B (en) Cloud platform creation method and device, cloud platform and cloud platform implementation system
TW201535266A (en) Resource adjustment methods and systems for virtual machines
CN106612312A (en) Virtualized data center scheduling system and method
CN111694789A (en) Embedded reconfigurable heterogeneous determination method, system, storage medium and processor
CN104391764A (en) Computer fault-tolerant method and computer fault-tolerant system
CN108563557A (en) A kind of Channel Synchronous method and device of multichannel computer
US10445295B1 (en) Task-based framework for synchronization of event handling between nodes in an active/active data storage system
CN103403689A (en) Resource failure management method, device and system
CN103442033A (en) Running state information synchronizing method and device
CN114070739B (en) Cluster deployment method, device, equipment and computer readable storage medium
CN103559124A (en) Fast fault detection method and device
CN104850394A (en) Management method of distributed application program and distributed system
CN111726388A (en) Cross-cluster high-availability implementation method, device, system and equipment
CN114328098A (en) Slow node detection method and device, electronic equipment and storage medium
CN101482829A (en) Cluster system, processing equipment and its redundancy method
CN104123183A (en) Cluster assignment dispatching method and device
CN111045602A (en) Cluster system control method and cluster system
CN110377664A (en) Method of data synchronization, device, server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20131211