You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because this repo(envoyproxy/ratelimit) is using mediocregopher/radix to manage redis connection
and there has comment as below, e.g.
// Pool is dynamic in that it can create more connections on-the-fly to handle
// increased load. The maximum number of extra connections (if any) can be
// configured, along with how long they are kept after load has returned to
// normal.
(https://github.com/mediocregopher/radix/blob/v3/pool.go#L263)
So it seems envoyproxy/ratelimit support dynamaic pool by default.
I deployed this repo with below k8s deployment spec
After deployed successfully, i did below test, it seems dynamic pool is not supported
Test result as below
RPS
ratelimit pod number
REDIS_POOL_SIZE
active connections number
total connections number
429 requests ratio
0
1
1
4
4
N/A
5000
1
1
4
4
100%
10000
1
1
4
4
99.9%
15000
1
1
4
4
34% sometimes ratelimit pod crashed
20000
1
1
4 before pod crash, this value was not changed
4
ratelimit pod crashed
(active connections number can be got from cx_active metric, total connections number can be got from cx_total metric)
I have two questions.
from above test, it seems new connections are not created under higher RPS, there has any method that make the connection created automatically under higher RPS?
It seems there has any relation between REDIS_POOL_SIZE and active connections number, e.g.
active connections number = REDIS_POOL_SIZE * 4
someone knows the reason?
The text was updated successfully, but these errors were encountered:
ningyougang
changed the title
How to supoprt dynamaic pool?
How to support dynamaic pool?
Sep 24, 2024
ningyougang
changed the title
How to support dynamaic pool?
How to support dynamic pool?
Sep 24, 2024
Because this repo(envoyproxy/ratelimit) is using mediocregopher/radix to manage redis connection
and there has comment as below, e.g.
So it seems envoyproxy/ratelimit support
dynamaic pool
by default.I deployed this repo with below k8s deployment spec
click here to see the k8s deployment spec
After deployed successfully, i did below test, it seems
dynamic pool
is not supportedTest result as below
sometimes ratelimit pod crashed
before pod crash, this value was not changed
(
active connections number
can be got from cx_active metric,total connections number
can be got from cx_total metric)I have two questions.
from above test, it seems new connections are not created under higher RPS, there has any method that make the connection created automatically under higher RPS?
It seems there has any relation between
REDIS_POOL_SIZE
andactive connections number
, e.g.someone knows the reason?
The text was updated successfully, but these errors were encountered: