1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

tuned threshold min peers

This commit is contained in:
Massimo Candela
2020-08-02 20:50:11 +02:00
parent f455a66d4d
commit e4c2dc0c9d
7 changed files with 15 additions and 15 deletions

View File

@@ -23,31 +23,31 @@ monitors:
channel: newprefix channel: newprefix
name: prefix-detection name: prefix-detection
params: params:
thresholdMinPeers: 2 thresholdMinPeers: 3
- file: monitorPath - file: monitorPath
channel: path channel: path
name: path-matching name: path-matching
params: params:
thresholdMinPeers: 0 thresholdMinPeers: 1
- file: monitorVisibility - file: monitorVisibility
channel: visibility channel: visibility
name: withdrawal-detection name: withdrawal-detection
params: params:
thresholdMinPeers: 20 thresholdMinPeers: 40
- file: monitorAS - file: monitorAS
channel: misconfiguration channel: misconfiguration
name: asn-monitor name: asn-monitor
params: params:
thresholdMinPeers: 2 thresholdMinPeers: 3
- file: monitorRPKI - file: monitorRPKI
channel: rpki channel: rpki
name: rpki-monitor name: rpki-monitor
params: params:
thresholdMinPeers: 1 thresholdMinPeers: 2
checkUncovered: false checkUncovered: false
preCacheROAs: true preCacheROAs: true
refreshVrpListMinutes: 15 refreshVrpListMinutes: 15

View File

@@ -84,7 +84,7 @@ let config = {
channel: "path", channel: "path",
name: "path-matching", name: "path-matching",
params: { params: {
thresholdMinPeers: 0 thresholdMinPeers: 1
} }
}, },
{ {
@@ -92,7 +92,7 @@ let config = {
channel: "newprefix", channel: "newprefix",
name: "prefix-detection", name: "prefix-detection",
params: { params: {
thresholdMinPeers: 2 thresholdMinPeers: 3
} }
}, },
{ {
@@ -100,7 +100,7 @@ let config = {
channel: "visibility", channel: "visibility",
name: "withdrawal-detection", name: "withdrawal-detection",
params: { params: {
thresholdMinPeers: 20 thresholdMinPeers: 40
} }
}, },
{ {
@@ -108,7 +108,7 @@ let config = {
channel: "misconfiguration", channel: "misconfiguration",
name: "as-monitor", name: "as-monitor",
params: { params: {
thresholdMinPeers: 2 thresholdMinPeers: 3
} }
}, },
{ {
@@ -118,7 +118,7 @@ let config = {
params: { params: {
preCacheROAs: true, preCacheROAs: true,
refreshVrpListMinutes: 15, refreshVrpListMinutes: 15,
thresholdMinPeers: 1, thresholdMinPeers: 2,
checkUncovered: false checkUncovered: false
} }
} }

View File

@@ -36,7 +36,7 @@ export default class MonitorAS extends Monitor {
constructor(name, channel, params, env){ constructor(name, channel, params, env){
super(name, channel, params, env); super(name, channel, params, env);
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 0; this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 3;
this.updateMonitoredResources(); this.updateMonitoredResources();
}; };

View File

@@ -36,7 +36,7 @@ export default class MonitorNewPrefix extends Monitor {
constructor(name, channel, params, env){ constructor(name, channel, params, env){
super(name, channel, params, env); super(name, channel, params, env);
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 2; this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 3;
this.updateMonitoredResources(); this.updateMonitoredResources();
}; };

View File

@@ -36,7 +36,7 @@ export default class MonitorPath extends Monitor {
constructor(name, channel, params, env){ constructor(name, channel, params, env){
super(name, channel, params, env); super(name, channel, params, env);
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 0; this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 1;
this.updateMonitoredResources(); this.updateMonitoredResources();
}; };

View File

@@ -16,7 +16,7 @@ export default class MonitorRPKI extends Monitor {
this.updateMonitoredResources(); this.updateMonitoredResources();
}); });
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 0; this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 2;
this.validationQueue = []; this.validationQueue = [];
this.loadRpkiValidator(env); this.loadRpkiValidator(env);

View File

@@ -37,7 +37,7 @@ export default class MonitorVisibility extends Monitor {
constructor(name, channel, params, env){ constructor(name, channel, params, env){
super(name, channel, params, env); super(name, channel, params, env);
this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 10; this.thresholdMinPeers = (params && params.thresholdMinPeers != null) ? params.thresholdMinPeers : 40;
if (params.threshold) { if (params.threshold) {
this.logger.log({ this.logger.log({
level: 'error', level: 'error',