main: add configurable fault injection interval#98
Conversation
|
@acerv hello, can you review these changes please? |
|
Hi, what's the point of having a probability bigger than 100 if the kernel threats any value above 100 as 100 ? |
The idea is to modify the interval between probability checks, rather than the probability itself. I haven't really changed the probability in code. Right now 100% probability of failure grants that every 100th call will fail (interval=100). So, with different intervals, it is possible, for example, to have fails (or probability checks if below 100%) every 10th call (interval=10). Or, with an interval set to 1 and a probability to 10%, each call may fail with that probability. docs: |
|
Of course, I was switching between reviews and messed up this one. Now it's clear thanks |
ad4b111 to
6c3b3bd
Compare
6c3b3bd to
86ed6b6
Compare
Adds a parameter to configure the fault injection interval, which is locked at default 100.
Can be used to make the fault injection probability checks more frequent. This would lead to a more thorough test of system stability.