]> git.ipfire.org Git - thirdparty/libvirt.git/commit
migration: Usable time statistics without requiring NTP
authorJiri Denemark <jdenemar@redhat.com>
Thu, 23 Apr 2015 07:19:12 +0000 (09:19 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 24 Apr 2015 13:02:00 +0000 (15:02 +0200)
commitaa9f13959972c057a6028cfd4d58b6daaa6e1d8f
treed16653e608095d0431a891b736bbf633332cc779
parentda4d7c30693766b89604d3d1db3cee465866a4d7
migration: Usable time statistics without requiring NTP

virDomainGetJobStats is able to report statistics of a completed
migration, however to get usable downtime and total time statistics both
hosts have to keep synchronized time. To provide at least some
estimation of the times even when NTP daemons are not running on both
hosts we can just ignore the time needed to transfer a migration cookie
to the destination host. The result will be also inaccurate but a bit
more predictable. The total/down time will just be at least what we
report.

https://bugzilla.redhat.com/show_bug.cgi?id=1213434
include/libvirt/libvirt-domain.h
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_migration.c
tools/virsh-domain.c