CrossPoolMigrationv1: Difference between revisions

From Xen
Jump to navigationJump to search
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TODO|Has this been implemented? If so, it should be moved to Designs in the XAPI Devel Index}}
<!-- MoinMoin name: CrossPoolMigrationV2 -->
<!-- Comment: -->
<!-- WikiMedia name: CrossPoolMigrationV2 -->
<!-- Page revision: 00000005 -->
<!-- Original date: Mon Jul 18 15:23:07 2011 (1311002587000000) -->


This page describes a possible design for [[CrossPoolMigration|Cross-pool migration]] (which also works for within-pool migration with and without shared storage).
__NOTOC__
This page describes a possible design for Cross-pool migration (which also works for within-pool migration with and without shared storage).


This is an alternative design to [[CrossPoolMigration]]
This is an alternative design to [[CrossPoolMigrationv2]] and [[CrossPoolMigrationv3]]


This design has the following features:
This design has the following features:
Line 36: Line 31:
= Migration sequence =
= Migration sequence =


[http://downloads.xen.org/Wiki/XCP/CrossPoolMigrationV2/migrate.pdf Migrate PDF file]
[http://downloads.xen.org/Wiki/XCP/CrossPoolMigrationV2/migrate.pdf Migrate PDF file]<br />
[[Image:CrossPoolMigrationV2$migrate.png]]
[[Image:CrossPoolMigrationV2$migrate.png]]


Line 78: Line 73:
|}
|}


[[Category:XCP]]
[[Category:XAPI Devel]]
[[Category:Developers]]

Latest revision as of 13:01, 11 July 2013

Icon todo.png To Do:

Has this been implemented? If so, it should be moved to Designs in the XAPI Devel Index


This page describes a possible design for Cross-pool migration (which also works for within-pool migration with and without shared storage).

This is an alternative design to CrossPoolMigrationv2 and CrossPoolMigrationv3

This design has the following features:

  1. DRBD is used to replicate disks on demand
    • this is storage-format agnostic: it doesn't require .vhd
  2. the SM on one host can generate URIs which can be used by other SMs to bootstrap the disk mirroring process
  3. a single codepath is used in xapi, making testing easier
    • this replaces the existing migration API
  4. a simple RESTful API makes the whole thing quite easy to test, prod etc.
  5. the xapi pieces and the SM pieces can be developed and tested independently and integrated at the end

Pros/Cons of DRBD vs snapshot/copy

  • Pro: by separating storage replication from memory transfer we can switch easily to "libxl" without modifications. Otherwise we would need callbacks from libxl to synchronise the disk copy with the memory copy.
  • Pro: we don't need to write a snapshot/copy loop
  • Con: we do need to write something to manage a drbd instance, which may be on a shared host (eg vanilla Debian dom0)
  • Pro: migration downtime is expected to be lower, since replication cost is spread over each I/O request, rather than being bursty
  • Con: continuous replication might slow down some workloads more than snapshot/copy
  • Con: DRBD is linux only: it's not clear how this would work with (eg) a FreeBSD storage driver domain.

Component diagram

Component PDF file
CrossPoolMigrationV2$components.png

Migration sequence

Migrate PDF file
CrossPoolMigrationV2$migrate.png

Proposed milestones and task list

The following milestones are proposed:

Milestone number
1
2
3
4

The following tasks are proposed:

Task Status
Create sample drbd.conf files Completed
Implement a DRBD service in dom0 In progress
Implement xapi HTTP operations
Implement SMAPI VDI.replicate_to, VDI.get_replication_target
Implement xapi HTTP heartbeat
Implement XenAPI VM.migrate, VM.receive