Branch: refs/heads/stable-0.9
Home: https://github.com/sheepdog/sheepdog
Commit: 37c64cd51ed9e54ff579e52465b8b1aeacbb242e
https://github.com/sheepdog/sheepdog/commit/37c64cd51ed9e54ff579e52465b8b1aeacbb242e
Author: FUKUDA Yasuhito
Date: 2015-09-29 (Tue, 29 Sep 2015
On Fri, 19 Dec 2014 18:37:30 +0100
Valerio Pachera wrote:
> 2014-12-19 3:50 GMT+01:00 FUKUDA Yasuhito :
> > If you do sheepdog-process restart, the settings return to be original.
> > run "sheep -R" command at node startup.
> > Or, run "dog node recovery set
On Thu, 18 Dec 2014 14:00:07 +0900
Hitoshi Mitake wrote:
> At Wed, 17 Dec 2014 17:34:04 +0900,
> FUKUDA Yasuhito wrote:
> >
> > Current sheepdog, I/O request is processed by way of the Priority Lists
> > during auto-recovery.
> > But it might be wasted performa
On Thu, 18 Dec 2014 07:59:24 +0100
Valerio Pachera wrote:
> 2014-12-17 9:32 GMT+01:00 FUKUDA Yasuhito :
> > ex) sheep -R max=5,interval=1000 /var/lib/sheepdog
> > dog node recovery set-throttle 5 1000
> > dog node recovery get-throttle
>
> Nice!
> If I shut
",", recovery_parsers) < 0)
+ exit(1);
+ sys->rthrottling.max_exec_count = max_exec_count;
+ sys->rthrottling.queue_work_interval
+ = queue_work_interval;
+
ish_schedule_oids(rinfo);
-
- if (sys->cinfo.disable_recovery && !has_scheduled_objects(rinfo)) {
+ if (sys->cinfo.disable_recovery) {
sd_debug("suspended");
rinfo->suspended = true;
/* suspend until resume_suspended_recovery() is called */
--
1.7.1
--
NTTソフトウェア株式会社
クラウド事業部 第一事業ユニット(C一BU)
福田康人(FUKUDA Yasuhito)
E-mail:fukuda.yasuh...@po.ntts.co.jp
〒220-0012 横浜市西区みなとみらい4-4-5
横浜アイマークプレイス13階
TEL:045-212-7393/FAX:045-662-7856
--
sheepdog mailing list
sheepdog@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/sheepdog
= queue_work_interval;
+ if (max_exec_count > 0 && queue_work_interval > 0)
+ sys->rthrottling.throttling = true;
+ break;
case 'v':
fprintf(stdout, "Sheepdog daemon version %s\n",
PACKAGE_VERSION);
diff --git a/sheep/sheep_priv.h b/sheep/sheep_priv.h
index 4ac08f8..170e8ff 100644
--- a/sheep/sheep_priv.h
+++ b/sheep/sheep_priv.h
@@ -143,6 +143,8 @@ struct system_info {
bool gateway_only;
bool nosync;
+ struct recovery_throttling rthrottling;
+
struct work_queue *net_wqueue;
struct work_queue *gateway_wqueue;
struct work_queue *io_wqueue;
@@ -428,6 +430,8 @@ int start_recovery(struct vnode_info *cur_vinfo, struct
vnode_info *, bool,
bool oid_in_recovery(uint64_t oid);
bool node_in_recovery(void);
void get_recovery_state(struct recovery_state *state);
+void set_recovery(struct recovery_throttling *rthrottling);
+struct recovery_throttling get_recovery(void);
int read_backend_object(uint64_t oid, char *data, unsigned int datalen,
uint64_t offset);
--
1.7.1
--
NTTソフトウェア株式会社
クラウド事業部 第一事業ユニット(C一BU)
福田康人(FUKUDA Yasuhito)
E-mail:fukuda.yasuh...@po.ntts.co.jp
〒220-0012 横浜市西区みなとみらい4-4-5
横浜アイマークプレイス13階
TEL:045-212-7393/FAX:045-662-7856
--
sheepdog mailing list
sheepdog@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/sheepdog