diff options
| author | Linus Nordberg <linus@sunet.se> | 2020-02-12 17:12:43 +0100 |
|---|---|---|
| committer | Linus Nordberg <linus@sunet.se> | 2020-02-14 12:17:16 +0100 |
| commit | 920995ca6e2ef7c4993b0196c2556409eade04d1 (patch) | |
| tree | 0e12ec19f4268b7495e5ca5c798d3844dda91a24 /p11p-daemon/config | |
| parent | 37277c3ba0119f50af8ffff014ce13b93f225557 (diff) | |
Make probability of dropping a request, for testing, configurable
Diffstat (limited to 'p11p-daemon/config')
| -rw-r--r-- | p11p-daemon/config/sys.config | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/p11p-daemon/config/sys.config b/p11p-daemon/config/sys.config index 74d2c21..e697383 100644 --- a/p11p-daemon/config/sys.config +++ b/p11p-daemon/config/sys.config @@ -4,20 +4,30 @@ [ {loglevel, 3}, {proxyapp_bin_path, "/usr/lib/x86_64-linux-gnu/p11-kit/p11-kit-remote"}, - {groups, + {testing_drop_prob, 0}, + {vtokens, [{"vtoken0", [ - {mode, {balance, [2]}}, + {timeout, 2000}, {modules, - [{"softhsm2", "/usr/lib/softhsm/libsofthsm2.so"}, - {"bogusmod_0", "/usr/lib/softhsm/libsofthsm2.so"}]} + [ + {"softhsm2", "/usr/lib/softhsm/libsofthsm2.so"}, + {"bogusmod_0", "/usr/lib/softhsm/libsofthsm2.so"} + ]} ]}, {"vtoken1", - [{modules, - [{"softhsm2", "/usr/lib/softhsm/libsofthsm2.so", [{"SOME_ENV", "hi env!"}]}]} + [ + %% Try failover twice, even if we have only one token. In + %% effect, retry the same token once after a failure. + {failover, 2}, + {timeout, 1000}, + {modules, + [ + {"softhsm2", "/usr/lib/softhsm/libsofthsm2.so", [{"SOFTHSM2_CONF", "/home/linus/usr/src/p11p/tests/softhsm/softhsm2.conf"}]} + ]} ]} - ]} - ]}, + ]} + ]}, {lager, [{handlers, [ |
