Received: from eggs.gnu.org ([2001:4830:134:3::10]:42871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abUYh-00028C-2Q for qemu-devel@nongnu.org; Thu, 03 Mar 2016 09:48:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abUYd-0005Je-R2 for qemu-devel@nongnu.org; Thu, 03 Mar 2016 09:48:54 -0500 Received: from smtp3.mundo-r.com ([212.51.32.191]:63726 helo=smtp4.mundo-r.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abUYd-00058U-Kx for qemu-devel@nongnu.org; Thu, 03 Mar 2016 09:48:51 -0500 From: Alberto Garcia In-Reply-To: <56D5BBE1.50301@redhat.com> References: <1456450742-13905-1-git-send-email-xiecl.fnst@cn.fujitsu.com> <1456450742-13905-3-git-send-email-xiecl.fnst@cn.fujitsu.com> <56D5BBE1.50301@redhat.com> Date: Thu, 03 Mar 2016 15:48:13 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v7 2/3] qmp event: Refactor QUORUM_REPORT_BAD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , Changlong Xie , qemu devel , Kevin Wolf , Max Reitz , Markus Armbruster Cc: "Dr. David Alan Gilbert" >> +Read operation: >> { "event": "QUORUM_REPORT_BAD", >> - "data": { "node-name": "node0", "sector-num": 345435, "sectors-count": 5 }, >> + "data": { "node-name": "node0", "sector-num": 345435, "sectors-count": 5, >> + "type": "read" }, >> "timestamp": { "seconds": 1344522075, "microseconds": 745528 } } >> >> +Flush operation: >> +{ "event": "QUORUM_REPORT_BAD", >> + "data": { "node-name": "node0", "sector-num": 0, "sectors-count": 2097120, >> + "type": "flush", "error": "Broken pipe" }, >> + "timestamp": { "seconds": 1456406829, "microseconds": 291763 } } >> + >> Note: this event is rate-limited. > > Question - do we care if rate limiting masks one type of failure due > to another? Or put another way, are we okay with a single > rate-limiting queue for all three types, or do we want three queues? > Also, shouldn't this have a queue per child node (I don't want to be > flooded with multiple notifications in one second that child1 has > failed, but I _do_ want notifications if both child1 and child2 fail > in the same second). I think you are right, thanks for pointing it out. Berto