Lower node.js requirement to 10.x
parent
2e0f223ddb
commit
e41bee72a5
|
@ -290,7 +290,7 @@ Vitastor with single-thread NBD on the same hardware:
|
||||||
branch release-3.4, because there is a bug in upstream etcd which makes Vitastor OSDs fail to
|
branch release-3.4, because there is a bug in upstream etcd which makes Vitastor OSDs fail to
|
||||||
move PGs out of "starting" state if you have at least around ~500 PGs or so. The custom build
|
move PGs out of "starting" state if you have at least around ~500 PGs or so. The custom build
|
||||||
will be unnecessary when etcd merges the fix: https://github.com/etcd-io/etcd/pull/12402.
|
will be unnecessary when etcd merges the fix: https://github.com/etcd-io/etcd/pull/12402.
|
||||||
- Install node.js 12 or newer.
|
- Install node.js 10 or newer.
|
||||||
- Install gcc and g++ 9.x or later.
|
- Install gcc and g++ 9.x or later.
|
||||||
- Clone https://yourcmc.ru/git/vitalif/vitastor/ with submodules.
|
- Clone https://yourcmc.ru/git/vitalif/vitastor/ with submodules.
|
||||||
- Install QEMU 2.0+, get its source, begin to build it, stop the build and copy headers:
|
- Install QEMU 2.0+, get its source, begin to build it, stop the build and copy headers:
|
||||||
|
|
17
mon/mon.js
17
mon/mon.js
|
@ -9,11 +9,8 @@ const LPOptimizer = require('./lp-optimizer.js');
|
||||||
const stableStringify = require('./stable-stringify.js');
|
const stableStringify = require('./stable-stringify.js');
|
||||||
const PGUtil = require('./PGUtil.js');
|
const PGUtil = require('./PGUtil.js');
|
||||||
|
|
||||||
// FIXME Split into several files
|
|
||||||
class Mon
|
|
||||||
{
|
|
||||||
// FIXME document all etcd keys and config variables in the form of JSON schema or similar
|
// FIXME document all etcd keys and config variables in the form of JSON schema or similar
|
||||||
static etcd_allow = new RegExp('^'+[
|
const etcd_allow = new RegExp('^'+[
|
||||||
'config/global',
|
'config/global',
|
||||||
'config/node_placement',
|
'config/node_placement',
|
||||||
'config/pools',
|
'config/pools',
|
||||||
|
@ -26,9 +23,9 @@ class Mon
|
||||||
'pg/stats/[1-9]\\d*/[1-9]\\d*',
|
'pg/stats/[1-9]\\d*/[1-9]\\d*',
|
||||||
'pg/history/[1-9]\\d*/[1-9]\\d*',
|
'pg/history/[1-9]\\d*/[1-9]\\d*',
|
||||||
'stats',
|
'stats',
|
||||||
].join('$|^')+'$')
|
].join('$|^')+'$');
|
||||||
|
|
||||||
static etcd_tree = {
|
const etcd_tree = {
|
||||||
config: {
|
config: {
|
||||||
/* global: {
|
/* global: {
|
||||||
// mon
|
// mon
|
||||||
|
@ -213,8 +210,11 @@ class Mon
|
||||||
incomplete: uint64_t,
|
incomplete: uint64_t,
|
||||||
}, */
|
}, */
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
|
// FIXME Split into several files
|
||||||
|
class Mon
|
||||||
|
{
|
||||||
constructor(config)
|
constructor(config)
|
||||||
{
|
{
|
||||||
// FIXME: Maybe prefer local etcd
|
// FIXME: Maybe prefer local etcd
|
||||||
|
@ -1228,4 +1228,7 @@ function sha1hex(str)
|
||||||
return hash.digest('hex');
|
return hash.digest('hex');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Mon.etcd_allow = etcd_allow;
|
||||||
|
Mon.etcd_tree = etcd_tree;
|
||||||
|
|
||||||
module.exports = Mon;
|
module.exports = Mon;
|
||||||
|
|
Loading…
Reference in New Issue