qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] Introduce Advanced Watch Dog module
@ 2019-10-16 11:22 Zhang Chen
  2019-10-16 11:22 ` [RFC PATCH 1/4] net/awd.c: Introduce Advanced Watch Dog module framework Zhang Chen
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Zhang Chen @ 2019-10-16 11:22 UTC (permalink / raw)
  To: Jason Wang, Paolo Bonzini, qemu-dev; +Cc: Zhang Chen, Zhang Chen

From: Zhang Chen <chen.zhang@intel.com>

Advanced Watch Dog is an universal monitoring module on VMM side, it can be used to detect network down(VMM to guest, VMM to VMM, VMM to another remote server) and do previously set operation.
for example: send message to admin, notify another VMM, send qmp command to qemu do some operation like restart the VM, build VMM heartbeat system, etc.
It make user have basic VM/Host network monitoring tools and basic false tolerance and recovery solution.

Demo usage(for COLO heartbeat):

In primary node:

-chardev socket,id=h1,host=3.3.3.3,port=9009,server,nowait
-chardev socket,id=heartbeat0,host=3.3.3.3,port=4445
-object iothread,id=iothread2
-object advanced-watchdog,id=heart1,server=on,awd_node=h1,notification_node=heartbeat0,opt_script=colo_opt_script_path,iothread=iothread1,pulse_interval=1000,timeout=5000

In secondary node:

-monitor tcp::4445,server,nowait 
-chardev socket,id=h1,host=3.3.3.3,port=9009,reconnect=1
-chardev socket,id=heart1,host=3.3.3.8,port=4445
-object iothread,id=iothread1
-object advanced-watchdog,id=heart1,server=off,awd_node=h1,notification_node=heart1,opt_script=colo_secondary_opt_script,iothread=iothread1,timeout=10000


Zhang Chen (4):
  net/awd.c: Introduce Advanced Watch Dog module framework
  net/awd.c: Initailize input/output chardev
  net/awd.c: Load advanced watch dog worker thread job
  vl.c: Make Advanced Watch Dog delayed initialization

 net/Makefile.objs |   1 +
 net/awd.c         | 486 ++++++++++++++++++++++++++++++++++++++++++++++
 qemu-options.hx   |   6 +
 vl.c              |   7 +
 4 files changed, 500 insertions(+)
 create mode 100644 net/awd.c

-- 
2.17.1



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-10-24  3:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-16 11:22 [RFC PATCH 0/4] Introduce Advanced Watch Dog module Zhang Chen
2019-10-16 11:22 ` [RFC PATCH 1/4] net/awd.c: Introduce Advanced Watch Dog module framework Zhang Chen
2019-10-21 17:23   ` Paolo Bonzini
2019-10-23  6:50     ` Zhang, Chen
2019-10-23 11:01   ` Philippe Mathieu-Daudé
2019-10-23 11:09     ` Zhang, Chen
2019-10-23 11:38       ` Philippe Mathieu-Daudé
2019-10-24  3:07         ` Zhang, Chen
2019-10-16 11:22 ` [RFC PATCH 2/4] net/awd.c: Initailize input/output chardev Zhang Chen
2019-10-16 11:22 ` [RFC PATCH 3/4] net/awd.c: Load advanced watch dog worker thread job Zhang Chen
2019-10-16 11:22 ` [RFC PATCH 4/4] vl.c: Make Advanced Watch Dog delayed initialization Zhang Chen
2019-10-16 15:35 ` [RFC PATCH 0/4] Introduce Advanced Watch Dog module no-reply
2019-10-16 15:35   ` Zhang Chen
2019-10-16 15:40   ` Zhang Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).