Compare commits

...

1 Commits

Author SHA1 Message Date
philipyoo 2adf6bbd4b bf: remove crr backlog metrics in reportHandler
Remove backlog metrics as it is a duplicate of pending
metrics now.
2018-09-04 08:41:35 -07:00
2 changed files with 2 additions and 13 deletions

View File

@ -136,8 +136,8 @@ function _crrRequest(endpoint, site, log, cb) {
}
return cb(null, {});
}
const { completions, failures, backlog, throughput, pending } = res;
if (!completions || !failures || !backlog || !throughput || !pending) {
const { completions, failures, throughput, pending } = res;
if (!completions || !failures || !throughput || !pending) {
log.error('could not get metrics from backbeat', {
method: 'getCRRStats',
});
@ -152,10 +152,6 @@ function _crrRequest(endpoint, site, log, cb) {
count: parseInt(failures.results.count, 10),
size: parseInt(failures.results.size, 10),
},
backlog: {
count: parseInt(backlog.results.count, 10),
size: parseInt(backlog.results.size, 10),
},
throughput: {
count: parseInt(throughput.results.count, 10),
size: parseInt(throughput.results.size, 10),
@ -219,7 +215,6 @@ function getCRRStats(log, cb, _testConfig) {
completions: all.completions,
failures: all.failures,
pending: all.pending,
backlog: all.backlog,
throughput: all.throughput,
byLocation,
};

View File

@ -25,21 +25,18 @@ const expectedResultsRef = {
completions: { count: 10000, size: 10000 },
failures: { count: 2000, size: 2000 },
pending: { count: 8000, size: 8000 },
backlog: { count: 10000, size: 10000 },
throughput: { count: 11, size: 11 },
byLocation: {
site1: {
completions: { count: 5000, size: 5000 },
failures: { count: 1000, size: 1000 },
pending: { count: 4000, size: 4000 },
backlog: { count: 5000, size: 5000 },
throughput: { count: 5, size: 5 },
},
site2: {
completions: { count: 5000, size: 5000 },
failures: { count: 1000, size: 1000 },
pending: { count: 4000, size: 4000 },
backlog: { count: 5000, size: 5000 },
throughput: { count: 5, size: 5 },
},
},
@ -50,21 +47,18 @@ const requestResults = {
completions: { results: { count: 10000, size: 10000 } },
failures: { results: { count: 2000, size: 2000 } },
pending: { results: { count: 8000, size: 8000 } },
backlog: { results: { count: 10000, size: 10000 } },
throughput: { results: { count: 11, size: 11 } },
},
site1: {
completions: { results: { count: 5000, size: 5000 } },
failures: { results: { count: 1000, size: 1000 } },
pending: { results: { count: 4000, size: 4000 } },
backlog: { results: { count: 5000, size: 5000 } },
throughput: { results: { count: 5, size: 5 } },
},
site2: {
completions: { results: { count: 5000, size: 5000 } },
failures: { results: { count: 1000, size: 1000 } },
pending: { results: { count: 4000, size: 4000 } },
backlog: { results: { count: 5000, size: 5000 } },
throughput: { results: { count: 5, size: 5 } },
},
};