Commit e633b1e
committed
Don't send heartbeat when there are compressed stats
We keep durations per operation (to measure the time our algo takes to
detect attacks)
After 5000 samples we compress them into percentiles. 5000 invocations
is not much. This means that we will send a heartbeat almost every
checkIfHeartbeatIsNeededEveryMS for normal production traffic
Which is currently set at 60s
So every minute we would send a heartbeat...1 parent 192443f commit e633b1e
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
359 | | - | |
360 | | - | |
| 358 | + | |
361 | 359 | | |
362 | 360 | | |
363 | 361 | | |
| |||
0 commit comments