Commit 309f9dc
committed
Reduce compressed stats per operation from 100 -> 20
We keep durations of invocations to measure how long our algo takes to
detect attacks. So per `fs.readFile` or `mysql.query`...
When 5000 samples are reached, we compress the durations into
percentiles.
100 * 5000 = 5M durations
That's a lot per operation. I think we can reduce this to 100K
invocations per operation :)
So that we only keep 20 compressed percentiles per operation.
If we go over this 20, we drop the oldest compressed percentiles.1 parent 192443f commit 309f9dc
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments