11.07.2015 Views

Kemari: Virtual Machine Synchronization for Fault Tolerance - Xen

Kemari: Virtual Machine Synchronization for Fault Tolerance - Xen

Kemari: Virtual Machine Synchronization for Fault Tolerance - Xen

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Kemari</strong>: <strong>Virtual</strong> <strong>Machine</strong> <strong>Synchronization</strong><strong>for</strong> <strong>Fault</strong> <strong>Tolerance</strong>Yoshi TamuraNTT Cyber Space Labs.2009/3/2


Our goalDon’t drop the ball! Don’t drop the VMs!HardwarefailureKeep runningtransparently<strong>Kemari</strong>: <strong>Virtual</strong> <strong>Machine</strong> <strong>Synchronization</strong>Copyright © 2007-2009 Nippon Telegraph and Telephone Corporation 2


Architecture overview<strong>Kemari</strong><strong>Kemari</strong>Dom0HVMSync HVMHVMDom0Back-endFront-endFront-endBack-end<strong>Kemari</strong><strong>Xen</strong><strong>Xen</strong>HardwareNetworkHardwareSAN The core of the synchronization mechanism resides in hypervisor tosynchronize virtual machines efficiently LOC ≅ 4000 (hypervisor: 1000, Dom0+Tools: 3000)Copyright © 2007-2009 Nippon Telegraph and Telephone Corporation 3


Event Channel tapping Simple but the key component of <strong>Kemari</strong> Monitors IN/OUT or Both Registered function is called on specific events Dynamically attachable May be useful <strong>for</strong> measurementsHVM25Dom0Front-endECS_TAPBack-end134<strong>Kemari</strong>Copyright © 2007-2009 Nippon Telegraph and Telephone Corporation 4


Transferring HVM1 (VMM) 2 (VMM) 3 (Tools) 4 (Tools)HVMGrant tableSharedbuffer(VMM/Tools)tmpbufferLog dirtybitmapVCPUPrimarySecondaryHVM region1. Pauses HVM and locks the grant tables. No need to suspend!• Grant tables are mapped at the last 4 pages of HVM region2. Extracts dirtied pfn from the bitmap, copies pfns and the vcpu to theshared buffer, and notifies Tools via event channel3. Maps dirtied pages, transfers pages and vcpu to the secondary4. Secondary prepares temp buffers to rollback when failure isdetected during transferCopyright © 2007-2009 Nippon Telegraph and Telephone Corporation 5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!