From: Fam Zheng Subject: Re: KVM in HA active/active + fault-tolerant configuration Date: Thu, 22 Aug 2013 11:57:35 +0800 Message-ID: <20130822035735.GC4736@T430s.nay.redhat.com> References: <39187c68-9c18-4a42-bbb6-8704bf3f48a9@theiggy.com> <5aa7342b9d8de1d59e048b086d4fd6a9@assyoma.it> Reply-To: famz@redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Brian Jackson , kvm@vger.kernel.org To: g.danti@assyoma.it Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43164 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752387Ab3HVD5m (ORCPT ); Wed, 21 Aug 2013 23:57:42 -0400 Content-Disposition: inline In-Reply-To: <5aa7342b9d8de1d59e048b086d4fd6a9@assyoma.it> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 08/21 22:49, g.danti@assyoma.it wrote: > On 2013-08-21 21:40, Brian Jackson wrote: > >On Wednesday, August 21, 2013 6:02:31 AM CDT, g.danti@assyoma.it > >wrote: > >>Hi all, > >>I have a question about Linux KVM HA cluster. > >> > >>I understand that in a HA setup I can live migrate virtual > >>machine between host that shares the same storage (via various > >>methods, eg: DRDB). This enable us to migrate the VMs based on > >>hosts loads and performance. > >> > >>=ECMy current understanding is that, with this setup, an host > >>crash will cause the VMs to be restarded on another host. > >> > >>However, I wonder if there is a method to have a fully > >>fault-tolerant HA configuration, where for "fully > >>fault-tolerant" I means that an host crash (eg: power failures) > >>will cause the VMs to be migrated to another hosts with no state > >>change. In other word: it is possible to have an > >>always-synchronized (both disk & memory) VM instance on another > >>host, so that the migrated VM does not need to be restarted but > >>only restored/unpaused? For disk data synchronization we can use > >>shared storages (bypassing the problem) or something similar do > >>DRDB, but what about memory? > > > > > >You're looking for something that doesn't exist for KVM. There was a > >project once for it called Kemari, but afaik, it's been abandoned fo= r > >a while. >=20 > Hi Brian, > thank you for your reply. >=20 > As I googled extensively without finding anything, I was prepared to > a similar response. >=20 > Anyway, from what I understand, Qemu already use a similar approach > (tracking dirty memory pages) when live migrating virtual machines > to another host. >=20 Active/active sounds not easy to get, as it seem to me, since you'll need to make sure the VMs on both nodes are always in the same state al= l the time, that sounds impossible for two emulator processes on two different hosts. I think hot spare is more practical: in background you repetitively trigger migration of delta memory and copy to hot spare, but don't start to run it. Once the active one fails, you can resume th= e running of hot spare, which is at a latest checkpoint. But I think this needs to some work on current live migration code. =46am