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
name: prefix-detection
params:
thresholdMinPeers: 2
thresholdMinPeers: 3
- file: monitorPath
channel: path
name: path-matching
params:
thresholdMinPeers: 0
thresholdMinPeers: 1
- file: monitorVisibility
channel: visibility
name: withdrawal-detection
params:
thresholdMinPeers: 20
thresholdMinPeers: 40
- file: monitorAS
channel: misconfiguration
name: asn-monitor
params:
thresholdMinPeers: 2
thresholdMinPeers: 3
- file: monitorRPKI
channel: rpki
name: rpki-monitor
params:
thresholdMinPeers: 1
thresholdMinPeers: 2
checkUncovered: false
preCacheROAs: true
refreshVrpListMinutes: 15

View File

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

View File

@@ -36,7 +36,7 @@ export default class MonitorAS extends Monitor {
constructor(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();
};

View File

@@ -36,7 +36,7 @@ export default class MonitorNewPrefix extends Monitor {
constructor(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();
};

View File

@@ -36,7 +36,7 @@ export default class MonitorPath extends Monitor {
constructor(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();
};

View File

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

View File

@@ -37,7 +37,7 @@ export default class MonitorVisibility extends Monitor {
constructor(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) {
this.logger.log({
level: 'error',