Lower throttling limit in mxs173_throttle_filter
The test appears to fail when the throttling is unable to keep the QPS high enough for the test to pass. To reduce the likelihood of this, lower the limit to 500 QPS. In theory, the minimum delay of one millisecond in the delayed_call limits the filter to a maximum QPS of 1000 as each query would wait for at least a millisecond before being routed. This is yet to be proven but it would explain why the tests are having a hard time approaching that level of QPS.
This commit is contained in:
parent
25d134df9c
commit
6b11067690
@ -56,7 +56,7 @@ port = 4009
|
||||
[throttle]
|
||||
type = filter
|
||||
module = throttlefilter
|
||||
max_qps = 1000
|
||||
max_qps = 500
|
||||
throttling_duration = 10000
|
||||
sampling_duration = 250
|
||||
continuous_duration = 2000
|
||||
|
@ -15,7 +15,7 @@ DEFINE_EXCEPTION(Whoopsy);
|
||||
|
||||
// TODO these should be read from maxscale.cnf. Maybe the test-lib should replace
|
||||
// any "###ENV_VAR###", with environment variables so that code and conf can share.
|
||||
constexpr int max_qps = 1000;
|
||||
constexpr int max_qps = 500;
|
||||
constexpr float throttling_duration = 10000 / 1000.0;
|
||||
constexpr float sampling_duration = 250 / 1000.0;
|
||||
constexpr float continuous_duration = 2000 / 1000.0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user