Add pseudo-random PG generation

This commit is contained in:
Vitaliy Filippov
2020-07-07 23:13:07 +03:00
parent 9d10a4d057
commit 6022f28dc9
4 changed files with 100 additions and 25 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class Mon
url += '/v3';
this.etcd_urls.push(scheme+'://'+url);
}
this.etcd_prefix = config.etcd_prefix || '/rage';
this.etcd_prefix = config.etcd_prefix || '/microceph';
this.etcd_prefix = this.etcd_prefix.replace(/\/\/+/g, '/').replace(/^\/?(.*[^\/])\/?$/, '/$1');
this.etcd_start_timeout = (config.etcd_start_timeout || 5) * 1000;
this.state = JSON.parse(JSON.stringify(Mon.etcd_tree));