[sheepdog] [sheepdog/sheepdog] 37c64c: sheep, dog: add speed throttling of auto-recovery

FUKUDA Yasuhito fukuda.yasuhito at po.ntts.co.jp
Tue Sep 29 07:21:56 CEST 2015


  Branch: refs/heads/stable-0.9
  Home:   https://github.com/sheepdog/sheepdog
  Commit: 37c64cd51ed9e54ff579e52465b8b1aeacbb242e
      https://github.com/sheepdog/sheepdog/commit/37c64cd51ed9e54ff579e52465b8b1aeacbb242e
  Author: FUKUDA Yasuhito <fukuda.yasuhito at po.ntts.co.jp>
  Date:   2015-09-29 (Tue, 29 Sep 2015)

  Changed paths:
    M dog/node.c
    M include/internal_proto.h
    M include/sheepdog_proto.h
    M sheep/ops.c
    M sheep/recovery.c
    M sheep/sheep.c
    M sheep/sheep_priv.h

  Log Message:
  -----------
  sheep, dog: add speed throttling of auto-recovery

Current auto recovery to consume as much as possible the resources of sheepdog node.

So, this patch intended to allow the speed throttling of auto-recovery.
By speed throttling, reduce the resource consumption at auto recovery.

Add new options to sheep and dog commands.
Its options are "interval" and "object processing number".

see examples follows.

ex) sheep -R max=5,interval=1000 /var/lib/sheepdog
    dog node recovery set-throttle 5 1000
    dog node recovery get-throttle

Signed-off-by: Yasuhito Fukuda <fukuda.yasuhito at po.ntts.co.jp>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>

Conflicts:
	include/internal_proto.h
	sheep/recovery.c




More information about the sheepdog mailing list